Referência de API

A API do AdamRMS permite que o seu próprio código faça o que pode fazer numa organização. Cada endpoint verifica as mesmas permissões que a interface do AdamRMS, e esta referência é gerada a partir das mesmas definições, por isso corresponde sempre ao que está em execução.

Prefere uma descrição legível por máquina, para Postman, Bruno ou um gerador de código? Transferir a especificação OpenAPI.

Autenticação

Crie uma chave de API nas definições da sua conta. Uma chave pertence a uma organização e atua com as suas próprias permissões aí. Envie-a como um token de portador com todos os pedidos:

Authorization: Bearer adamrms_…

Pedidos

Cada endpoint está em https://adam-rms.com/api/v1/org/{organisationUUID}/. Os endpoints que apenas leem dados aceitam GET, com a entrada como uma cadeia de consulta, ou POST. Todos os outros recebem POST com um corpo JSON.

Respostas

Um pedido bem-sucedido devolve o estado 200 e o resultado em data. Um falhado devolve um estado de erro e um objeto error cujo code é estável, para que o seu código possa agir em conformidade.

{ "data": { … } }

{ "error": { "code": "INVALID_INPUT", "message": "…", "issues": [{ "path": "name", "message": "…" }] } }

Novas tentativas e limites

Um pedido que cria, altera ou elimina algo pode ser reenviado em segurança se acrescentar um cabeçalho Idempotency-Key: um valor que inventa para essa alteração, como um UUID. Se a ligação falhar e voltar a tentar com a mesma chave e o mesmo pedido, o AdamRMS devolve a primeira resposta, com Idempotent-Replayed: true, e não repete a alteração. As chaves pertencem à chave de API que as enviou e duram 24 horas.

Idempotency-Key: 5f1c7e6a-2b7d-4c1e-9a53-8d0f2b6c4e11

Cada pessoa pode fazer 60 pedidos a cada 60 segundos, na API e no servidor MCP em conjunto. Cada resposta indica-o no cabeçalho RateLimit-Policy. Acima do limite, os pedidos falham com RATE_LIMITED, e o cabeçalho Retry-After indica quantos segundos esperar.

Simulações

Acrescente ?dryRun=true a um endpoint marcado Dry run para testar uma alteração sem a fazer. O AdamRMS verifica as suas permissões, o plano da organização e os dados exatamente como faria na alteração real, calcula o resultado e depois desfaz tudo. A resposta é a que a alteração real daria, com dryRun: true ao lado de data e um cabeçalho Dry-Run: true. Nada é guardado, por isso os IDs na resposta não existem depois.

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/create?dryRun=true"

Uma simulação não fica registada no registo de auditoria, não envia emails e não é mostrada às Apps, por isso uma App que recusaria a alteração real não tem essa hipótese. Os pontos de acesso que enviam ficheiros ou contactam outros serviços não podem ser experimentados assim e respondem DRY_RUN_NOT_AVAILABLE.

Webhooks

Para saber das alterações à medida que acontecem, crie um webhook com webhooks/create. Indique-lhe um endereço HTTPS e os eventos a enviar: chaves de função como clients.create ou uma funcionalidade inteira como clients.*. Toda a função que altera dados é um evento. O AdamRMS envia cada um por POST em JSON, com o seu type, timestamp e data: o input e o output da função como documentado abaixo, o organisationUuid e o actor.

Os eventos são assinados como descreve o Standard Webhooks, com os cabeçalhos webhook-id, webhook-timestamp e webhook-signature. O segredo é devolvido uma vez, por webhooks/create. Responda com um estado 2xx em 15 segundos. Qualquer outra resposta é repetida durante cerca de três dias, esperando mais tempo se enviar Retry-After. Um 410 desativa o webhook. Um webhook só envia eventos sobre registos que o membro que o criou consegue ver, verificado de novo em cada evento. Consulte-os com webhooks/deliveries.

Erros comuns

CódigoEstadoSignificado
DRY_RUN_NOT_AVAILABLE400

Foi pedida uma simulação, mas este ponto de acesso não pode ser experimentado sem fazer a alteração.

INVALID_DRY_RUN400

O parâmetro de consulta dryRun não é nem true nem false.

INVALID_IDEMPOTENCY_KEY400

O cabeçalho Idempotency-Key está vazio, tem mais de 255 carateres ou tem carateres que não são ASCII imprimíveis.

INVALID_INPUT400

A entrada não é válida. A lista de problemas indica o que está errado com cada campo.

INVALID_JSON400

O corpo do pedido não é um objeto JSON.

UNAUTHENTICATED401

Nenhum token de portador foi enviado, ou é inválido, revogado ou expirado.

NOT_IN_PLAN402

O plano da organização não inclui a funcionalidade que este endpoint altera, como inspeções ou o site público.

SUBSCRIPTION_INACTIVE402

A subscrição da organização não está ativa.

CREDENTIAL_ORGANISATION_MISMATCH403

A chave de API pertence a uma organização diferente da que está no URL.

FUNCTION_NOT_GRANTED403

Um token de agente de IA foi utilizado para um endpoint para o qual não foi aprovado.

LICENCE_REQUIRED403

Não tem licença na organização.

MFA_REQUIRED403

A organização requer que configure a autenticação de dois fatores.

NOT_A_MEMBER403

Não é membro da organização.

NOT_AVAILABLE_IN_DEMO403

A demonstração pública não oferece esta função, como instalar uma App ou criar um código de adesão.

PERMISSION_DENIED403

As suas permissões na organização não permitem isto.

FUNCTION_NOT_FOUND404

Nenhum endpoint tem este nome.

ORGANISATION_NOT_FOUND404

A organização não existe.

METHOD_NOT_ALLOWED405

O endpoint não aceita este método HTTP.

IDEMPOTENCY_KEY_IN_USE409

Um pedido com esta Idempotency-Key ainda está a decorrer. Aguarde alguns segundos e tente de novo para obter a resposta.

IDEMPOTENCY_RESPONSE_NOT_KEPT409

O primeiro pedido com esta Idempotency-Key fez a alteração, mas a resposta continha um segredo, como o segredo de assinatura de um webhook, que não é guardado. Apague ou revogue o que ele criou, e envie de novo o pedido com uma chave nova.

IDEMPOTENCY_KEY_REUSED422

Esta Idempotency-Key já foi usada num pedido diferente. Use uma nova chave para cada alteração.

REJECTED_BY_APP422

Uma App instalada na organização recusou a chamada. A mensagem explica porquê.

RATE_LIMITED429

Demasiados pedidos. Aguarde o número de segundos indicado no cabeçalho Retry-After e tente novamente.

ORGANISATION_LOCKED503

Uma cópia de segurança ou restauro está em execução. Tente novamente em breve.

Asset import

Check rows of an asset import

GET
POST
/api/v1/org/{organisationUUID}/asset-import/check

Checks spreadsheet rows before they are imported, without changing anything: for each row, what importing it would do (create an asset, update one, skip it), the asset type, category, manufacturer and location it means, and anything to fix. Also lists the categories, manufacturers and asset types the import would create. Cells are sent as text, as the spreadsheet had them; amounts are in the currency's main unit.

Necessita da permissão ASSETS.IMPORT.

Entrada

CampoTipoDescrição
rows
Obrigatório
AssetImportRow[]

The rows to check, up to 2000

min items: 1 · max items: 2000

firstRowNumberinteger

The spreadsheet row number of the first row, used when an issue points to another row. Defaults to 1

default: 1 · min: 1

createCategoriesboolean

Create categories the rows name that don't exist. Defaults to true

default: true

createManufacturersboolean

Create manufacturers the rows name that don't exist. Defaults to true

default: true

createLocationsboolean

Create locations the rows name that don't exist, with any missing locations above them in a path. Defaults to true

default: true

createAssetTypesboolean

Create asset types the rows name that don't exist. Defaults to true

default: true

existingAssets"SKIP" | "UPDATE"

What to do with a row whose asset ID is already an asset's: `SKIP` it (the default, so importing the same file again adds nothing twice) or `UPDATE` the asset's location, own rate, value and mass, quantity and custom fields from it

default: "SKIP"

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit of the mass columns: `g`, `kg`, `t`, `oz` or `lb`. Defaults to kg

default: "kg"

Resposta

CampoTipoDescrição
rowsobject[]

Each row, in order

rows[].rowinteger

Index of the row in `rows`

rows[].action"CREATE" | "UPDATE" | "SKIP" | "ERROR"

What importing the row does: CREATE an asset, UPDATE an existing one, SKIP it (its asset ID exists, or nothing would change), or nothing because of an ERROR in `issues`

rows[].issuesAssetImportIssue[]

Problems to fix. Empty if none

rows[].assetUUIDstring | null

UUID of the existing asset with the row's asset ID, or null

rows[].assetTypeobject | null

rows[].categoryobject | null

rows[].manufacturerobject | null

rows[].locationobject | null

The location the asset will be kept at, or null

rows[].changesstring[]

UPDATE: the row fields that will change

summaryobject

How many rows do what

summary.createinteger

Rows that create an asset

summary.updateinteger

Rows that update an asset

summary.skipinteger

Rows skipped

summary.errorinteger

Rows with issues to fix

newCategoriesstring[]

Paths of the categories the import will create

newLocationsstring[]

Paths of the locations the import will create

newManufacturersstring[]

Names of the manufacturers the import will create

newAssetTypesstring[]

Names of the asset types the import will create

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-import/check" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rows":[]}'

Import assets

POST
/api/v1/org/{organisationUUID}/asset-import/run

Imports spreadsheet rows as assets, as `asset-import.check` describes: it creates the missing categories, manufacturers and asset types first, then creates (or updates) an asset per row. Rows with issues are left out and returned as FAILED; the rest are imported. Each record is made through its own function, so the same rules, permissions and Apps apply as when it is made by hand. Importing a row whose asset ID exists again skips it, so a file can be sent again after a failure.

Necessita da permissão ASSETS.IMPORT.

Entrada

CampoTipoDescrição
rows
Obrigatório
AssetImportRow[]

The rows to import, up to 100. Send a longer spreadsheet a batch at a time: matching by name and asset ID means a later batch finds what an earlier one made

min items: 1 · max items: 100

firstRowNumberinteger

The spreadsheet row number of the first row, used when an issue points to another row. Defaults to 1

default: 1 · min: 1

createCategoriesboolean

Create categories the rows name that don't exist. Defaults to true

default: true

createManufacturersboolean

Create manufacturers the rows name that don't exist. Defaults to true

default: true

createLocationsboolean

Create locations the rows name that don't exist, with any missing locations above them in a path. Defaults to true

default: true

createAssetTypesboolean

Create asset types the rows name that don't exist. Defaults to true

default: true

existingAssets"SKIP" | "UPDATE"

What to do with a row whose asset ID is already an asset's: `SKIP` it (the default, so importing the same file again adds nothing twice) or `UPDATE` the asset's location, own rate, value and mass, quantity and custom fields from it

default: "SKIP"

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit of the mass columns: `g`, `kg`, `t`, `oz` or `lb`. Defaults to kg

default: "kg"

Resposta

CampoTipoDescrição
rowsobject[]

Each row, in order

rows[].rowinteger

Index of the row in `rows`

rows[].outcome"CREATED" | "UPDATED" | "SKIPPED" | "FAILED"

What happened to the row

rows[].assetUUIDstring | null

UUID of the asset created or updated, or null

rows[].primaryIDstring | null

The asset's primary asset ID, or null

rows[].issuesAssetImportIssue[]

FAILED: why

summaryobject

What the import did

summary.createdinteger

Assets created

summary.updatedinteger

Assets updated

summary.skippedinteger

Rows skipped

summary.failedinteger

Rows not imported

summary.categoriesCreatedinteger

Categories created

summary.manufacturersCreatedinteger

Manufacturers created

summary.locationsCreatedinteger

Locations created

summary.assetTypesCreatedinteger

Asset types created

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-import/run" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rows":[]}'

Asset categories

List asset categories

GET
POST
/api/v1/org/{organisationUUID}/asset-categories/list

Returns the organisation's asset categories as a tree, paginated by top-level category, with optional name search. Sorted by their arranged position unless another sort is asked for.

Necessita da permissão ASSET_CATEGORIES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return categories whose name contains this text (case-insensitive). Matches are returned with their children; a match whose parent does not match is returned at the top level

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of top-level categories per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name" | "createdAt" | "updatedAt"

Field to sort top-level categories by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

includeDeletedboolean

Also return soft-deleted categories. Needs permission to view deleted categories

default: false

Resposta

CampoTipoDescrição
categoriesAssetCategoryTreeNode[]

Top-level categories on this page, each with its children. Children are sorted the same way

totalinteger

Total number of top-level categories across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

offsetinteger

Position of this page's first category among all the top-level categories, 0-based

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-categories/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create an asset category

POST
Simulação
/api/v1/org/{organisationUUID}/asset-categories/create

Creates an asset category, either top-level or nested under a parent (at most 3 levels deep). It is added after its existing siblings.

Necessita da permissão ASSET_CATEGORIES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. 'Lighting' or 'Sound Equipment'

min length: 1 · max length: 255

descriptionstring

What kinds of assets belong in this category

max length: 1000

iconstring

Icon for the category: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:bulb`), or `custom:<uuid>` for one the organisation uploaded

parentUUIDstring

UUID of the parent category. Omit for a top-level category. At most 3 levels deep (Parent > Child > Grandchild)

min length: 1 · max length: 64

Resposta

Devolve AssetCategory sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

ICON_NOT_FOUND 422

MAX_NESTING_EXCEEDED 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-categories/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update an asset category

POST
Simulação
/api/v1/org/{organisationUUID}/asset-categories/update

Changes a category's name, description, icon or parent. Fields that are omitted are left unchanged.

Necessita da permissão ASSET_CATEGORIES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the category to update

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged

min length: 1 · max length: 255

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

iconstring | null

New icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:bulb`), or `custom:<uuid>` for one the organisation uploaded. Null to remove it, omit to leave unchanged

parentUUIDstring | null

UUID of the new parent, or null to make the category top-level. Omit to leave unchanged. Moves that would nest deeper than 3 levels, or under the category's own descendant, are refused

Resposta

Devolve AssetCategory sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CIRCULAR_REFERENCE 422

ICON_NOT_FOUND 422

MAX_NESTING_EXCEEDED 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-categories/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder an asset category

POST
Simulação
/api/v1/org/{organisationUUID}/asset-categories/reorder

Moves a category to a new position among its siblings and renumbers the siblings to match.

Necessita da permissão ASSET_CATEGORIES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the category to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position among its siblings, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve AssetCategory sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-categories/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete an asset category

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/asset-categories/delete

Soft-deletes a category. A category that still has live children is only deleted when `cascade` is set, which deletes the children too.

Necessita da permissão ASSET_CATEGORIES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the category to soft-delete

min length: 1 · max length: 64

cascadeboolean

Also soft-delete every category nested under it. Without this, deleting a category that still has live children is refused

default: false

Resposta

CampoTipoDescrição
deletedCountinteger

Number of categories deleted, including nested ones

Erros

Bem como os erros comuns:

NOT_FOUND 404

HAS_CHILDREN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-categories/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Attachments

List a record's files

GET
POST
/api/v1/org/{organisationUUID}/attachments/list

Returns every folder, file and link attached to a record, such as a location.

Necessita da permissão ORGANISATION_FILES.VIEW.

Entrada

CampoTipoDescrição
recordType
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer" | "training-module" | "member-certification" | "payment" | "wiki-page"

The kind of record the files are attached to, e.g. `location`

recordUuid
Obrigatório
string

UUID of the record the files are attached to

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
foldersAttachmentFolder[]

Every folder on the record, by name. Build the tree from `parentUUID`

filesAttachedFile[]

Every file and link on the record, by name. Place them with `folderUUID`

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recordType":"string","recordUuid":"string"}'

Create a folder for a record's files

POST
Simulação
/api/v1/org/{organisationUUID}/attachments/create-folder

Creates a folder among a record's files, at the top level or inside another of its folders.

Necessita da permissão ORGANISATION_FILES.CREATE.

Entrada

CampoTipoDescrição
recordType
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer" | "training-module" | "member-certification" | "payment" | "wiki-page"

The kind of record the files are attached to, e.g. `location`

recordUuid
Obrigatório
string

UUID of the record the files are attached to

min length: 1 · max length: 64

name
Obrigatório
string

Display name, e.g. 'Floor plans'

min length: 1 · max length: 255

parentUUIDstring

UUID of the folder to create it in. Omit for the top level

min length: 1 · max length: 64

Resposta

Devolve AttachmentFolder sob data.

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

FOLDER_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/create-folder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recordType":"string","recordUuid":"string","name":"string"}'

Rename or move a folder of a record's files

POST
Simulação
/api/v1/org/{organisationUUID}/attachments/update-folder

Renames a folder, or moves it into another folder on the same record. Fields that are omitted are left unchanged.

Necessita da permissão ORGANISATION_FILES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the folder to change

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged

min length: 1 · max length: 255

parentUUIDstring | null

UUID of the folder to move it into, or null for the top level. Omit to leave unchanged. It must be a folder on the same record, and not the folder itself or one inside it

Resposta

Devolve AttachmentFolder sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CIRCULAR_REFERENCE 422

FOLDER_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/update-folder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a folder of a record's files

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/attachments/delete-folder

Deletes an empty folder. A folder that still holds files or folders is refused; move or delete them first.

Necessita da permissão ORGANISATION_FILES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the folder to delete. It must be empty

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted folder

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_EMPTY 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/delete-folder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Start uploading a file to a record

POST
/api/v1/org/{organisationUUID}/attachments/start-upload

Checks a file can be added to a record (its size, and the organisation's storage allowance) and returns a private URL to PUT its bytes to. Large files are sent in parts. The file appears on the record once `attachments.finish-upload` is called.

Necessita da permissão ORGANISATION_FILES.CREATE.

Entrada

CampoTipoDescrição
recordType
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer" | "training-module" | "member-certification" | "payment" | "wiki-page"

The kind of record the files are attached to, e.g. `location`

recordUuid
Obrigatório
string

UUID of the record the files are attached to

min length: 1 · max length: 64

folderUUIDstring

UUID of the folder to put the file in. Omit for the top level

min length: 1 · max length: 64

fileName
Obrigatório
string

Name of the file, with its extension, e.g. 'rigging-plan.pdf'

min length: 1 · max length: 500

contentType
Obrigatório
string

Content type of the file, e.g. `application/pdf`

min length: 1 · max length: 255

sizeBytes
Obrigatório
integer

Exact size of the file in bytes

Resposta

CampoTipoDescrição
uploadTokenstring

Identifies this upload. Pass it to `attachments.finish-upload` once the bytes are sent

uploadUrlstring

Path to PUT the file's bytes to, relative to the site. Anyone holding it can upload to it until the upload is finished or expires, so keep it private. For a multipart upload, PUT each part to it with `?partNumber=N` (1-based) and keep each response's `ETag`

multipartboolean

Whether the file must be sent in parts of `partSizeBytes` (the last part may be smaller)

partSizeBytesinteger

Size of each part, for a multipart upload

expiresAtstring (date-time)

When the upload URL stops working

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

RECORD_NOT_FOUND 404

FILE_TOO_LARGE 422

FOLDER_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/start-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recordType":"string","recordUuid":"string","fileName":"string","contentType":"string","sizeBytes":0}'

Finish uploading a file to a record

POST
/api/v1/org/{organisationUUID}/attachments/finish-upload

Completes an upload begun with `attachments.start-upload` once its bytes have been sent, and adds the file to the record.

Necessita da permissão ORGANISATION_FILES.CREATE.

Entrada

CampoTipoDescrição
uploadToken
Obrigatório
string

The `uploadToken` from `attachments.start-upload`

min length: 1 · max length: 256

partsobject[]

For a multipart upload, every part that was sent. Omit for a single upload

max items: 10000

parts[].partNumber
Obrigatório
integer

Part number, 1-based

min: 1 · max: 10000

parts[].etag
Obrigatório
string

The `ETag` the part's PUT returned

min length: 1 · max length: 256

Resposta

Devolve AttachedFile sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

RECORD_NOT_FOUND 404

UPLOAD_NOT_FOUND 404

FOLDER_NOT_FOUND 422

UPLOAD_INCOMPLETE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/finish-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uploadToken":"string"}'

Rename or move a record's file

POST
Simulação
/api/v1/org/{organisationUUID}/attachments/update-file

Renames a file or link attached to a record, or moves it into another of the record's folders or onto another record of the same kind. Fields that are omitted are left unchanged. Files in some categories, such as issued documents, can't be renamed or moved to another record.

Necessita da permissão ORGANISATION_FILES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the file or link to change

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged

min length: 1 · max length: 500

recordUuidstring

UUID of another record of the same kind to move it to, e.g. another location. It goes into `folderUUID` on that record, or the top level if that is omitted. Omit to keep it on its record

min length: 1 · max length: 64

folderUUIDstring | null

UUID of the folder to move it into (on the record it ends up on), or null for the top level. Omit to leave unchanged

Resposta

Devolve AttachedFile sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_ALLOWED_IN_CATEGORY 409

FOLDER_NOT_FOUND 422

RECORD_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/update-file" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a record's file

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/attachments/delete-file

Moves a file or link attached to a record to the organisation's trash, where it can be restored until the trash is emptied. Files in some categories, such as issued documents, can't be deleted.

Necessita da permissão ORGANISATION_FILES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the file or link to move to the trash

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the file moved to the trash

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_ALLOWED_IN_CATEGORY 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/attachments/delete-file" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Locations

List locations

GET
POST
/api/v1/org/{organisationUUID}/locations/list

Returns the organisation's locations (venues, warehouses, shelves, ...) as a tree, paginated by top-level location, with optional search by name or address and filter by client. Archived locations are left out unless asked for.

Necessita da permissão LOCATIONS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return locations whose name or address contains this text (case-insensitive). Matches are returned with the locations inside them; a match whose parent does not match is returned at the top level

max length: 255

clientUUIDstring

Only return locations that belong to this client. Like a search, a match whose parent does not match is returned at the top level

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of top-level locations per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort top-level locations by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

includeArchivedboolean

Also return archived locations

default: false

includeDeletedboolean

Also return soft-deleted locations. Needs permission to view deleted locations

default: false

Resposta

CampoTipoDescrição
locationsLocationTreeNode[]

Top-level locations on this page, each with the locations inside it. Those are sorted the same way

totalinteger

Total number of top-level locations across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a location

GET
POST
/api/v1/org/{organisationUUID}/locations/get

Returns one location, archived or not, with the chain of locations it is inside.

Necessita da permissão LOCATIONS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the location

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
locationLocation

pathobject[]

The locations it is inside, outermost first

path[].uuidstring

UUID of the location

path[].namestring

Display name

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a location

POST
Simulação
/api/v1/org/{organisationUUID}/locations/create

Creates a location, either top-level or inside another location, optionally belonging to a client. Locations nest to any depth.

Necessita da permissão LOCATIONS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. 'Main warehouse' or 'Shelf A'

min length: 1 · max length: 500

addressstring

Postal address

max length: 2000

notesstring

Free-text notes, e.g. access instructions

max length: 10000

parentUUIDstring

UUID of the location this one is inside. Omit for a top-level location

min length: 1 · max length: 64

clientUUIDstring

UUID of the client this location belongs to. Omit if it belongs to none. Archived clients can't be picked

min length: 1 · max length: 64

Resposta

Devolve Location sob data.

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a location

POST
Simulação
/api/v1/org/{organisationUUID}/locations/update

Changes a location's name, address, notes, parent or client. Fields that are omitted are left unchanged.

Necessita da permissão LOCATIONS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the location to update

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged

min length: 1 · max length: 500

addressstring | null

New address, or null to clear it. Omit to leave unchanged

notesstring | null

New notes, or null to clear them. Omit to leave unchanged

parentUUIDstring | null

UUID of the location to move it inside, or null to make it top-level. Omit to leave unchanged. Moving a location inside itself or one of the locations inside it is refused

clientUUIDstring | null

UUID of the client it belongs to, or null for none. Omit to leave unchanged. Archived clients can't be picked

Resposta

Devolve Location sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CIRCULAR_REFERENCE 422

CLIENT_NOT_FOUND 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Archive or unarchive a location

POST
Simulação
/api/v1/org/{organisationUUID}/locations/set-archived

Archives a location that is no longer used, hiding it from lists without deleting it, or brings an archived location back into use. Locations inside it are not changed.

Necessita da permissão LOCATIONS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the location

min length: 1 · max length: 64

archived
Obrigatório
boolean

True to archive the location, false to bring it back into use

Resposta

Devolve Location sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/set-archived" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","archived":false}'

Delete a location

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/locations/delete

Soft-deletes a location. A location that still has live locations inside it is only deleted when `cascade` is set, which deletes them too.

Necessita da permissão LOCATIONS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the location to soft-delete

min length: 1 · max length: 64

cascadeboolean

Also soft-delete every location inside it. Without this, deleting a location that still has live locations inside it is refused

default: false

Resposta

CampoTipoDescrição
deletedCountinteger

Number of locations deleted, including those inside it

Erros

Bem como os erros comuns:

NOT_FOUND 404

HAS_CHILDREN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/locations/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Clients

List clients

GET
POST
/api/v1/org/{organisationUUID}/clients/list

Returns the organisation's clients, sorted and paged, with optional search by name (or by the name, email or phone of a contact there) and an optional filter to the clients under one client (or the top level). Archived clients are left out unless asked for.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return clients whose name contains this text, or with a contact whose name, email or phone number contains it (case-insensitive), at any level of nesting

max length: 255

parentUUIDstring | null

Only return clients directly under this client, or only top-level clients if null. Omit to return clients at every level

includeArchivedboolean

Also return archived clients

default: false

includeDeletedboolean

Also return soft-deleted clients. Needs permission to view deleted clients

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of clients per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort clients by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
clientsClient[]

Clients on this page, in the order asked for

totalinteger

Total number of clients across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a client

GET
POST
/api/v1/org/{organisationUUID}/clients/get

Returns one client, including an archived one, with the clients it sits under.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the client

namestring

Name of the business or person

parentUUIDstring | null

UUID of the client this one sits under (e.g. a company within a group), or null for a top-level client

websitestring | null

Website address

clientPricingUUIDstring | null

UUID of the client pricing its new projects use, or null for catalogue prices. Set with clients.set-pricing

addressstring | null

Postal address; lines are separated by newlines

notesstring | null

Free-text notes about the client

taxExemptboolean

Projects for this client charge no tax, such as for a charity with relief or a client abroad

isSupplierboolean

The organisation also hires from this client, so it can be picked as a sub-hire supplier

archivedAtstring (date-time) | null

When the client was archived, or null if it is active. Archived clients can't be picked for new work

deletedAtstring (date-time) | null

When the client was soft-deleted, or null if it is live

createdAtstring (date-time)

When the client was created

updatedAtstring (date-time)

When the client last changed

pathobject[]

The clients this one sits under, outermost first. Empty for a top-level client

path[].uuidstring

UUID of the client

path[].namestring

Name of the client

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Read a client's timeline

GET
POST
/api/v1/org/{organisationUUID}/clients/timeline

Returns what has happened with a client, newest first: projects made for them, quotes issued, accepted or declined, invoices and credit notes issued, payments and refunds, documents emailed to them, and comments on the client. Quotes, invoices and payments cover the client's projects and their sub-projects. Entries the caller can't see, such as payments without access to payments, are left out.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client

min length: 1 · max length: 64

cursorstring

nextCursor from the previous page, to read further back. Leave out for the newest

max length: 200

limitinteger

How many entries to return, up to 100

default: 30 · min: 1 · max: 100

Resposta

CampoTipoDescrição
currencystring

The organisation's currency code

entriesClientTimelineEntry[]

What happened with the client, newest first

nextCursorstring | null

Pass as cursor to read older entries, or null at the end

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/timeline" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a client

POST
Simulação
/api/v1/org/{organisationUUID}/clients/create

Creates a client: a business or person the organisation hires to, either top-level or under another client (at most three levels deep). Only the name is required.

Necessita da permissão CLIENTS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Name of the business or person, e.g. 'Acme Theatre Ltd'

min length: 1 · max length: 500

websitestring (uri)

Website address, including https://

max length: 500

addressstring

Postal address; separate lines with newlines

max length: 500

notesstring

Free-text notes about the client

max length: 10000

taxExemptboolean

Projects for this client charge no tax. Defaults to false

default: false

isSupplierboolean

The organisation also hires from this client, as a sub-hire supplier. Defaults to false

default: false

parentUUIDstring

UUID of the client to put this one under. Omit for a top-level client. At most 3 levels deep

min length: 1 · max length: 64

Resposta

Devolve Client sob data.

Erros

Bem como os erros comuns:

MAX_NESTING_EXCEEDED 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a client

POST
Simulação
/api/v1/org/{organisationUUID}/clients/update

Changes a client's details or moves it under another client. Fields that are omitted are left unchanged; null clears a field.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client to update

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 500

websitestring (uri) | null

New website address, or null to clear it. Omit to leave unchanged

addressstring | null

New postal address, or null to clear it. Omit to leave unchanged

notesstring | null

New notes, or null to clear them. Omit to leave unchanged

taxExemptboolean

Whether projects for this client charge no tax. Omit to leave unchanged

isSupplierboolean

Whether the client is also a sub-hire supplier. Omit to leave unchanged

parentUUIDstring | null

UUID of the new parent client, or null to make it top-level. Omit to leave unchanged. Moves that would nest deeper than 3 levels, or under the client's own sub-client, are refused

Resposta

Devolve Client sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CIRCULAR_REFERENCE 422

MAX_NESTING_EXCEEDED 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Archive a client

POST
Simulação
/api/v1/org/{organisationUUID}/clients/archive

Archives a client, so it stays on record but can't be picked for new work. Archiving an archived client changes nothing.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client

min length: 1 · max length: 64

Resposta

Devolve Client sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/archive" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Unarchive a client

POST
Simulação
/api/v1/org/{organisationUUID}/clients/unarchive

Makes an archived client active again. Unarchiving an active client changes nothing.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client

min length: 1 · max length: 64

Resposta

Devolve Client sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/unarchive" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a client

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/clients/delete

Soft-deletes a client. A client that still has live sub-clients is only deleted when `cascade` is set, which deletes them too. To keep a client on record but out of the way, archive it instead.

Necessita da permissão CLIENTS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client to soft-delete

min length: 1 · max length: 64

cascadeboolean

Also soft-delete every client nested under it. Without this, deleting a client that still has live sub-clients is refused

default: false

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted client

deletedCountinteger

Number of clients deleted, including nested ones

Erros

Bem como os erros comuns:

NOT_FOUND 404

HAS_CHILDREN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Set a client's pricing

POST
Simulação
/api/v1/org/{organisationUUID}/clients/set-pricing

Chooses the client pricing a client's new projects use, or none for catalogue prices.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client

min length: 1 · max length: 64

clientPricingUUID
Obrigatório
string | null

UUID of the client pricing its projects use, or null for none

Resposta

CampoTipoDescrição
clientUUIDstring

UUID of the client

clientPricingUUIDstring | null

UUID of its client pricing, or null

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/clients/set-pricing" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string","clientPricingUUID":"string"}'

Client contacts

List a client's contacts

GET
POST
/api/v1/org/{organisationUUID}/client-contacts/list

Returns the people at a client, with their job titles, email addresses and phone numbers, sorted and paged.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client whose contacts to list

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of contacts per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort contacts by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
contactsClientContact[]

Contacts on this page, in the order asked for

totalinteger

Total number of contacts across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-contacts/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string"}'

Get a client contact

GET
POST
/api/v1/org/{organisationUUID}/client-contacts/get

Returns one person at a client, including which client.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the contact

min length: 1 · max length: 64

Resposta

Devolve ClientContact sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-contacts/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add a contact to a client

POST
Simulação
/api/v1/org/{organisationUUID}/client-contacts/create

Adds a person at a client. Only the name is required.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client the person is at

min length: 1 · max length: 64

name
Obrigatório
string

The person's name, e.g. 'Sam Taylor'

min length: 1 · max length: 500

jobTitlestring

Their job title or role

max length: 500

emailstring (email)

Their email address

max length: 500

phonestring

Their phone number

max length: 500

notesstring

Free-text notes about them

max length: 10000

Resposta

Devolve ClientContact sob data.

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-contacts/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string","name":"string"}'

Update a client contact

POST
Simulação
/api/v1/org/{organisationUUID}/client-contacts/update

Changes a contact's details. Fields that are omitted are left unchanged; null clears a field.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the contact to update

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 500

jobTitlestring | null

New job title, or null to clear it. Omit to leave unchanged

emailstring (email) | null

New email address, or null to clear it. Omit to leave unchanged

phonestring | null

New phone number, or null to clear it. Omit to leave unchanged

notesstring | null

New notes, or null to clear them. Omit to leave unchanged

Resposta

Devolve ClientContact sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-contacts/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Remove a client contact

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/client-contacts/delete

Soft-deletes a contact from its client.

Necessita da permissão CLIENTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the contact to remove

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the removed contact

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-contacts/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Manufacturers

List manufacturers

GET
POST
/api/v1/org/{organisationUUID}/manufacturers/list

Returns the organisation's asset manufacturers as a tree of parent companies and the manufacturers they own, paginated by top-level manufacturer, with optional name search.

Necessita da permissão MANUFACTURERS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return manufacturers whose name contains this text (case-insensitive). Matches are returned with the manufacturers they own; a match whose parent does not match is returned at the top level

max length: 255

includeDeletedboolean

Also return soft-deleted manufacturers. Needs permission to view deleted manufacturers

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of manufacturers per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort manufacturers by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
manufacturersManufacturerTreeNode[]

Top-level manufacturers on this page, in the order asked for, each with the manufacturers it owns

totalinteger

Total number of manufacturers across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/manufacturers/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a manufacturer

POST
Simulação
/api/v1/org/{organisationUUID}/manufacturers/create

Creates a manufacturer, either top-level or owned by a parent company. A name already used by another live manufacturer (ignoring case) is refused.

Necessita da permissão MANUFACTURERS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. 'ETC' or 'Shure'. Must not match another live manufacturer's name (ignoring case)

min length: 1 · max length: 500

websitestring

The manufacturer's website, e.g. 'https://www.etcconnect.com'. A bare domain such as 'etcconnect.com' is saved with https://

notesstring

Free-text notes about the manufacturer

max length: 5000

parentUUIDstring

UUID of the parent company, e.g. Harman's for JBL. Omit for a top-level manufacturer

min length: 1 · max length: 64

Resposta

Devolve Manufacturer sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/manufacturers/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a manufacturer

POST
Simulação
/api/v1/org/{organisationUUID}/manufacturers/update

Changes a manufacturer's name, website, notes or parent company. Fields that are omitted are left unchanged.

Necessita da permissão MANUFACTURERS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the manufacturer to update

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged. Must not match another live manufacturer's name (ignoring case)

min length: 1 · max length: 500

websitestring | null

New website, or null to clear it. Omit to leave unchanged

notesstring | null

New notes, or null to clear them. Omit to leave unchanged

parentUUIDstring | null

UUID of the new parent company, or null to make the manufacturer top-level. Omit to leave unchanged. A manufacturer cannot be put under itself or one it owns

Resposta

Devolve Manufacturer sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

CIRCULAR_REFERENCE 422

PARENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/manufacturers/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a manufacturer

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/manufacturers/delete

Soft-deletes a manufacturer. Manufacturers it owned are not deleted; they become top-level.

Necessita da permissão MANUFACTURERS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the manufacturer to soft-delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the manufacturer that was deleted

movedToTopLevelinteger

Number of manufacturers it owned, which are now top-level rather than deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/manufacturers/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Asset types

List asset types

GET
POST
/api/v1/org/{organisationUUID}/asset-types/list

Returns the organisation's asset types (its catalogue: what it hires out), paginated, with optional search and category or manufacturer filters.

Necessita da permissão ASSET_TYPES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return types whose name, manufacturer or category contains this text (case-insensitive)

max length: 255

categoryUUIDstring

Only return types in this category or its subcategories

min length: 1 · max length: 64

manufacturerUUIDstring

Only return types made by this manufacturer

min length: 1 · max length: 64

includeDeletedboolean

Also return soft-deleted types. Needs permission to view deleted asset types

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of asset types per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort asset types by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
assetTypesAssetType[]

Asset types on this page, in the order asked for

totalinteger

Total number of asset types across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Change how an asset type is tracked

POST
Destrutivo
/api/v1/org/{organisationUUID}/asset-types/set-tracking

Changes an asset type between individually tracked and bulk, converting its assets. To BULK: units that are alike (same storage location, case, overrides and custom field values) merge into one lot, which keeps all their asset IDs. To INDIVIDUAL: each lot of N becomes N units; the lot keeps its IDs and the new units take IDs from the organisation's sequence, and empty lots are deleted. Assets on open maintenance jobs or on projects that haven't finished or been lost stop it. Call with `preview` first to see what would happen and what stops it.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset type

min length: 1 · max length: 64

tracking
Obrigatório
"INDIVIDUAL" | "BULK"

How to track it from now on: INDIVIDUAL (one asset per unit, each with its own asset ID) or BULK (lots with a quantity)

previewboolean

true to only work out what would happen and what stops it, changing nothing. Defaults to false

default: false

Resposta

CampoTipoDescrição
assetTypeAssetType

The asset type, as it is now

changedboolean

Whether the tracking changed. False for a preview, or when it was already tracked that way

assetsBeforeinteger

How many assets (units or lots) the type had before

assetsAfterinteger

How many assets it has after: one lot for each set of alike units when going to BULK, one unit for each item when going to INDIVIDUAL

emptyLotsDeletedinteger

Lots holding none, which are deleted when going to INDIVIDUAL

blockersobject[]

What has to change first. Empty when nothing stops it

blockers[].code"OPEN_MAINTENANCE" | "ON_PROJECT" | "HAS_CONTENTS" | "CONSUMABLE" | "TOO_MANY_UNITS" | "PLAN_LIMIT"

What stops it: OPEN_MAINTENANCE (on an open maintenance job), ON_PROJECT (on a project that hasn't finished or been lost), HAS_CONTENTS (a unit with assets inside it), CONSUMABLE (consumables are bulk only), TOO_MANY_UNITS (more than 1,000 units would be made) or PLAN_LIMIT (the plan doesn't allow that many assets)

blockers[].assetIDsstring[]

Asset IDs of up to 10 of the assets affected

blockers[].countinteger

How many assets are affected, or for PLAN_LIMIT how many would be added

Erros

Bem como os erros comuns:

NOT_FOUND 404

TRACKING_CHANGE_BLOCKED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/set-tracking" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","tracking":"string"}'

Get an asset type

GET
POST
/api/v1/org/{organisationUUID}/asset-types/get

Returns one asset type, including its custom field values, rate, price structure, mass and value.

Necessita da permissão ASSET_TYPES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset type

min length: 1 · max length: 64

Resposta

Devolve AssetType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create an asset type

POST
/api/v1/org/{organisationUUID}/asset-types/create

Creates an asset type in a category (one with no subcategories), optionally with a thumbnail, manufacturer, rate, price structure, mass, replacement value and custom field values. Whether its stock is tracked as individual units or in bulk lots is chosen here.

Necessita da permissão ASSET_TYPES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

The type's name, e.g. 'Source Four Jr 26°'

min length: 1 · max length: 255

descriptionstring

A description of the type

max length: 5000

productLinkstring

Link to the manufacturer's product page. A bare domain is saved with https://

categoryUUID
Obrigatório
string

UUID of the asset category. Must be a category with no subcategories

min length: 1 · max length: 64

manufacturerUUIDstring

UUID of the manufacturer

min length: 1 · max length: 64

tracking"INDIVIDUAL" | "BULK"

`INDIVIDUAL`: each unit is its own asset with its own asset IDs (fixtures, desks, radios). `BULK`: stock is held as lots with a quantity (cables, clamps, bulbs). Defaults to INDIVIDUAL

default: "INDIVIDUAL"

usage"RENTAL" | "CONSUMABLE"

`RENTAL`: hired out and returned. `CONSUMABLE`: used up on projects and sold (tape, batteries). Consumables must be tracked in BULK. Defaults to RENTAL

default: "RENTAL"

massnumber

Mass of one unit, in `massUnit`

min: 0 · max: 1000000000

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit `mass` is given in: `g`, `kg`, `t`, `oz` or `lb`. Defaults to kg

default: "kg"

rateinteger

Hire rate of one unit (or sale price, for a consumable) in the smallest currency unit (e.g. pence). How the hire's length multiplies it is set by the price structure

min: 0 · max: 10000000000

priceStructureUUIDstring

UUID of the price structure, or null for the organisation's default. Omit for the default

min length: 1 · max length: 64

taxRateUUIDstring

UUID of the tax rate it's charged at. Omit for the default

min length: 1 · max length: 64

valueinteger

Replacement value of one unit, in the smallest currency unit

min: 0 · max: 10000000000

turnaroundHoursinteger

Hours a unit stays unavailable after a project ends, while it's checked, cleaned or recharged, such as 24 for a hazer. A unit back from one project can't go out on the next until then. 0 for none. At most 720. Defaults to 0

default: 0 · min: 0 · max: 720

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows its category. Defaults to true

thumbnailstring

The type's main thumbnail, shown wherever the type is: a PNG, JPEG or WebP image of at most 128 KB as a base64 `data:` URL. A square image works best

max length: 174794

customFieldsobject

Values of custom fields set on asset types, by field UUID

customFieldUUIDsstring[]

Custom fields used only by chosen asset types (appliesTo TYPES) that this type should use too, e.g. ones made for it. Fields used by every type are already on it

max items: 100

Resposta

Devolve AssetType sob data.

Erros

Bem como os erros comuns:

TRACKING_LOCKED 409

CATEGORY_HAS_SUBCATEGORIES 422

CATEGORY_NOT_FOUND 422

CONSUMABLE_MUST_BE_BULK 422

INVALID_CUSTOM_FIELDS 422

INVALID_THUMBNAIL 422

MANUFACTURER_NOT_FOUND 422

MASS_UNIT_REQUIRED 422

PRICE_STRUCTURE_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","categoryUUID":"string"}'

Update an asset type

POST
/api/v1/org/{organisationUUID}/asset-types/update

Changes an asset type. Fields that are omitted are left unchanged. Changing the rate or price structure never changes prices already agreed on bookings.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset type to update

min length: 1 · max length: 64

namestring

The type's name, e.g. 'Source Four Jr 26°'. Omit to leave unchanged

min length: 1 · max length: 255

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

productLinkstring | null

New product link, or null to clear it. Omit to leave unchanged

categoryUUIDstring

UUID of the asset category. Must be a category with no subcategories. Omit to leave unchanged

min length: 1 · max length: 64

manufacturerUUIDstring | null

UUID of the manufacturer, or null for none. Omit to leave unchanged

tracking"INDIVIDUAL" | "BULK"

`INDIVIDUAL`: each unit is its own asset with its own asset IDs (fixtures, desks, radios). `BULK`: stock is held as lots with a quantity (cables, clamps, bulbs). Omit to leave unchanged

usage"RENTAL" | "CONSUMABLE"

`RENTAL`: hired out and returned. `CONSUMABLE`: used up on projects and sold (tape, batteries). Consumables must be tracked in BULK. Omit to leave unchanged

massnumber | null

Mass of one unit in `massUnit`, or null to clear it. Omit to leave unchanged

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit `mass` is given in. Required with `mass`; on its own, shows the stored mass in this unit

rateinteger | null

Hire rate of one unit (or sale price, for a consumable) in the smallest currency unit (e.g. pence). How the hire's length multiplies it is set by the price structure, or null if not for hire. Omit to leave unchanged

priceStructureUUIDstring | null

UUID of the price structure, or null for the organisation's default. Omit to leave unchanged

taxRateUUIDstring | null

UUID of the tax rate it's charged at, or null for the default. Omit to leave unchanged

valueinteger | null

Replacement value of one unit, in the smallest currency unit, or null to clear it. Omit to leave unchanged

turnaroundHoursinteger

Hours a unit stays unavailable after a project ends, while it's checked, cleaned or recharged, such as 24 for a hazer. A unit back from one project can't go out on the next until then. 0 for none. At most 720. Omit to leave unchanged

min: 0 · max: 720

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows its category. Defaults to true. Omit to leave unchanged

thumbnailstring | null

The type's main thumbnail, shown wherever the type is: a PNG, JPEG or WebP image of at most 128 KB as a base64 `data:` URL. A square image works best, or null to remove it (the next thumbnail becomes the main one). Omit to leave unchanged

customFieldsobject

Custom field values to change, by field UUID. Fields left out keep their value; null clears one

Resposta

Devolve AssetType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

TRACKING_LOCKED 409

CATEGORY_HAS_SUBCATEGORIES 422

CATEGORY_NOT_FOUND 422

CONSUMABLE_MUST_BE_BULK 422

INVALID_CUSTOM_FIELDS 422

INVALID_THUMBNAIL 422

MANUFACTURER_NOT_FOUND 422

MASS_UNIT_REQUIRED 422

PRICE_STRUCTURE_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete an asset type

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/asset-types/delete

Soft-deletes an asset type. A type that still has assets can't be deleted: delete its assets first.

Necessita da permissão ASSET_TYPES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset type to soft-delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the asset type that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

HAS_ASSETS 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add a thumbnail to an asset type

POST
/api/v1/org/{organisationUUID}/asset-types/add-thumbnail

Adds a thumbnail to an asset type, last or as its main thumbnail. A type can have up to 10 thumbnails. The main one is shown wherever the type is.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
assetTypeUUID
Obrigatório
string

UUID of the asset type to add the thumbnail to

min length: 1 · max length: 64

thumbnail
Obrigatório
string

The thumbnail: a PNG, JPEG or WebP image of at most 128 KB as a base64 `data:` URL. A square image works best

max length: 174794

mainboolean

Make it the type's main thumbnail. Defaults to false, which adds it last. A type's first thumbnail is always its main one

default: false

Resposta

CampoTipoDescrição
thumbnailUUIDstring

UUID of the thumbnail that was added

assetTypeAssetType

The asset type, with the thumbnail

Erros

Bem como os erros comuns:

NOT_FOUND 404

TOO_MANY_THUMBNAILS 409

INVALID_THUMBNAIL 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/add-thumbnail" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetTypeUUID":"string","thumbnail":"string"}'

Remove a thumbnail from an asset type

POST
Destrutivo
/api/v1/org/{organisationUUID}/asset-types/remove-thumbnail

Removes one of an asset type's thumbnails for good. Removing the main thumbnail makes the next one the main thumbnail.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the thumbnail, from the type's `thumbnailUUIDs`

min length: 1 · max length: 64

Resposta

Devolve AssetType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/remove-thumbnail" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Choose an asset type's main thumbnail

POST
Simulação
/api/v1/org/{organisationUUID}/asset-types/set-main-thumbnail

Makes one of an asset type's thumbnails its main thumbnail, shown wherever the type is. The old main thumbnail takes its place among the others.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the thumbnail, from the type's `thumbnailUUIDs`

min length: 1 · max length: 64

Resposta

Devolve AssetType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-types/set-main-thumbnail" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Accessories

Get an asset type's accessories

GET
POST
/api/v1/org/{organisationUUID}/accessories/get

Returns the accessories of an asset type (the other asset types that go out with it, how many, and whether each can be left out), and the asset types it is itself an accessory of.

Necessita da permissão ASSET_TYPES.VIEW.

Entrada

CampoTipoDescrição
assetTypeUUID
Obrigatório
string

UUID of the asset type

min length: 1 · max length: 64

Resposta

Devolve Accessories sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/accessories/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetTypeUUID":"string"}'

Set an asset type's accessories

POST
Simulação
/api/v1/org/{organisationUUID}/accessories/set

Replaces the accessories of an asset type with the list given, such as the clamp and safety bond that go out with a lantern. An empty list removes them all.

Necessita da permissão ASSET_TYPES.UPDATE.

Entrada

CampoTipoDescrição
assetTypeUUID
Obrigatório
string

UUID of the asset type to set accessories of

min length: 1 · max length: 64

accessories
Obrigatório
object[]

Every accessory of the asset type, in order, replacing what it had (up to 50). An empty list removes them all. Accessories can have accessories, up to 4 levels counting the asset type

max items: 50

accessories[].assetTypeUUID
Obrigatório
string

UUID of the accessory's asset type. Each type can appear once, and not the asset type itself

min length: 1 · max length: 64

accessories[].quantityinteger

How many of the accessory go out with one of the asset type, 1 to 10000. Defaults to 1

default: 1 · min: 1 · max: 10000

accessories[].mode"MANDATORY" | "DEFAULT" | "OPTIONAL"

How the accessory goes out with the asset type: MANDATORY (always, and it can't be left out), DEFAULT (unless it is taken out of the booking) or OPTIONAL (only if it is added, as an extra). Defaults to MANDATORY

default: "MANDATORY"

Resposta

Devolve Accessories sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ACCESSORY_NOT_FOUND 422

CIRCULAR_REFERENCE 422

DUPLICATE_ACCESSORY 422

TOO_DEEP 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/accessories/set" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetTypeUUID":"string","accessories":[]}'

Packages

List packages

GET
POST
/api/v1/org/{organisationUUID}/packages/list

Returns packages: bundles of asset types hired out together at one price. Filter by name, or to the packages one asset type is in. Call packages.get for what is in a package.

Necessita da permissão PACKAGES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return packages whose name contains this text (case-insensitive)

max length: 255

assetTypeUUIDstring

Only return the packages this asset type is in

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of packages per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort packages by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
packagesPackageSummary[]

Packages on this page, in the order asked for

totalinteger

Total number of packages across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/packages/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a package

GET
POST
/api/v1/org/{organisationUUID}/packages/get

Returns one package with its rate and the asset types in it, how many of each, and whether each can be left out.

Necessita da permissão PACKAGES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the package

min length: 1 · max length: 64

Resposta

Devolve Package sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/packages/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a package

POST
Simulação
/api/v1/org/{organisationUUID}/packages/create

Creates a package: a bundle of asset types hired out together at one rate, such as a small PA package of two speakers, two stands and a desk. It has no stock of its own.

Necessita da permissão PACKAGES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, such as 'Small PA package'

min length: 1 · max length: 200

descriptionstring

What the package is for, such as 'Speeches and background music for up to 100 people'

max length: 5000

rateinteger

Hire rate of the whole package in the smallest currency unit (such as pence). How the hire's length multiplies it is set by the price structure. Omit if it has no rate

min: 0 · max: 10000000000

priceStructureUUIDstring

UUID of the price structure that sets how the length of a hire multiplies the rate. Null for the organisation's default. Omit for the default

min length: 1 · max length: 64

taxRateUUIDstring

UUID of the tax rate it's charged at. Omit for the default

min length: 1 · max length: 64

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows packages. Defaults to true

contentsobject[]

The asset types in the package, in order (up to 50)

max items: 50

contents[].assetTypeUUID
Obrigatório
string

UUID of the asset type. Each type can appear once

min length: 1 · max length: 64

contents[].quantityinteger

How many of the asset type go out with one package, 1 to 10000. Defaults to 1

default: 1 · min: 1 · max: 10000

contents[].mode"MANDATORY" | "DEFAULT" | "OPTIONAL"

How the asset type goes out with the package: MANDATORY (always, and it can't be left out), DEFAULT (unless it is taken out of the booking) or OPTIONAL (only if it is added, as an extra). Defaults to MANDATORY

default: "MANDATORY"

Resposta

Devolve Package sob data.

Erros

Bem como os erros comuns:

ASSET_TYPE_NOT_FOUND 422

DUPLICATE_ASSET_TYPE 422

PRICE_STRUCTURE_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/packages/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a package

POST
Simulação
/api/v1/org/{organisationUUID}/packages/update

Changes a package's name, description, rate or price structure, or replaces the asset types in it. Fields that are omitted are left unchanged.

Necessita da permissão PACKAGES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the package to update

min length: 1 · max length: 64

namestring

Display name, such as 'Small PA package'. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

rateinteger | null

Hire rate of the whole package in the smallest currency unit (such as pence). How the hire's length multiplies it is set by the price structure, or null for no rate. Omit to leave unchanged

priceStructureUUIDstring | null

UUID of the price structure that sets how the length of a hire multiplies the rate. Null for the organisation's default. Omit to leave unchanged

taxRateUUIDstring | null

UUID of the tax rate it's charged at, or null for the default. Omit to leave unchanged

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows packages. Omit to leave unchanged

contentsobject[]

Every asset type in the package, in order, replacing what it had (up to 50). Omit to leave unchanged

max items: 50

contents[].assetTypeUUID
Obrigatório
string

UUID of the asset type. Each type can appear once

min length: 1 · max length: 64

contents[].quantityinteger

How many of the asset type go out with one package, 1 to 10000. Defaults to 1

default: 1 · min: 1 · max: 10000

contents[].mode"MANDATORY" | "DEFAULT" | "OPTIONAL"

How the asset type goes out with the package: MANDATORY (always, and it can't be left out), DEFAULT (unless it is taken out of the booking) or OPTIONAL (only if it is added, as an extra). Defaults to MANDATORY

default: "MANDATORY"

Resposta

Devolve Package sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ASSET_TYPE_NOT_FOUND 422

DUPLICATE_ASSET_TYPE 422

PRICE_STRUCTURE_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/packages/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a package

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/packages/delete

Soft-deletes a package. The asset types in it, and their assets, are not changed.

Necessita da permissão PACKAGES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the package to delete. The asset types in it are not changed

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the package that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/packages/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Calendar

List the projects on the calendar

GET
POST
/api/v1/org/{organisationUUID}/calendar/projects

Returns the projects whose event dates (or out dates, if they have no event dates) fall in a period, earliest first: the organisation's calendar. Lost and deleted projects aren't on it. Sub-projects with dates of their own are only listed if the calendar settings say so. Filter to the projects with an asset type on them, an asset allocated to them, or at one location; a filter also lists the sub-projects it matches.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
from
Obrigatório
string (date)

First day to show, such as `2027-06-01`, in the organisation's timezone

to
Obrigatório
string (date)

Last day to show, such as `2027-06-30`. At most 1100 days after `from`

assetTypeUUIDstring

Only projects with this asset type on them

min length: 1 · max length: 64

assetUUIDstring

Only projects this asset is allocated to

min length: 1 · max length: 64

venueUUIDstring

Only projects at this location

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
eventsCalendarEvent[]

Projects in the period, earliest first

timezonestring

IANA name of the organisation's timezone, which `from` and `to` are in

truncatedboolean

true if there were more than 2000 projects, and only the first 2000 came back. Ask for a shorter period

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar/projects" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"string","to":"string"}'

List the caller's own calendar

GET
POST
/api/v1/org/{organisationUUID}/calendar/mine

Returns the caller's own projects in a period, earliest first: those they manage or follow, with their sub-projects' dates where they have their own. Lost and deleted projects aren't on it.

Necessita da permissão CALENDAR.VIEW.

Entrada

CampoTipoDescrição
from
Obrigatório
string (date)

First day to show, such as `2027-06-01`, in the organisation's timezone

to
Obrigatório
string (date)

Last day to show, such as `2027-06-30`. At most 1100 days after `from`

Resposta

CampoTipoDescrição
eventsMyCalendarEvent[]

The caller's projects in the period, earliest first

timezonestring

IANA name of the organisation's timezone, which `from` and `to` are in

truncatedboolean

true if there were more than 2000 projects, and only the first 2000 came back. Ask for a shorter period

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar/mine" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"string","to":"string"}'

List a member's calendar

GET
POST
/api/v1/org/{organisationUUID}/calendar/member

Returns the projects a member manages or is on the crew of in a period, earliest first, as on their profile. Projects they only follow aren't included. Lost and deleted projects aren't on it.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
from
Obrigatório
string (date)

First day to show, such as `2027-06-01`, in the organisation's timezone

to
Obrigatório
string (date)

Last day to show, such as `2027-06-30`. At most 1100 days after `from`

memberUUID
Obrigatório
string

UUID of the member whose calendar to list

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
eventsMyCalendarEvent[]

The member's projects in the period, earliest first. `reasons` is `MANAGER` or `CREW`: who follows a project isn't shown

timezonestring

IANA name of the organisation's timezone, which `from` and `to` are in

truncatedboolean

true if there were more than 2000 projects, and only the first 2000 came back. Ask for a shorter period

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar/member" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"string","to":"string","memberUUID":"string"}'

Calendar settings

Get calendar settings

GET
POST
/api/v1/org/{organisationUUID}/calendar-settings/get

Returns how the organisation's calendar looks: whether statuses and sub-projects show, the view it opens in, and its week labels.

Necessita da permissão CALENDAR.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
showStatusboolean

Show each project's status after its name

showSubProjectsboolean

Show sub-projects with dates of their own as entries of their own. Sub-projects using their parent's dates are always left out

defaultView"month" | "week" | "list"

How the calendar opens: `month`, `week`, or `list` for the month's projects as a list

useWeekLabelsboolean

Show the week labels in place of week numbers

weekLabelsCalendarWeekLabel[]

Names for weeks, earliest first

max items: 1000

timezonestring

IANA name of the organisation's timezone, which the calendar's days are in. Set in the localisation settings

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update calendar settings

POST
Simulação
/api/v1/org/{organisationUUID}/calendar-settings/update

Changes how the organisation's calendar looks. Week labels are replaced as a whole: send every label to keep.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
showStatusboolean

Show each project's status after its name. Omit to leave unchanged

showSubProjectsboolean

Show sub-projects with dates of their own as entries of their own. Omit to leave unchanged

defaultView"month" | "week" | "list"

How the calendar opens: `month`, `week` or `list`. Omit to leave unchanged

useWeekLabelsboolean

Show week labels in place of week numbers. Omit to leave unchanged

weekLabelsCalendarWeekLabel[]

Every week label, replacing the ones there are. An empty list removes them all. Omit to leave unchanged

max items: 1000

Resposta

Devolve CalendarSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Calendar feeds

Get the caller's calendar feed

GET
POST
/api/v1/org/{organisationUUID}/calendar-feeds/get

Returns the caller's private calendar feed, if they have made one: what it holds and when it was last fetched. Its address is only shown when it's made.

Necessita da permissão CALENDAR.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
feedCalendarFeed | null

The caller's feed, or null if they haven't made one

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar-feeds/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create the caller's calendar feed

POST
/api/v1/org/{organisationUUID}/calendar-feeds/create

Creates a private address the caller's calendar app (Google, Apple or Outlook) can subscribe to, holding their own projects or every project on the organisation's calendar. It replaces any feed they had, whose address stops working. The address is only returned now.

Necessita da permissão CALENDAR.VIEW.

Entrada

CampoTipoDescrição
scope"MINE" | "ALL"

`MINE` (the default) for the caller's own projects, or `ALL` for every project on the organisation's calendar

default: "MINE"

Resposta

CampoTipoDescrição
feedCalendarFeed

pathstring

The feed's address, from the AdamRMS host: `/api/v1/calendar/{organisationUUID}/{token}.ics`. Shown only now. Anyone with it can read the feed

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar-feeds/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Revoke the caller's calendar feed

POST
Simulação
/api/v1/org/{organisationUUID}/calendar-feeds/revoke

Stops the caller's calendar feed working. Calendar apps subscribed to it stop getting updates.

Necessita da permissão CALENDAR.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
revokedboolean

true if there was a feed, which no longer works

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/calendar-feeds/revoke" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Dashboard

Get the caller's dashboard

GET
POST
/api/v1/org/{organisationUUID}/dashboard/get

Returns the widgets on the caller's dashboard and what they hold: their own projects over the next two weeks, projects going out and coming back today, projects short of stock over the next 30 days, their maintenance jobs, open maintenance jobs, inspections overdue or due in the next two weeks, the inventory's value and mass, its value over the last year, the number of members and file storage used. Each widget is only there for callers who can see what it shows, and is null if they've hidden it.

Necessita da permissão DASHBOARD.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve Dashboard sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/dashboard/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Choose the caller's dashboard widgets

POST
Simulação
/api/v1/org/{organisationUUID}/dashboard/set-widgets

Sets which widgets the caller hides from their dashboard. Every other widget they can see is shown, including ones added to AdamRMS later. It only changes the caller's own dashboard.

Necessita da permissão DASHBOARD.VIEW.

Entrada

CampoTipoDescrição
hidden
Obrigatório
("my-calendar" | "projects-today" | "project-shortages" | "my-maintenance" | "maintenance-open" | "inspections-due" | "inventory-total" | "inventory-value" | "members" | "storage")[]

Every widget to hide from the caller's dashboard. The rest they can see are shown, and so are widgets added later

max items: 10

Resposta

CampoTipoDescrição
hidden("my-calendar" | "projects-today" | "project-shortages" | "my-maintenance" | "maintenance-open" | "inspections-due" | "inventory-total" | "inventory-value" | "members" | "storage")[]

The widgets the caller now hides

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/dashboard/set-widgets" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hidden":[]}'

Wiki pages

List wiki pages

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/list

Returns the organisation's wiki pages that the caller can see, without their content. Filter by text, to the sub-pages of one page, to top-level pages, or to the pages in the side menu. A page limited to some roles is only seen by their members and by those who can edit pages; to anyone else it is not found. Call wiki-pages.get for a page's content.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return pages whose name or description contains this text (case-insensitive)

max length: 255

parentUUIDstring | null

Only return the sub-pages of this page. Null for top-level pages only. Omit for pages at every level

inMenuboolean

True for only the pages listed in the side menu

archived"LIVE" | "ARCHIVED" | "ALL"

`LIVE` (the default) for pages that aren't archived, `ARCHIVED` for archived pages only, `ALL` for both

default: "LIVE"

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of pages per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "menuOrder" | "createdAt" | "updatedAt"

Field to sort pages by. Defaults to `menuOrder`

default: "menuOrder"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
pagesWikiPage[]

Pages the caller can see on this page of results

totalinteger

Total number of pages across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a wiki page

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/get

Returns one wiki page with its content: the newest revision, or an earlier one by number. A page limited to some roles is only seen by their members and by those who can edit pages; to anyone else it is not found.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

revisioninteger

Number of an earlier revision to return. Omit for the newest

min: 1

Resposta

Devolve WikiPageWithContent sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

REVISION_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a wiki page

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/create

Creates a wiki page with its first content, as revision 1. A page's content is a list of cards, each with Markdown text.

Necessita da permissão WIKI_PAGES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

The page's title, such as 'Loading the van'

min length: 1 · max length: 200

descriptionstring

A sentence about what the page is for

max length: 5000

iconstring | null

The page's icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:book`), or `custom:<uuid>` for one the organisation uploaded

parentUUIDstring | null

UUID of the page to put it under. Omit for a top-level page

showInMenuboolean

True to list the page in the side menu. Defaults to false

default: false

showSubPagesboolean

True to list the page's sub-pages under its cards. Defaults to true

default: true

showFilesboolean

True to list the page's files under its cards. Defaults to true

default: true

roleUUIDsstring[]

UUIDs of the roles whose members can see the page. Omit, or pass an empty list, to let every member see it

default: [] · max items: 100

cardsWikiCard[]

The page's cards, in order

default: [] · max items: 50

changelogstring

A note about this first version, such as 'First draft'

max length: 1000

Resposta

Devolve WikiPageWithContent sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

PARENT_NOT_FOUND 422

ROLE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a wiki page's details

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/update

Changes a wiki page's title, description, icon, parent page, place in the side menu, which roles can see it, or whether it is archived. Fields that are omitted are left unchanged. To change its content, call wiki-pages.save.

Necessita da permissão WIKI_PAGES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page to update

min length: 1 · max length: 64

namestring

New title. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

iconstring | null

New icon, or null to remove it. Omit to leave unchanged

parentUUIDstring | null

UUID of the page to move it under, or null to make it a top-level page. Omit to leave unchanged

showInMenuboolean

Whether the page is listed in the side menu. Omit to leave unchanged

showSubPagesboolean

Whether the page lists its sub-pages. Omit to leave unchanged

showFilesboolean

Whether the page lists its files. Omit to leave unchanged

roleUUIDsstring[]

UUIDs of the roles whose members can see the page, replacing the current ones. An empty list lets every member see it. Omit to leave unchanged

max items: 100

archivedboolean

True to archive the page, false to bring it back. Omit to leave unchanged

Resposta

Devolve WikiPage sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CIRCULAR_REFERENCE 422

PARENT_NOT_FOUND 422

ROLE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Move a wiki page up or down

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/move

Moves a wiki page one place up or down among its sibling pages, which sets its place in the side menu and in lists. New pages go to the end. Archived pages only move among archived pages.

Necessita da permissão WIKI_PAGES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page to move

min length: 1 · max length: 64

direction
Obrigatório
"UP" | "DOWN"

UP to swap it with the page before it among its sibling pages, DOWN with the page after it. New pages go to the end

Resposta

Devolve WikiPage sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/move" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","direction":"string"}'

Save a wiki page's content

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/save

Replaces a wiki page's cards, as a new revision. Earlier revisions are kept, and can be brought back with wiki-pages.restore-revision. Pass `baseRevision` to refuse the save if someone else has saved since.

Necessita da permissão WIKI_PAGES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

cards
Obrigatório
WikiCard[]

The page's cards, in order. They replace the current ones, as a new revision

max items: 50

changelogstring

A note about what changed, such as 'Added the new van'

max length: 1000

baseRevisioninteger

The revision these changes were made to. If someone has saved a newer one since, the save is refused rather than overwriting their changes. Omit to save regardless

min: 0

Resposta

Devolve WikiPageWithContent sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CONFLICT 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/save" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","cards":[]}'

List a wiki page's revisions

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/list-revisions

Returns the saved versions of a wiki page, newest first by default, with who saved each and their note. Call wiki-pages.get with a revision number for its content.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of revisions per page, at most 100

default: 50 · min: 1 · max: 100

sort"revision"

Field to sort revisions by. Defaults to `revision`

default: "revision"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
revisionsWikiRevisionSummary[]

Revisions on this page of results

totalinteger

Total number of revisions across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/list-revisions" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Restore an earlier revision of a wiki page

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/restore-revision

Brings back the content of an earlier revision, by saving it again as a new revision. Nothing is lost: the revisions in between are kept.

Necessita da permissão WIKI_PAGES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

revision
Obrigatório
integer

Number of the revision whose content to bring back

min: 1

changelogstring

A note for the new revision. Defaults to 'Restored revision <number>'

max length: 1000

Resposta

Devolve WikiPageWithContent sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

REVISION_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/restore-revision" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","revision":1}'

Delete a wiki page

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/delete

Soft-deletes a wiki page. A page with sub-pages is refused until they are moved or deleted. A role that showed the page in place of its dashboard goes back to the usual dashboard.

Necessita da permissão WIKI_PAGES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page to delete. A page with sub-pages can't be deleted until they are moved or deleted

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the page that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

HAS_SUB_PAGES 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Record a view of a wiki page

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/record-view

Records that the caller opened a wiki page, for its view counts. Call it once each time a person opens the page, not when software reads it. Views are kept for 12 months.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page that was viewed

min length: 1 · max length: 64

source"WEB" | "APP" | "DASHBOARD"

Where it was viewed: `WEB` (the default) on its own page, `APP` in a mobile app, `DASHBOARD` as a role's dashboard

default: "WEB"

Resposta

CampoTipoDescrição
uuidstring

UUID of the page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/record-view" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Count a wiki page's views

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/view-stats

Returns how often a wiki page was viewed over the last days, and by how many members: in total, per day and by where it was viewed. Views are kept for 12 months.

Necessita da permissão WIKI_PAGES.VIEW_STATS.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

daysinteger

How many days to count back from today, at most 365. Defaults to 30

default: 30 · min: 1 · max: 365

Resposta

CampoTipoDescrição
uuidstring

UUID of the page

viewsinteger

Views in the period

viewersinteger

Different members who viewed it in the period

byDayobject[]

Views per day, oldest first, including days with none

byDay[].datestring (date)

The day, in UTC

byDay[].viewsinteger

Views that day

bySourceobject

Views in the period by where they happened

bySource.WEBinteger

Views on the page itself

bySource.APPinteger

Views in a mobile app

bySource.DASHBOARDinteger

Views as a role's dashboard

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/view-stats" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List a wiki page's views

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/list-views

Returns who viewed a wiki page and when, newest first by default. Views are kept for 12 months.

Necessita da permissão WIKI_PAGES.VIEW_STATS.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the page

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of views per page, at most 100

default: 50 · min: 1 · max: 100

sort"viewedAt"

Field to sort views by. Defaults to `viewedAt`

default: "viewedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
viewsobject[]

Views on this page of results

views[].userUUIDstring | null

UUID of the member who viewed the page, or null if not known

views[].userNamestring | null

Name of the member, or null if not known

views[].source"WEB" | "APP" | "DASHBOARD"

Where it was viewed: `WEB` on its own page, `APP` in a mobile app, `DASHBOARD` as a role's dashboard

views[].viewedAtstring (date-time)

When

totalinteger

Total number of views across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/list-views" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List each role's dashboard

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/list-dashboards

Returns every role in the organisation, with the wiki page its members see in place of the dashboard, if one is set.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
dashboardsobject[]

Every role in the organisation, with its dashboard

dashboards[].roleobject

dashboards[].role.uuidstring

UUID of the role

dashboards[].role.namestring

The role's name

dashboards[].role.customboolean

Whether it is one of the organisation's own roles, rather than a built-in one

dashboards[].pageobject | null

The wiki page the role's members see in place of the dashboard, or null for the usual dashboard

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/list-dashboards" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Choose a role's dashboard

POST
Simulação
/api/v1/org/{organisationUUID}/wiki-pages/set-dashboard

Shows a wiki page to a role's members in place of the dashboard, or with null goes back to the usual dashboard. The page must be visible to the role.

Necessita da permissão WIKI_PAGES.SET_DASHBOARDS.

Entrada

CampoTipoDescrição
roleUUID
Obrigatório
string

UUID of the role

min length: 1 · max length: 64

pageUUID
Obrigatório
string | null

UUID of the wiki page to show the role's members in place of the dashboard, or null for the usual dashboard. The page must be visible to the role

Resposta

CampoTipoDescrição
roleobject

role.uuidstring

UUID of the role

role.namestring

The role's name

role.customboolean

Whether it is one of the organisation's own roles, rather than a built-in one

pageobject | null

The wiki page the role's members see in place of the dashboard, or null for the usual dashboard

Erros

Bem como os erros comuns:

ROLE_NOT_FOUND 404

NOT_VISIBLE 422

PAGE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/set-dashboard" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"roleUUID":"string","pageUUID":"string"}'

Get the caller's dashboard page

GET
POST
/api/v1/org/{organisationUUID}/wiki-pages/get-dashboard

Returns the wiki page the caller's role shows in place of the dashboard, with its content, or null if the role has the usual dashboard.

Necessita da permissão WIKI_PAGES.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
pageWikiPageWithContent | null

The wiki page the caller's role shows in place of the dashboard, with its newest content, or null for the usual dashboard

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/wiki-pages/get-dashboard" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Asset groups

List asset groups

GET
POST
/api/v1/org/{organisationUUID}/asset-groups/list

Returns the asset groups the caller can see: the organisation's shared groups and the caller's own personal groups, with how many assets each holds. Filter by name, or to the groups one asset is in. To list a group's assets, call assets.list with its groupUUID.

Necessita da permissão ASSET_GROUPS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return groups whose name contains this text (case-insensitive)

max length: 255

assetUUIDstring

Only return the groups this asset is in

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of asset groups per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort asset groups by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
assetGroupsAssetGroup[]

Groups on this page, in the order asked for: the organisation's shared groups and the caller's own personal ones

totalinteger

Total number of asset groups across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an asset group

GET
POST
/api/v1/org/{organisationUUID}/asset-groups/get

Returns one asset group. Another member's personal group is reported as not found.

Necessita da permissão ASSET_GROUPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group

min length: 1 · max length: 64

Resposta

Devolve AssetGroup sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create an asset group

POST
Simulação
/api/v1/org/{organisationUUID}/asset-groups/create

Creates an empty asset group, shared with the organisation or personal to the caller. Add assets to it with asset-groups.add-assets.

Necessita da permissão ASSET_GROUPS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, such as 'Touring rig A'

min length: 1 · max length: 200

descriptionstring

What the group is for, such as 'Everything that goes on the Tour A truck'

max length: 5000

personalboolean

True to make a personal group that only the caller can see. Defaults to false: a group shared with the organisation

default: false

Resposta

Devolve AssetGroup sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update an asset group

POST
Simulação
/api/v1/org/{organisationUUID}/asset-groups/update

Changes an asset group's name, description, or whether it is personal. Fields that are omitted are left unchanged.

Necessita da permissão ASSET_GROUPS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group to update

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

personalboolean

True to make the group personal to the caller, false to share it with the organisation. Omit to leave unchanged

Resposta

Devolve AssetGroup sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete an asset group

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/asset-groups/delete

Soft-deletes an asset group. The assets in it are not changed.

Necessita da permissão ASSET_GROUPS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group to delete. The assets in it are not deleted

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the group that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add assets to an asset group

POST
Simulação
/api/v1/org/{organisationUUID}/asset-groups/add-assets

Adds assets to an asset group. Assets already in it are left as they are. Fails without adding any if one of the assets doesn't exist.

Necessita da permissão ASSET_GROUPS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group

min length: 1 · max length: 64

assetUUIDs
Obrigatório
string[]

UUIDs of the assets, 1 to 100 at a time

min items: 1 · max items: 100

Resposta

CampoTipoDescrição
uuidstring

UUID of the asset group

countinteger

How many assets were added or removed. Assets already in the group (or already out of it) aren't counted

Erros

Bem como os erros comuns:

NOT_FOUND 404

ASSET_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/add-assets" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","assetUUIDs":[]}'

Remove assets from an asset group

POST
Simulação
/api/v1/org/{organisationUUID}/asset-groups/remove-assets

Takes assets out of an asset group. The assets themselves are not changed. Assets that aren't in the group are ignored.

Necessita da permissão ASSET_GROUPS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group

min length: 1 · max length: 64

assetUUIDs
Obrigatório
string[]

UUIDs of the assets, 1 to 100 at a time

min items: 1 · max items: 100

Resposta

CampoTipoDescrição
uuidstring

UUID of the asset group

countinteger

How many assets were added or removed. Assets already in the group (or already out of it) aren't counted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/remove-assets" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","assetUUIDs":[]}'

Watch an asset group

POST
/api/v1/org/{organisationUUID}/asset-groups/watch

Starts the caller watching an asset group, so they are emailed when assets are added to it or taken out. Each member chooses which of those emails they get in their notification settings. Watching a group already watched changes nothing.

Necessita da permissão ASSET_GROUPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group

min length: 1 · max length: 64

Resposta

Devolve AssetGroup sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/watch" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Stop watching an asset group

POST
/api/v1/org/{organisationUUID}/asset-groups/unwatch

Stops the caller watching an asset group, so they get no more emails about it. Changes nothing if they weren't watching it.

Necessita da permissão ASSET_GROUPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset group

min length: 1 · max length: 64

Resposta

Devolve AssetGroup sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-groups/unwatch" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Notifications

Email members

POST
/api/v1/org/{organisationUUID}/notifications/send

Emails members of the organisation a short plain-text message, such as a reminder that a delivery is due, optionally linking to one record. The email says who sent it: the App, or the member. Members choose whether they get these emails, and can turn off one App's emails, so don't send anything a member must see. Sending is best effort: a failed email isn't reported.

Necessita da permissão ORGANISATIONS_USERS.SEND.

Entrada

CampoTipoDescrição
recipientUUIDs
Obrigatório
string[]

UUIDs of the members to email, 1 to 50. Anyone who isn't a member, can't see the record, or has turned these emails off is skipped

min items: 1 · max items: 50

subject
Obrigatório
string

What the email is about, such as 'Delivery due tomorrow'. The organisation's name is added to it

min length: 1 · max length: 150

message
Obrigatório
string

The email's text, as plain text. A blank line starts a new paragraph. Not Markdown or HTML

min length: 1 · max length: 5000

recordobject

A record the email is about. The email links to it, and only members who can see it are emailed

record.type
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer" | "training-module" | "member-certification" | "payment" | "wiki-page"

The kind of record: `asset-category` (an asset category), `asset` (an asset (one unit, or one bulk lot)), `asset-type` (an asset type (a catalogue entry)), `client` (a client), `client-contact` (a person at a client), `location` (a location), `maintenance-job` (a maintenance job (a fault or piece of work on assets)), `project` (a project (an event, show or hire)), `manufacturer` (a manufacturer of assets), `training-module` (a training module, whose files are the images in its steps), `member-certification` (a certification a member holds, whose files are photos or PDFs of the card), `payment` (a payment, refund or deposit on a project, whose files are receipts and remittances), `wiki-page` (a page in the organisation's wiki)

record.uuid
Obrigatório
string

UUID of the record

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
emailedinteger

How many members were emailed. The rest were skipped: not members, unable to see the record, or with these emails turned off

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/notifications/send" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipientUUIDs":[],"subject":"string","message":"string"}'

Label templates

List label templates

GET
POST
/api/v1/org/{organisationUUID}/label-templates/list

Returns the organisation's label templates: how its asset and location labels look, with their size, sheet layout and elements.

Necessita da permissão LABEL_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return templates whose name contains this text (case-insensitive)

max length: 255

subject"ASSET" | "LOCATION"

Only return templates for assets, or for locations

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of label templates per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort label templates by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
labelTemplatesLabelTemplate[]

Templates on this page, in the order asked for

totalinteger

Total number of label templates across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/label-templates/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a label template

GET
POST
/api/v1/org/{organisationUUID}/label-templates/get

Returns one label template with its elements.

Necessita da permissão LABEL_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the label template

min length: 1 · max length: 64

Resposta

Devolve LabelTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/label-templates/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a label template

POST
Simulação
/api/v1/org/{organisationUUID}/label-templates/create

Creates a label template: the label's size in millimetres, how labels sit on a sheet (or null for a roll or tape, such as a Brother label printer's), and the elements drawn on each label, positioned in millimetres from its top left corner. Every element must fit on the label, and fields must suit what the label is for. Names are unique, ignoring case.

Necessita da permissão LABEL_TEMPLATES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, such as 'Asset label 62mm'

min length: 1 · max length: 200

descriptionstring

What it's for, such as 'For cases, on the 62mm roll'

max length: 5000

subject"ASSET" | "LOCATION"

Whether the labels are for assets or locations

default: "ASSET"

width
Obrigatório
number

Width of one label, in millimetres

min: 5 · max: 300

height
Obrigatório
number

Height of one label, in millimetres

min: 5 · max: 300

sheetLabelSheet | null

How labels sit on a sheet, such as an A4 sticker sheet. Null for a roll or tape

default: null

elementsLabelElement[]

What's drawn on each label, from the bottom layer up (up to 40)

default: [] · max items: 40

Resposta

Devolve LabelTemplate sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

INVALID_ELEMENT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/label-templates/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","width":5,"height":5}'

Update a label template

POST
Simulação
/api/v1/org/{organisationUUID}/label-templates/update

Changes a label template's name, size, sheet layout or elements. `elements` replaces every element. What a template is for (assets or locations) can't be changed. Fields that are omitted are left unchanged.

Necessita da permissão LABEL_TEMPLATES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to update

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

widthnumber

New width. Omit to leave unchanged

min: 5 · max: 300

heightnumber

New height. Omit to leave unchanged

min: 5 · max: 300

sheetLabelSheet | null

New sheet layout, or null for a roll or tape. Omit to leave unchanged

elementsLabelElement[]

Every element, replacing the ones there now. Omit to leave unchanged

max items: 40

Resposta

Devolve LabelTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

INVALID_ELEMENT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/label-templates/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a label template

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/label-templates/delete

Soft-deletes a label template. Labels already printed still scan, because they encode the asset or location, not the template.

Necessita da permissão LABEL_TEMPLATES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the template that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/label-templates/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Assets

List assets

GET
POST
/api/v1/org/{organisationUUID}/assets/list

Returns the organisation's assets (the physical stock: individual units and bulk lots), paginated. Search matches any asset ID, the type's name and custom field text such as names and serial numbers. Archived assets are left out unless asked for.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return assets with an asset ID, type name or custom field text containing this (case-insensitive)

max length: 255

assetTypeUUIDstring

Only return assets of this type

min length: 1 · max length: 64

categoryUUIDstring

Only return assets whose type is in this category or its subcategories

min length: 1 · max length: 64

storageLocationUUIDstring

Only return assets kept at this location or the locations inside it

min length: 1 · max length: 64

parentUUIDstring

Only return assets kept directly in this asset

min length: 1 · max length: 64

manufacturerUUIDstring

Only return assets whose type is made by this manufacturer or a manufacturer it owns

min length: 1 · max length: 64

groupUUIDstring

Only return assets in this asset group. Another member's personal group matches no assets

min length: 1 · max length: 64

uuidsstring[]

Only return these assets, by UUID (up to 100). UUIDs that aren't assets are ignored

min items: 1 · max items: 100

includeArchivedboolean

Also return archived assets

default: false

includeDeletedboolean

Also return soft-deleted assets. Needs permission to view deleted assets

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of assets per page, at most 100

default: 50 · min: 1 · max: 100

sort"assetId" | "createdAt" | "updatedAt"

Field to sort assets by. Defaults to `assetId`

default: "assetId"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
assetsAsset[]

Assets on this page, in the order asked for

totalinteger

Total number of assets across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an asset

GET
POST
/api/v1/org/{organisationUUID}/assets/get

Returns one asset with its asset IDs, effective custom field values, the cases it is in, what is kept in it, and the total mass and value of it and its contents.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

Devolve AssetDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create assets

POST
/api/v1/org/{organisationUUID}/assets/create

Creates one or more assets of a type, each with its own asset ID: the IDs given, IDs counting up from a starting ID, or the next IDs from the organisation's sequence. For a bulk type each asset is a lot holding `quantity` items. Nothing is created if any ID is taken.

Necessita da permissão ASSETS.CREATE.

Entrada

CampoTipoDescrição
assetTypeUUID
Obrigatório
string

UUID of the asset type

min length: 1 · max length: 64

countinteger

How many assets to create, each with its own asset ID (1 to 100). For a bulk type this is the number of lots

default: 1 · min: 1 · max: 100

assetIDsstring[]

The asset IDs to give the new assets, one each, in order. Must have `count` values. Omit to number them from `startingID` or the organisation's ID sequence

min items: 1 · max items: 100

startingIDstring

The first asset's ID; later ones count up from its last number, keeping its padding (E-009, E-010, ...). Omit to use the organisation's ID sequence

min length: 1 · max length: 128

symbology"QR_CODE" | "CODE_128" | "CODE_39" | "CODE_93" | "EAN_8" | "EAN_13"

What the new asset IDs are printed as. Omit for not printed as a barcode

quantityinteger

Bulk types only: how many items each new lot holds. Defaults to 1. Recorded as the opening balance

min: 1 · max: 1000000

massnumber

Mass of one item in `massUnit`, overriding the type's

min: 0 · max: 1000000000

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit `mass` is given in: `g`, `kg`, `t`, `oz` or `lb`. Defaults to kg

default: "kg"

valueinteger

Replacement value of one item in the smallest currency unit, overriding the type's

min: 0 · max: 10000000000

rateOverrideinteger

Hire rate of one item in the smallest currency unit, overriding the type's

min: 0 · max: 10000000000

priceStructureOverrideUUIDstring

UUID of the price structure, overriding the type's (and the organisation default)

min length: 1 · max length: 64

storageLocationUUIDstring

UUID of the location it is kept at when not out

min length: 1 · max length: 64

parentUUIDstring

UUID of the asset it is kept in (a case, a rack). A case can't end up inside itself

min length: 1 · max length: 64

linkKind"PERMANENT" | "DEFAULT"

How it goes with its case: `PERMANENT` (always, and can't be booked alone) or `DEFAULT` (unless left out). Defaults to DEFAULT

default: "DEFAULT"

customFieldsobject

Custom field values set on the asset, by field UUID. A field set on both the type and the asset overrides the type's value. Every new asset gets the same values

Resposta

CampoTipoDescrição
assetsAsset[]

The assets created, in order

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

ID_TAKEN 409

ASSET_TYPE_NOT_FOUND 422

INVALID_CUSTOM_FIELDS 422

LOCATION_NOT_FOUND 422

MASS_UNIT_REQUIRED 422

PARENT_NOT_FOUND 422

PRICE_STRUCTURE_NOT_FOUND 422

QUANTITY_NOT_ALLOWED 422

STARTING_ID_HAS_NO_NUMBER 422

TOO_DEEP 422

WRONG_NUMBER_OF_IDS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetTypeUUID":"string"}'

Update an asset

POST
/api/v1/org/{organisationUUID}/assets/update

Changes an asset: its own mass, value, rate or price structure (null falls back to the type's), where it is stored, the case it is kept in, and its custom field values. Fields that are omitted are left unchanged.

Necessita da permissão ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset to update

min length: 1 · max length: 64

massnumber | null

Mass of one item in `massUnit`, overriding the type's, or null to use the type's. Omit to leave unchanged

massUnit"g" | "kg" | "t" | "oz" | "lb"

The unit `mass` is given in. Required with `mass`

valueinteger | null

Replacement value of one item in the smallest currency unit, overriding the type's, or null to use the type's. Omit to leave unchanged

rateOverrideinteger | null

Hire rate of one item in the smallest currency unit, overriding the type's, or null to use the type's. Omit to leave unchanged

priceStructureOverrideUUIDstring | null

UUID of the price structure, overriding the type's (and the organisation default), or null to use the type's. Omit to leave unchanged

storageLocationUUIDstring | null

UUID of the location it is kept at when not out, or null for none. Omit to leave unchanged

parentUUIDstring | null

UUID of the asset it is kept in (a case, a rack). A case can't end up inside itself, or null to take it out of its case. Omit to leave unchanged

linkKind"PERMANENT" | "DEFAULT"

How it goes with its case: `PERMANENT` (always, and can't be booked alone) or `DEFAULT` (unless left out). Defaults to DEFAULT. Only with a case. Omit to leave unchanged

customFieldsobject

Custom field values to change, by field UUID. Fields left out keep their value; null clears one (so a field set on both falls back to the type's)

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

INVALID_CUSTOM_FIELDS 422

LOCATION_NOT_FOUND 422

MASS_UNIT_REQUIRED 422

PARENT_IS_SELF_OR_INSIDE 422

PARENT_NOT_FOUND 422

PRICE_STRUCTURE_NOT_FOUND 422

TOO_DEEP 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Archive an asset

POST
Simulação
/api/v1/org/{organisationUUID}/assets/archive

Archives an asset that has been sold, lost or retired. It is kept, with its history, but hidden from lists and can't be booked.

Necessita da permissão ASSETS.ARCHIVE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset to archive

min length: 1 · max length: 64

reasonstring

Why, e.g. 'Sold to Acme' or 'Lost on tour'

max length: 1000

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_ARCHIVED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/archive" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Unarchive an asset

POST
Simulação
/api/v1/org/{organisationUUID}/assets/unarchive

Puts an archived asset back into use.

Necessita da permissão ASSETS.ARCHIVE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_ARCHIVED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/unarchive" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete an asset

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/assets/delete

Soft-deletes an asset, for one created by mistake (archive one that is sold or lost instead). Its asset IDs become free to reuse, and anything kept in it is taken out.

Necessita da permissão ASSETS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the asset that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Restore an asset

POST
Simulação
/api/v1/org/{organisationUUID}/assets/restore

Restores a deleted asset with the asset IDs it had. Refused if another asset has taken one of them since.

Necessita da permissão ASSETS.RESTORE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

ID_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/restore" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Adjust a lot's stock

POST
Simulação
/api/v1/org/{organisationUUID}/assets/adjust-stock

Adds items to or takes items from a bulk lot, recording why. The lot's history keeps every change.

Necessita da permissão ASSETS.ADJUST_STOCK.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the lot

min length: 1 · max length: 64

delta
Obrigatório
integer

How many items to add (positive) or take away (negative). The lot can't go below 0

min: -1000000 · max: 1000000

reason
Obrigatório
"PURCHASE" | "FOUND" | "WRITE_OFF" | "CONSUMED" | "COUNT_CORRECTION"

Why: `PURCHASE`, `FOUND`, `WRITE_OFF` (lost or broken), `CONSUMED` (used up) or `COUNT_CORRECTION` (a stock count found a different number)

notestring

A note on the change

max length: 1000

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

STOCK_CHANGED 409

BELOW_ZERO 422

NOT_A_LOT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/adjust-stock" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","delta":-1000000,"reason":"string"}'

Get a lot's stock history

GET
POST
/api/v1/org/{organisationUUID}/assets/stock-history

Returns the changes to a bulk lot's quantity, newest first by default: the opening balance, purchases, write-offs, counts and so on.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the lot

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of stock movements per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt"

Field to sort stock movements by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
movementsStockMovement[]

Changes to the lot's quantity on this page

totalinteger

Total number of stock movements across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_A_LOT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/assets/stock-history" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Asset ids

Add an asset ID

POST
Simulação
/api/v1/org/{organisationUUID}/asset-ids/add

Adds an asset ID to an asset, e.g. a manufacturer's barcode or a new label. With `makePrimary` it becomes the ID shown everywhere, and the old one still scans.

Necessita da permissão ASSETS.MANAGE_IDS.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset to add the ID to

min length: 1 · max length: 64

value
Obrigatório
string

The ID as printed or scanned. Must not be a live ID of any asset (ignoring case)

min length: 1 · max length: 128

symbology"QR_CODE" | "CODE_128" | "CODE_39" | "CODE_93" | "EAN_8" | "EAN_13"

What it is printed as. Omit for not a barcode

makePrimaryboolean

Make it the asset's primary ID, e.g. after re-labelling. The old one still scans

default: false

notesstring

Notes on the ID, e.g. 'Manufacturer barcode'

max length: 1000

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ID_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-ids/add" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string","value":"string"}'

Remove an asset ID

POST
Simulação
/api/v1/org/{organisationUUID}/asset-ids/remove

Removes an asset ID from its asset, freeing it for reuse. An asset's last ID can't be removed; removing the primary ID makes the oldest remaining one primary.

Necessita da permissão ASSETS.MANAGE_IDS.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset ID record

min length: 1 · max length: 64

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

LAST_ID 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-ids/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Make an asset ID primary

POST
Simulação
/api/v1/org/{organisationUUID}/asset-ids/set-primary

Makes an asset ID its asset's primary ID: the one shown in lists, on labels and on documents.

Necessita da permissão ASSETS.MANAGE_IDS.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the asset ID record

min length: 1 · max length: 64

Resposta

Devolve Asset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-ids/set-primary" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Find an asset by asset ID

GET
POST
/api/v1/org/{organisationUUID}/asset-ids/lookup

Returns the live asset with an asset ID (ignoring case), for scanners and links. Any of an asset's IDs finds it.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
value
Obrigatório
string

An asset ID as printed or scanned

min length: 1 · max length: 128

Resposta

CampoTipoDescrição
assetAsset | null

The live asset with that ID, or null if there is none

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-ids/lookup" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"string"}'

Reserve asset IDs for blank labels

POST
Simulação
/api/v1/org/{organisationUUID}/asset-ids/reserve

Takes the next free asset IDs from the organisation's sequence without giving them to an asset, so they can be printed as blank labels and stuck on later. New assets never get them from the sequence. Give one to an asset by scanning it, with `asset-ids.add`, or as an asset ID in `assets.create`.

Necessita da permissão ASSETS.MANAGE_IDS.

Entrada

CampoTipoDescrição
count
Obrigatório
integer

How many asset IDs to reserve, up to 200. They come from the organisation's sequence, which moves past them

min: 1 · max: 200

Resposta

CampoTipoDescrição
assetIDsstring[]

The reserved asset IDs, in order. Print them as blank labels, then give one to an asset with `asset-ids.add` or `assets.create`

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-ids/reserve" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count":1}'

Asset settings

Get asset settings

GET
POST
/api/v1/org/{organisationUUID}/asset-settings/get

Returns how new asset IDs are numbered.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve AssetSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update asset settings

POST
Simulação
/api/v1/org/{organisationUUID}/asset-settings/update

Changes how new asset IDs are numbered. IDs already given are not changed.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
idPrefixstring

What new asset IDs start with, e.g. `A-` gives A-0001. May be empty. Omit to leave unchanged

max length: 20

idPadLengthinteger

How many digits new asset IDs' numbers are padded to, e.g. 4 gives A-0001. Omit to leave unchanged

min: 1 · max: 10

idNextNumberinteger

The number the next generated asset ID gets. Numbers already used are skipped. Omit to leave unchanged

min: 1 · max: 1000000000

Resposta

Devolve AssetSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/asset-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Localisation settings

Get localisation settings

GET
POST
/api/v1/org/{organisationUUID}/localisation-settings/get

Returns the currency the organisation hires in (and whether it can still change), its timezone, the language documents for clients are written in, and the unit system masses are shown in.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve LocalisationSettingsWithLock sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/localisation-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update localisation settings

POST
Simulação
/api/v1/org/{organisationUUID}/localisation-settings/update

Changes the organisation's currency, timezone, document language or unit system. Amounts already entered are not converted, so the currency can't change once projects have prices, quotes, invoices or payments.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
currency"GBP" | "USD" | "EUR" | "AUD" | "CAD" | "CHF" | "CNY" | "JPY" | "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BWP" | "BYN" | "BZD" | "CDF" | "CLP" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ETB" | "FJD" | "FKP" | "GEL" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "ISK" | "JMD" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SEK" | "SGD" | "SHP" | "SLE" | "SOS" | "SRD" | "STD" | "SZL" | "THB" | "TJS" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW"

ISO 4217 code of the currency the organisation hires in, e.g. `GBP`. Rates and values are stored in its smallest unit (pence, cents). Changing it doesn't convert amounts already entered, so it can't change once projects have prices, quotes, invoices or payments. Omit to leave unchanged

timezonestring

IANA name of the organisation's timezone, e.g. `Europe/London`. Dates on projects and documents are in this timezone. Omit to leave unchanged

documentLanguage"en" | "fr" | "es" | "de" | "it" | "pt" | "nl"

Language of documents written for clients, such as quotes and invoices: one of `en`, `fr`, `es`, `de`, `it`, `pt`, `nl`. Omit to leave unchanged

unitSystem"METRIC" | "IMPERIAL_UK" | "IMPERIAL_US"

How masses are shown: `METRIC` (g, kg, t), `IMPERIAL_UK` (oz, lb, 2,240 lb ton) or `IMPERIAL_US` (oz, lb, 2,000 lb ton). Omit to leave unchanged

Resposta

Devolve LocalisationSettingsWithLock sob data.

Erros

Bem como os erros comuns:

CURRENCY_LOCKED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/localisation-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Security settings

Get security settings

GET
POST
/api/v1/org/{organisationUUID}/security-settings/get

Returns which roles must use two-factor authentication, and how long members can go without using the organisation before they are signed out.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve SecuritySettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/security-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update security settings

POST
Simulação
/api/v1/org/{organisationUUID}/security-settings/update

Changes which roles must use two-factor authentication, or when idle members are signed out. Members of a role that now needs two-factor authentication can't use the organisation until they set it up.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
idleTimeoutMinutes15 | 30 | 60 | 120 | 240 | 480 | null

Sign members out after this many minutes without using the organisation, such as on a shared warehouse computer: one of 15, 30, 60, 120, 240, 480, or null for never. Using the dashboard or another organisation doesn't count as using this one. Omit to leave unchanged

mfaRequiredRoleUUIDsstring[]

UUIDs of the roles whose members must use two-factor authentication. Members with these roles who haven't set it up can't use the organisation until they do. Empty for none. Omit to leave unchanged

max items: 100

Resposta

Devolve SecuritySettings sob data.

Erros

Bem como os erros comuns:

ROLE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/security-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Backups

Get the backup schedule

GET
POST
/api/v1/org/{organisationUUID}/backups/get-schedule

Returns the hour the organisation's database is backed up each day, and when the next backup runs.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
hourUTCinteger | null

The hour of the day (0 to 23, UTC) the daily backup runs, or null if no daily backup is set up

nextBackupAtstring (date-time) | null

When the next daily backup runs, or null if none is set up

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/backups/get-schedule" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Set the backup schedule

POST
/api/v1/org/{organisationUUID}/backups/set-schedule

Backs up the organisation's database every day at the given hour (UTC). Pick a quiet hour: members can't use the organisation while a backup runs.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
hourUTC
Obrigatório
integer

The hour of the day (0 to 23, UTC) to back up the database every day, such as 2 for 02:00 UTC

min: 0 · max: 23

Resposta

CampoTipoDescrição
hourUTCinteger | null

The hour of the day (0 to 23, UTC) the daily backup runs, or null if no daily backup is set up

nextBackupAtstring (date-time) | null

When the next daily backup runs, or null if none is set up

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/backups/set-schedule" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hourUTC":0}'

Back up now

POST
/api/v1/org/{organisationUUID}/backups/create

Backs up the organisation's database straight away. Members can't use the organisation for the few seconds it takes. The backup is saved in the `DATABASE_BACKUPS` file category.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
backupIdstring

Name of the new backup. It is listed with `files.list` in the `DATABASE_BACKUPS` category

Erros

Bem como os erros comuns:

BACKUP_FAILED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/backups/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Audit logs

Read the audit log

GET
POST
/api/v1/org/{organisationUUID}/audit-logs/list

Returns what happened in the organisation over the last 90 days, newest first: who did what, and what changed. Can show only one member's actions, or only the history of one record, such as a project. Reading the log is itself recorded in it.

Necessita da permissão AUDIT_LOGS.VIEW.

Entrada

CampoTipoDescrição
beforestring (date-time)

Only events before this time. Pass the previous page's `nextBefore` for the next page

limitinteger

How many events to return, newest first. Up to 100

default: 25 · min: 1 · max: 100

actorUserUuidstring

Only events done by this member

max length: 64

recordUuidstring

Only events about this record, such as a project's UUID, including changes to its lines and crew

max length: 64

searchstring

Only events whose description contains this text. Needs `actorUserUuid` or `recordUuid` too

min length: 1 · max length: 200

Resposta

CampoTipoDescrição
eventsAuditEvent[]

Events on this page, newest first

nextBeforestring (date-time) | null

Pass as `before` for the next page. Null on the last page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/audit-logs/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Public site

Get public site settings

GET
POST
/api/v1/org/{organisationUUID}/public-site/get

Returns what the organisation's public site shows: whether it is on, the hire catalogue and which categories it shows, whether it shows prices, whether visitors can send enquiries (and the status and manager enquiry projects get), and whether crew vacancies are listed.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve PublicSiteSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/public-site/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update public site settings

POST
Simulação
/api/v1/org/{organisationUUID}/public-site/update

Changes what the organisation's public site shows. Anyone can open the public site without signing in, so turning it on, or showing prices, makes that information public.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
enabledboolean

Whether the public site is on. While it's off, every public page says it isn't available. Omit to leave unchanged

introductionstring | null

A few sentences shown at the top of the public site, such as what you hire out and where. Null clears it. Omit to leave unchanged

catalogueboolean

Show a catalogue of the asset types you hire out, for visitors to browse. Omit to leave unchanged

showPricesboolean

Show each asset type's hire rate in the catalogue. Omit to leave unchanged

categoryUUIDsstring[]

UUIDs of the categories the catalogue shows, with their subcategories. Empty for every category. Omit to leave unchanged

max items: 100

packagesboolean

Show packages in the catalogue too, with what's in each. Only packages set to show on the public site are listed. Omit to leave unchanged

enquiriesboolean

Let visitors send an enquiry from the catalogue. Each one becomes a new project. Omit to leave unchanged

enquiryStatusUUIDstring | null

UUID of the status enquiry projects get, or null for the first status at the provisional stage. Omit to leave unchanged

enquiryManagerUUIDstring | null

UUID of the member who manages enquiry projects and is emailed about each one, or null for nobody. Omit to leave unchanged

vacanciesboolean

Show the crew vacancies you've chosen to advertise publicly. Omit to leave unchanged

vacancyClientsboolean

Show the client of each vacancy's project. Omit to leave unchanged

colourScheme"AUTO" | "LIGHT" | "DARK"

`AUTO` follows each visitor's light or dark setting. `LIGHT` or `DARK` always uses that one, such as to match your own website. Omit to leave unchanged

accentColourstring | null

Colour of buttons and links, as a hex colour such as #1864ab, or null for AdamRMS pink. Omit to leave unchanged

frameHeaderboolean

Show your logo and name at the top when the public site is in a frame on your own website. It's always shown on its own page. Omit to leave unchanged

Resposta

Devolve PublicSiteSettings sob data.

Erros

Bem como os erros comuns:

CATEGORY_NOT_FOUND 404

PERSON_NOT_FOUND 404

STATUS_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/public-site/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Organisation details

Get the organisation's details

GET
POST
/api/v1/org/{organisationUUID}/organisation-details/get

Returns the organisation's name, who members contact for help, and the address, phone, email, website and tax and company registration printed on documents for clients.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve OrganisationDetails sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-details/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update the organisation's details

POST
/api/v1/org/{organisationUUID}/organisation-details/update

Changes the organisation's name, support contact details, address, phone, email, website or tax and company registration. Fields left out keep their value; null clears one.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
namestring

The organisation's name, shown to members and on documents for clients

min length: 1 · max length: 255

supportContactInfostring | null

Who members should contact for help, shown when they lack a permission or a licence. Null for none

addressstring | null

Postal address, printed on documents for clients such as quotes and invoices. Null for none

phonestring | null

Phone number for clients. Null for none

emailstring (email) | null

Email address for clients. Null for none

websitestring (uri) | null

Website address, such as `https://example.com`. Null for none

taxIdLabelstring | null

What the organisation's tax registration is called where it trades, such as 'VAT number', 'GST number' or 'ABN'. Printed on documents for clients. Null if not set

taxIdstring | null

The tax registration number. Null for none

companyIdLabelstring | null

What the organisation's company registration is called, such as 'Company number' or 'ACN'. Printed on documents for clients. Null if not set

companyIdstring | null

The company registration number. Null for none

Resposta

Devolve OrganisationDetails sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-details/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Set the organisation's email header

POST
/api/v1/org/{organisationUUID}/organisation-details/set-email-header

Sets the image shown at the top of emails sent about the organisation, such as comment notifications and invitations, replacing any it had.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
image
Obrigatório
string

The image at the top of emails sent about the organisation: a JPEG of at most 300 KB as a base64 `data:` URL. 1200 by 600 pixels works best

max length: 409630

Resposta

Devolve OrganisationDetails sob data.

Erros

Bem como os erros comuns:

INVALID_IMAGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-details/set-email-header" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"string"}'

Remove the organisation's email header

POST
/api/v1/org/{organisationUUID}/organisation-details/remove-email-header

Removes the organisation's email header. Emails sent about it then show the AdamRMS logo.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve OrganisationDetails sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-details/remove-email-header" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Ai usage

Get the organisation's AdamRMS AI allowance

GET
POST
/api/v1/org/{organisationUUID}/ai-usage/get-allowance

Returns what the organisation's AdamRMS AI use this month is worth in its currency, what its plan includes, and whether members can still prompt AdamRMS AI. Once the allowance is used, AdamRMS AI stops until the next month.

Necessita da permissão AI_USAGE.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
monthstring

The month the current allowance started in, as YYYY-MM. Allowances run from the subscription's billing day, so see periodStart and resetsOn

periodStartstring

The day (UTC) the current month of allowance started, as YYYY-MM-DD: the subscription's billing day

resetsOnstring

The day (UTC) the allowance starts again, as YYYY-MM-DD

currencystring | null

The currency of the amounts, such as GBP: the organisation's subscription's. Null when usage can't be shown in money, such as on a complimentary subscription

usedAmountnumber | null

What the organisation's AdamRMS AI use this month is worth, in the smallest unit of the currency (pence or cents). Null without a currency

includedAmountnumber | null

What the organisation's plan includes each month, in the smallest unit of the currency. Null when unlimited, or without a currency

unlimitedboolean

Whether the organisation's plan includes unlimited AdamRMS AI

usedPercentnumber | null

How much of the plan's monthly allowance is used, as a percentage. Null when unlimited or none is included

triallingboolean

Whether the organisation's subscription is in its free trial

canPromptboolean

Whether members can send AdamRMS AI another prompt this month

stopReason"allowance" | "trial" | null

Why AdamRMS AI has stopped for the month: allowance (the plan's allowance is used) or trial (the trial's allowance is used). Null while it can be used

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/ai-usage/get-allowance" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Price structures

List price structures

GET
POST
/api/v1/org/{organisationUUID}/price-structures/list

Returns the organisation's price structures: the rules that turn the length of a hire into a multiple of an item's rate (e.g. 'Daily', '3-day week', 'Fixed'). One of them is the default.

Necessita da permissão PRICE_STRUCTURES.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of price structures per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt"

Field to sort price structures by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
priceStructuresPriceStructure[]

Price structures on this page, in the order asked for

totalinteger

Total number of price structures across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/price-structures/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a price structure

POST
Simulação
/api/v1/org/{organisationUUID}/price-structures/create

Creates a price structure from a table of cumulative factors. A name already used by another price structure (ignoring case) is refused.

Necessita da permissão PRICE_STRUCTURES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. '3-day week'. Must not match another price structure's name (ignoring case)

min length: 1 · max length: 100

descriptionstring

What the structure is for

max length: 1000

unit
Obrigatório
"HOUR" | "DAY" | "WEEK" | "MONTH" | "NONE"

What one unit of an item's rate pays for: `HOUR`, `DAY`, `WEEK`, `MONTH`, or `NONE` (charged once per project however long it is, also used for sales of consumables)

factors
Obrigatório
number[]

Cumulative multipliers of the rate for 1, 2, 3... units: the total charged for that many units, not the extra for each. E.g. `[1, 2, 3, 3, 3, 3, 3]` is a 3-day week: 3 days cost 3x the day rate, and 4 to 7 days cost the same

min items: 1 · max items: 366

beyond
Obrigatório
"REPEAT" | "EXTEND" | "HOLD"

What happens after the last factor: `REPEAT` (start the table again, adding to the total so far - a weekly table charges every week the same), `EXTEND` (add `extendFactor` for each extra unit) or `HOLD` (stay at the last factor)

extendFactornumber

With `beyond: EXTEND`, the multiplier of the rate added for each unit after the last factor, e.g. 1 to charge every extra day in full, 0.5 for half price. Defaults to 0

min: 0 · max: 1000

minimumUnitsinteger

A hire shorter than this many units is charged as this many, e.g. 4 for a four-hour minimum. Defaults to 1

default: 1 · min: 0 · max: 1000

dayCounting"CALENDAR" | "ELAPSED"

How days are counted from a hire's dates: `CALENDAR` (every calendar day it touches, start and end included) or `ELAPSED` (every started 24 hours, after `leewayMinutes`). Defaults to CALENDAR

default: "CALENDAR"

leewayMinutesinteger

With `ELAPSED` counting (and for hourly structures), how many minutes a hire can overrun before another unit is charged. Defaults to 0

default: 0 · min: 0 · max: 1440

chargeableWeekdays("MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN")[]

The weekdays that are charged with `CALENDAR` counting, e.g. Monday to Friday for a five-day week. Defaults to every day

min items: 1

isDefaultboolean

Make this the organisation's default structure, in place of the current one

default: false

Resposta

Devolve PriceStructure sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/price-structures/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","unit":"string","factors":[],"beyond":"string"}'

Update a price structure

POST
Simulação
/api/v1/org/{organisationUUID}/price-structures/update

Changes a price structure, or makes it the default. Fields that are omitted are left unchanged. Prices already agreed on bookings keep the structure as it was when they were made.

Necessita da permissão PRICE_STRUCTURES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the price structure to update

min length: 1 · max length: 64

namestring

Display name, e.g. '3-day week'. Must not match another price structure's name (ignoring case). Omit to leave unchanged

min length: 1 · max length: 100

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

unit"HOUR" | "DAY" | "WEEK" | "MONTH" | "NONE"

What one unit of an item's rate pays for: `HOUR`, `DAY`, `WEEK`, `MONTH`, or `NONE` (charged once per project however long it is, also used for sales of consumables). Omit to leave unchanged

factorsnumber[]

Cumulative multipliers of the rate for 1, 2, 3... units: the total charged for that many units, not the extra for each. E.g. `[1, 2, 3, 3, 3, 3, 3]` is a 3-day week: 3 days cost 3x the day rate, and 4 to 7 days cost the same. Omit to leave unchanged

min items: 1 · max items: 366

beyond"REPEAT" | "EXTEND" | "HOLD"

What happens after the last factor: `REPEAT` (start the table again, adding to the total so far - a weekly table charges every week the same), `EXTEND` (add `extendFactor` for each extra unit) or `HOLD` (stay at the last factor). Omit to leave unchanged

extendFactornumber

With `beyond: EXTEND`, the multiplier of the rate added for each unit after the last factor, e.g. 1 to charge every extra day in full, 0.5 for half price. Omit to leave unchanged

min: 0 · max: 1000

minimumUnitsinteger

A hire shorter than this many units is charged as this many, e.g. 4 for a four-hour minimum. Omit to leave unchanged

min: 0 · max: 1000

dayCounting"CALENDAR" | "ELAPSED"

How days are counted from a hire's dates: `CALENDAR` (every calendar day it touches, start and end included) or `ELAPSED` (every started 24 hours, after `leewayMinutes`). Omit to leave unchanged

leewayMinutesinteger

With `ELAPSED` counting (and for hourly structures), how many minutes a hire can overrun before another unit is charged. Omit to leave unchanged

min: 0 · max: 1440

chargeableWeekdays("MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN")[]

The weekdays that are charged with `CALENDAR` counting, e.g. Monday to Friday for a five-day week. Defaults to every day. Omit to leave unchanged

min items: 1

isDefaultboolean

true makes this the default structure in place of the current one. The default can't be unset directly: make another structure the default instead

Resposta

Devolve PriceStructure sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

DEFAULT_REQUIRED 409

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/price-structures/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a price structure

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/price-structures/delete

Deletes a price structure. The default structure can't be deleted: make another structure the default first. Nor can one that asset types, assets or client pricing entries use.

Necessita da permissão PRICE_STRUCTURES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the price structure to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the price structure that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

IS_DEFAULT 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/price-structures/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Tax rates

List tax rates

GET
POST
/api/v1/org/{organisationUUID}/tax-rates/list

Returns the organisation's tax rates, such as 'Standard 20%' and 'Zero rated'. Prices are net, and each line on a project is taxed at its rate. One rate is the default, for anything without its own.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of tax rates per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name"

Field to sort tax rates by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
taxRatesTaxRate[]

Tax rates on this page, in the order asked for

totalinteger

Total number of tax rates across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a tax rate

POST
Simulação
/api/v1/org/{organisationUUID}/tax-rates/create

Creates a tax rate at the end of the list. The organisation's first rate becomes the default. A name already used by another rate (ignoring case) is refused.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Standard'

min length: 1 · max length: 100

rateBpinteger

The rate in basis points: 2000 is 20%. Ignored unless `STANDARD`

default: 0 · min: 0 · max: 10000

kind"STANDARD" | "ZERO" | "EXEMPT" | "REVERSE_CHARGE"

`STANDARD`, `ZERO`, `EXEMPT` or `REVERSE_CHARGE`

default: "STANDARD"

codestring

Its code in accounting software, such as 'OUTPUT2'

max length: 50

isDefaultboolean

Make it the rate anything without its own is taxed at

default: false

Resposta

Devolve TaxRate sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

TOO_MANY 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a tax rate

POST
Simulação
/api/v1/org/{organisationUUID}/tax-rates/update

Changes a tax rate, or makes it the default. Fields that are omitted are left unchanged. Lines already on projects keep the rate they were priced at until their prices are refreshed.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the tax rate to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

rateBpinteger

New rate in basis points. Lines already on projects keep their rate until their prices are refreshed. Omit to leave unchanged

min: 0 · max: 10000

kind"STANDARD" | "ZERO" | "EXEMPT" | "REVERSE_CHARGE"

New kind. Omit to leave unchanged

codestring | null

New code, or null to clear it. Omit to leave unchanged

isDefaulttrue

true makes it the default. To change the default, set it on another rate

Resposta

Devolve TaxRate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Move a tax rate

POST
Simulação
/api/v1/org/{organisationUUID}/tax-rates/reorder

Moves a tax rate to a new position in the list, which is the order pickers show them in.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the tax rate to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve TaxRate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete a tax rate

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/tax-rates/delete

Deletes a tax rate. Asset types, packages and services that used it go back to the default rate, and projects that overrode their tax with it stop overriding. Lines already on projects keep the rate they were priced at. Deleting the default makes the first remaining rate the default.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the tax rate to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted tax rate

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add a country's tax rates

POST
Simulação
/api/v1/org/{organisationUUID}/tax-rates/add-preset

Adds a ready-made set of tax rates, such as the UK's VAT rates. Rates with the same name as one the organisation has are skipped, and the tax name is set if it hasn't been.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
preset
Obrigatório
"UK_VAT" | "IE_VAT" | "AU_GST" | "NZ_GST" | "CA_GST"

Which set to add: `UK_VAT` (20%, 5%, zero rated, exempt), `IE_VAT`, `AU_GST`, `NZ_GST` or `CA_GST`. Rates with the same name as one you have are skipped

Resposta

CampoTipoDescrição
taxRatesTaxRate[]

Every tax rate, after adding

taxNamestring

What tax is called, after adding

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-rates/add-preset" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"preset":"string"}'

Tax settings

Get tax settings

GET
POST
/api/v1/org/{organisationUUID}/tax-settings/get

Returns what tax is called on the organisation's documents, such as 'VAT' or 'GST'.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve TaxSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update tax settings

POST
Simulação
/api/v1/org/{organisationUUID}/tax-settings/update

Changes what tax is called on the organisation's documents, such as 'VAT' or 'GST'.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
taxName
Obrigatório
string

What tax is called on documents, such as 'VAT' or 'GST'

min length: 1 · max length: 30

Resposta

Devolve TaxSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/tax-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taxName":"string"}'

Services

List services

GET
POST
/api/v1/org/{organisationUUID}/services/list

Returns the organisation's services: things it charges for that aren't stock, such as delivery, a technician day or PAT testing. Each can be added to a project as a priced line.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return services whose name contains this text (case-insensitive)

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of services per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort services by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
servicesService[]

Services on this page, in the order asked for

totalinteger

Total number of services across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/services/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a service

POST
Simulação
/api/v1/org/{organisationUUID}/services/create

Creates a service. A name already used by another service (ignoring case) is refused. It can list the certifications crew charged as it need.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, such as 'Delivery' or 'Technician day'

min length: 1 · max length: 200

descriptionstring

What the service is, shown on quotes

max length: 5000

rateinteger

Rate of one in the smallest currency unit (such as pence). How a project's length multiplies it is set by the price structure. Omit to price it on each project

min: 0 · max: 10000000000

priceStructureUUIDstring

UUID of the price structure that sets how the length of a project multiplies the rate. Null for the organisation's default. Omit for the default

min length: 1 · max length: 64

taxRateUUIDstring

UUID of the tax rate it's charged at. Null for the organisation's default rate. Omit for the default

min length: 1 · max length: 64

costinteger

What one costs the organisation, in the smallest currency unit, for working out margin. Omit if it has none

min: 0 · max: 10000000000

certificationTypeUUIDsstring[]

UUIDs of the certification types crew charged as it need, such as IPAF for a rigger. Crew without them are flagged on the project, not refused. Omit for none

default: [] · max items: 20

Resposta

Devolve Service sob data.

Erros

Bem como os erros comuns:

PRICE_STRUCTURE_NOT_FOUND 404

TAX_RATE_NOT_FOUND 404

NAME_TAKEN 409

CERTIFICATION_TYPE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/services/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a service

POST
Simulação
/api/v1/org/{organisationUUID}/services/update

Changes a service. Fields that are omitted are left unchanged. Lines already on projects keep their price until their prices are refreshed.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the service to change

min length: 1 · max length: 64

namestring

Display name, such as 'Delivery' or 'Technician day'. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

rateinteger | null

Rate of one in the smallest currency unit (such as pence). How a project's length multiplies it is set by the price structure, or null to price it on each project. Omit to leave unchanged

priceStructureUUIDstring | null

UUID of the price structure that sets how the length of a project multiplies the rate. Null for the organisation's default. Omit to leave unchanged

taxRateUUIDstring | null

UUID of the tax rate it's charged at. Null for the organisation's default rate. Omit to leave unchanged

costinteger | null

What one costs the organisation, in the smallest currency unit, for working out margin, or null for none. Omit to leave unchanged

certificationTypeUUIDsstring[]

UUIDs of the certification types crew charged as it need, such as IPAF for a rigger. Crew without them are flagged on the project, not refused. Replaces the list. Omit to leave unchanged

max items: 20

Resposta

Devolve Service sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

PRICE_STRUCTURE_NOT_FOUND 404

TAX_RATE_NOT_FOUND 404

NAME_TAKEN 409

CERTIFICATION_TYPE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/services/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a service

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/services/delete

Deletes a service, so it can't be added to projects. Lines already on projects stay, with their price.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the service to delete. Lines already on projects keep their price

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the service that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/services/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Crew roles

List crew roles

GET
POST
/api/v1/org/{organisationUUID}/crew-roles/list

Returns the organisation's crew roles: roles it recruits for again and again, such as a lighting designer, each with what it involves. A crew vacancy can name one, and shows its description.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return crew roles whose name contains this text (case-insensitive)

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of crew roles per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort crew roles by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
crewRolesCrewRole[]

Crew roles on this page, in the order asked for

totalinteger

Total number of crew roles across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-roles/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a crew role

POST
Simulação
/api/v1/org/{organisationUUID}/crew-roles/create

Creates a crew role, with a description that vacancies for it show. A name already used by another crew role (ignoring case) is refused.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

The role, such as 'Lighting designer' or 'Sound No.1'

min length: 1 · max length: 200

descriptionstring

What the role involves, with links to more about it, in Markdown. Shown on every vacancy for it

max length: 10000

Resposta

Devolve CrewRole sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-roles/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a crew role

POST
Simulação
/api/v1/org/{organisationUUID}/crew-roles/update

Changes a crew role. Fields that are omitted are left unchanged. Every vacancy for it shows the new description straight away.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the crew role to change

min length: 1 · max length: 64

namestring

The role, such as 'Lighting designer' or 'Sound No.1'. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

What the role involves, with links to more about it, in Markdown. Shown on every vacancy for it, or null to clear it. Omit to leave unchanged

Resposta

Devolve CrewRole sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-roles/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a crew role

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/crew-roles/delete

Deletes a crew role, so new vacancies can't use it. Vacancies that used it stay, with their own description, but no longer show the crew role's.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the crew role to delete. Vacancies that used it keep their own description

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the crew role that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-roles/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Project templates

List project templates

GET
POST
/api/v1/org/{organisationUUID}/project-templates/list

Returns the organisation's project templates: projects saved to start others from, each with the lines, crew roles and notes it adds. Start a project from one with projects.create and its templateUUID.

Necessita da permissão PROJECT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return templates whose name contains this text (case-insensitive)

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of templates per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort templates by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
templatesProjectTemplate[]

Templates on this page, in the order asked for

totalinteger

Total number of templates across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-templates/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a project template

GET
POST
/api/v1/org/{organisationUUID}/project-templates/get

Returns a project template with the lines, crew roles and notes it adds to a project started from it.

Necessita da permissão PROJECT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template

min length: 1 · max length: 64

Resposta

Devolve ProjectTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-templates/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Save a project as a template

POST
Simulação
/api/v1/org/{organisationUUID}/project-templates/create

Saves a project's own lines, crew roles and notes as a template, with the project's type. Accessories and package contents come with their line, so aren't saved separately. Sub-hire, assets allocated, who is on the crew (and what their places charge), and the project's dates, client and prices aren't saved. A name already used by another template (ignoring case) is refused.

Necessita da permissão PROJECT_TEMPLATES.CREATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project to save. Its own lines, crew roles and notes are saved, not its sub-projects'

min length: 1 · max length: 64

name
Obrigatório
string

The template's name, such as 'Wedding: small PA and lighting'

min length: 1 · max length: 200

descriptionstring

What the template is for, shown when choosing one

max length: 5000

Resposta

Devolve ProjectTemplate sob data.

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-templates/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","name":"string"}'

Rename a project template

POST
Simulação
/api/v1/org/{organisationUUID}/project-templates/update

Changes a template's name or description. To change what it holds, save a project as a new template.

Necessita da permissão PROJECT_TEMPLATES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to change

min length: 1 · max length: 64

namestring

The template's name, such as 'Wedding: small PA and lighting'. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

Resposta

Devolve ProjectTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-templates/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a project template

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-templates/delete

Deletes a project template. Projects already started from it don't change.

Necessita da permissão PROJECT_TEMPLATES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to delete. Projects already started from it don't change

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the template that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-templates/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Project lines

List what's on a project

GET
POST
/api/v1/org/{organisationUUID}/project-lines/list

Returns everything on a project's quote: asset types, assets, packages, services, charges and sub-hire, with what's allocated to each line, how much of each asset type is free over the project's dates, and the project's totals. Lines can be grouped, such as by category, with counts for each group of what's short or still to allocate. Ask for some groups only, or search and filter, to page through a project with thousands of lines.

Necessita da permissão PROJECT_ASSETS.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

includeSubProjectsboolean

Include the lines on its sub-projects. Defaults to true

default: true

groupBy"NONE" | "CATEGORY" | "SUB_PROJECT"

How to group the lines in `groups`: NONE (one group), CATEGORY (by the asset type's category, then packages, then services and charges) or SUB_PROJECT. Each top-level line and everything under it is in one group. Defaults to NONE

default: "NONE"

groupsstring[]

Only return the lines in these groups, by their `key`. An empty list returns no lines, only the groups and counts. Omit for every group

max items: 100

searchstring

Only lines whose description, comment or allocated asset IDs contain this text, with the lines above them

max length: 255

filter"SHORT" | "TO_ALLOCATE" | "SUB_HIRE"

Only lines that are SHORT (need more than is free), TO_ALLOCATE (need more assets allocated) or SUB_HIRE (have stock hired in), with the lines above them

Resposta

CampoTipoDescrição
linesProjectLine[]

Every line, in quote order: each line, then the lines under it. Sub-projects' lines follow the project's

totalsProjectTotals | null

The project's totals, or null if you can't see prices

outStartstring (date-time) | null

When the project's assets leave, which availability is for

outEndstring (date-time) | null

When the project's assets are back

currencystring

ISO 4217 code of the currency the amounts are in, e.g. `GBP`

taxNamestring

What the organisation calls tax on its documents, e.g. `VAT`

groupsProjectLineGroup[]

Every group of lines, by `groupBy`, with what each needs. Counted over all the lines, whatever `groups`, search and filter return

countsProjectLineCounts

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Add to a project

POST
Simulação
/api/v1/org/{organisationUUID}/project-lines/add

Adds a line to a project, priced from the catalogue through the project's client pricing. An asset type brings its mandatory and default accessories under it, free. A package brings its contents. An asset is allocated straight away, with what's in it if it's a case. More of an asset type than is free can be added: the line shows a shortage.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project or sub-project to add to

min length: 1 · max length: 64

kind
Obrigatório
"ASSET_TYPE" | "ASSET" | "PACKAGE" | "SERVICE" | "CHARGE" | "SUB_HIRE"

What to add: ASSET_TYPE (some of an asset type, with its accessories), ASSET (one asset, allocated, with what's in it if it's a case), PACKAGE (a package, with its contents), SERVICE, CHARGE (a one-off line) or SUB_HIRE (something hired in from a supplier)

assetTypeUUIDstring

The asset type, for ASSET_TYPE

min length: 1 · max length: 64

assetUUIDstring

The asset, for ASSET

min length: 1 · max length: 64

packageUUIDstring

The package, for PACKAGE

min length: 1 · max length: 64

serviceUUIDstring

The service, for SERVICE

min length: 1 · max length: 64

quantityinteger

How many. For ASSET, 1 for an individual unit or some of a lot. Defaults to 1

default: 1 · min: 1 · max: 100000

descriptionstring

What it shows as. Required for CHARGE and SUB_HIRE; otherwise the item's name

min length: 1 · max length: 500

rateinteger

Rate of one, in the smallest currency unit. For CHARGE and SUB_HIRE, and to override a service's

min: 0 · max: 10000000000

costinteger

What it costs the organisation: of one for CHARGE and SERVICE, of the whole sub-hire for SUB_HIRE

min: 0 · max: 10000000000

commentstring

A note on the line

max length: 2000

supplierClientUUIDstring

For SUB_HIRE: the supplier, a client

min length: 1 · max length: 64

supplierNamestring

For SUB_HIRE: the supplier's name, when it isn't a client

max length: 200

referencestring

For SUB_HIRE: the supplier's reference

max length: 200

startstring (date-time)

When this line alone goes out. Omit for the project's dates

endstring (date-time)

When this line alone comes back. Omit for the project's dates

Resposta

CampoTipoDescrição
linesProjectLine[]

The line added, then the lines added under it

skippedobject[]

Assets in a case that couldn't be allocated with it, because they're out elsewhere or blocked

skipped[].assetUUIDstring

UUID of the asset left out

skipped[].reasonstring

Why: ASSET_BLOCKED, ASSET_UNAVAILABLE or ALREADY_ON_PROJECT

Erros

Bem como os erros comuns:

DESCRIPTION_REQUIRED 400

ASSET_NOT_FOUND 404

ASSET_TYPE_NOT_FOUND 404

CLIENT_NOT_FOUND 404

NOT_FOUND 404

PACKAGE_NOT_FOUND 404

SERVICE_NOT_FOUND 404

ALREADY_ON_PROJECT 409

ASSET_BLOCKED 409

ASSET_UNAVAILABLE 409

ASSETS_OFF 409

NOT_STOCK 409

TOO_MANY_FOR_LOT 409

WRONG_TYPE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/add" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","kind":"string"}'

Add an asset group to a project

POST
Simulação
/api/v1/org/{organisationUUID}/project-lines/add-group

Adds every asset in an asset group to a project, each on its own line and allocated, as adding each asset would. One of a lot is added; change its line's quantity for more. An asset that's blocked, out on another confirmed project at the same time, or already on this project is left out and listed, and the rest are still added.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project or sub-project to add to

min length: 1 · max length: 64

groupUUID
Obrigatório
string

UUID of the asset group. Each of its assets is added as if added on its own

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
linesProjectLine[]

The lines added, each asset's line followed by the lines added under it

skippedobject[]

The group's assets that couldn't be added, and assets in its cases that couldn't go with them

skipped[].assetUUIDstring

UUID of the asset left out

skipped[].reasonstring

Why: ASSET_BLOCKED, ASSET_UNAVAILABLE, ALREADY_ON_PROJECT or ASSET_NOT_FOUND

Erros

Bem como os erros comuns:

GROUP_NOT_FOUND 404

NOT_FOUND 404

ASSETS_OFF 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/add-group" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","groupUUID":"string"}'

Change a line on a project

POST
Simulação
/api/v1/org/{organisationUUID}/project-lines/update

Changes a line's quantity, description, comment, discount, custom price, units, tax rate, cost or dates. Fields that are omitted are left unchanged. Changing what it charges needs permission to see prices.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the line

min length: 1 · max length: 64

quantityinteger

How many. Accessories and package contents under it change in proportion. Omit to leave unchanged

min: 1 · max: 100000

descriptionstring

What it shows as. Omit to leave unchanged

min length: 1 · max length: 500

commentstring | null

A note on the line, or null to clear it. Omit to leave unchanged

chargedboolean

False to send it out free. Omit to leave unchanged

rateinteger | null

Rate of one, or null for none. Omit to leave unchanged

discountBpinteger

Discount in basis points: 1000 is 10%. Omit to leave unchanged

min: 0 · max: 10000

customPriceinteger | null

A price for the whole line that replaces the calculated one, or null to calculate it. Omit to leave unchanged

unitsOverrideinteger | null

Chargeable units for this line, such as 1 for a day of a 3-day project. 0 is free. Null works them out. Omit to leave unchanged

taxRateUUIDstring | null

Tax rate for this line, or null for the rate it would have. Omit to leave unchanged

costinteger | null

What one costs the organisation, or null. Omit to leave unchanged

startstring (date-time) | null

When this line alone goes out, or null for the project's dates. Omit to leave unchanged

endstring (date-time) | null

When this line alone comes back, or null for the project's dates. Omit to leave unchanged

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

TAX_RATE_NOT_FOUND 404

BELOW_ALLOCATED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Remove a line from a project

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-lines/remove

Removes a line from a project, with the lines under it (accessories, package contents and case contents) and their allocations. The assets are free for other projects again. A line on an issued invoice can't be removed until that invoice is credited; draft invoices lose it.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the line to remove. Lines under it, and their allocations, go too

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the line removed

removedinteger

How many lines went, including those under it

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

LINE_INVOICED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Move a line on a project

POST
Simulação
/api/v1/org/{organisationUUID}/project-lines/reorder

Moves a line among the lines next to it, which is the order it shows on the quote.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the line

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position among the lines next to it, from 0. Positions past the end move it to the end

min: 0

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Refresh a project's prices

POST
Simulação
/api/v1/org/{organisationUUID}/project-lines/refresh-prices

Copies the catalogue's current rates, price structures, client pricing and tax rates onto a project's lines, or one line. Discounts, custom prices and units set on a line are kept. Prices are otherwise fixed when a line is added, so changing the catalogue never changes a project already priced.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project or sub-project

min length: 1 · max length: 64

lineUUIDstring

Only this line. Omit for every line on the project

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
changedinteger

How many lines changed price

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/refresh-prices" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

List assets free for a line

GET
POST
/api/v1/org/{organisationUUID}/project-lines/free-assets

Returns the assets of a line's asset type that are free for the line's dates, with where each is kept and when it's next due an inspection, and those that aren't free and why: on another confirmed project (and when it's back), on another line of this project, or blocked by maintenance. Use it to choose what to allocate.

Necessita da permissão PROJECT_ASSETS.VIEW.

Entrada

CampoTipoDescrição
lineUUID
Obrigatório
string

UUID of the line to fill. It must take stock

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
lineobject

The line being filled

line.uuidstring

UUID of the line

line.descriptionstring

What the line is

line.assetTypeUUIDstring

UUID of the line's asset type

line.tracking"INDIVIDUAL" | "BULK"

Whether the type is tracked unit by unit or in lots

line.quantityinteger

How many the line is for

line.allocatedinteger

How many are allocated

line.toAllocateinteger

How many more it needs, after what's hired in

startstring (date-time) | null

Start of the period the assets are needed for, or null

endstring (date-time) | null

End of that period, or null

freeobject[]

Assets of the type free for the whole period, by asset ID. At most 500

free[].assetUUIDstring

UUID of the asset

free[].assetIdstring | null

The asset's primary asset ID, such as its barcode, or null

free[].quantityinteger

How many are free: 1 for a unit, some of a lot

free[].locationobject | null

Where it's kept, or null

free[].lastInspectedAtstring (date-time) | null

When it was last inspected, or null

free[].inspectionDueAtstring (date-time) | null

When it's next due an inspection, if that's before the period ends, or null

free[].flaggedstring | null

Why it's flagged, such as an open maintenance job's title, or null. It can still be booked

freeCountinteger

How many assets are free in all

busyobject[]

Assets of the type that can't go on the line, and why. At most 500

busy[].assetUUIDstring

UUID of the asset

busy[].assetIdstring | null

The asset's primary asset ID, such as its barcode, or null

busy[].reason"ON_PROJECT" | "ON_THIS_PROJECT" | "BLOCKED"

ON_PROJECT (on another confirmed project at the same time), ON_THIS_PROJECT (on another line of this project) or BLOCKED (maintenance or an overdue inspection)

busy[].projectobject | null

The project it's on, or null

busy[].maintenancestring | null

The maintenance job or inspection blocking it, by name, or null

busy[].freeFromstring (date-time) | null

When it's back from the other project, or null if not known

busyCountinteger

How many assets can't go on the line in all

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

NOT_STOCK 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-lines/free-assets" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lineUUID":"string"}'

Project allocations

Allocate an asset to a line

POST
Simulação
/api/v1/org/{organisationUUID}/project-allocations/allocate

Puts a specific asset on a line of its asset type. An individual unit can't be on two confirmed projects whose dates overlap, or on one project twice, and a blocked one can't be booked. A lot can't give more than it has free.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
lineUUID
Obrigatório
string

UUID of the line to fill. It must be of the asset's type

min length: 1 · max length: 64

assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

quantityinteger

How many of a lot. Ignored for individual units. The line grows if it needs to

default: 1 · min: 1 · max: 100000

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 404

LINE_NOT_FOUND 404

ALREADY_ON_PROJECT 409

ASSET_BLOCKED 409

ASSET_UNAVAILABLE 409

NOT_STOCK 409

TOO_MANY_FOR_LOT 409

WRONG_TYPE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-allocations/allocate" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lineUUID":"string","assetUUID":"string"}'

Allocate several assets to a line

POST
Simulação
/api/v1/org/{organisationUUID}/project-allocations/allocate-many

Puts several assets on a line of their asset type at once, such as the free ones project-lines.free-assets lists. Each is checked as allocating it alone would be: one that's blocked, on another confirmed project at the same time or already on this project is left out and listed, and the rest are still allocated.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
lineUUID
Obrigatório
string

UUID of the line to fill. It must be of the assets' type

min length: 1 · max length: 64

assets
Obrigatório
object[]

The assets to allocate, up to 100

min items: 1 · max items: 100

assets[].assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

assets[].quantityinteger

How many of a lot. Ignored for individual units. Defaults to 1

default: 1 · min: 1 · max: 100000

Resposta

CampoTipoDescrição
lineProjectLine

The line, with its allocations

allocatedstring[]

UUIDs of the assets allocated

skippedobject[]

Assets that couldn't be allocated. The rest still are

skipped[].assetUUIDstring

UUID of the asset left out

skipped[].reasonstring

Why: ASSET_NOT_FOUND, WRONG_TYPE, ALREADY_ON_PROJECT, ASSET_BLOCKED, ASSET_UNAVAILABLE or TOO_MANY_FOR_LOT

Erros

Bem como os erros comuns:

LINE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-allocations/allocate-many" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lineUUID":"string","assets":[]}'

Take an asset off a line

POST
Simulação
/api/v1/org/{organisationUUID}/project-allocations/release

Takes an allocated asset off its line, with anything allocated because it's in it. The line stays, with fewer allocated.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
allocationUUID
Obrigatório
string

UUID of the allocation. Anything allocated because it's in it goes too

min length: 1 · max length: 64

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

ALLOCATION_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-allocations/release" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allocationUUID":"string"}'

Mark an asset prepped, out or back

POST
Simulação
/api/v1/org/{organisationUUID}/project-allocations/set-progress

Marks an allocated asset prepped, sent out or back by hand, as scanning in a project's session does, and records how many of it didn't come back. Taking a mark off takes the later ones off too. Anything packed in it gets the same marks.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
allocationUUID
Obrigatório
string

UUID of the allocation. Anything packed in it gets the same marks

min length: 1 · max length: 64

preppedboolean

Mark it prepped, or false to take that off (and sent out and back)

dispatchedboolean

Mark it sent out (and prepped), or false to take that off (and back)

returnedboolean

Mark it back, less any `missingQuantity`, or false to take that off. It must have gone out

missingQuantityinteger

How many didn't come back, such as a cable lost on site. 0 clears it. At most what went out and isn't back

min: 0

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

ALLOCATION_NOT_FOUND 404

NOT_DISPATCHED 409

TOO_MANY_MISSING 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-allocations/set-progress" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allocationUUID":"string"}'

Swap an allocated asset

POST
Simulação
/api/v1/org/{organisationUUID}/project-allocations/swap

Puts another asset of the same type in an allocation's place, such as when one fails in prep. Its prep, dispatch and return are cleared.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
allocationUUID
Obrigatório
string

UUID of the allocation to change

min length: 1 · max length: 64

assetUUID
Obrigatório
string

UUID of the asset to put in its place, of the same asset type

min length: 1 · max length: 64

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

ALLOCATION_NOT_FOUND 404

ASSET_NOT_FOUND 404

ALREADY_ON_PROJECT 409

ASSET_BLOCKED 409

ASSET_UNAVAILABLE 409

NOT_STOCK 409

TOO_MANY_FOR_LOT 409

WRONG_TYPE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-allocations/swap" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allocationUUID":"string","assetUUID":"string"}'

Sub hires

Add or change a sub-hire

POST
Simulação
/api/v1/org/{organisationUUID}/sub-hires/set

Records stock hired in from a supplier to fill a line, such as 20 more LED pars from another hire company. What's hired in counts as stock for that line only.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
lineUUID
Obrigatório
string

UUID of the line it fills

min length: 1 · max length: 64

uuidstring

UUID of the sub-hire to change. Omit to add one

min length: 1 · max length: 64

supplierClientUUIDstring | null

The supplier, a client, or null

supplierNamestring | null

The supplier's name when it isn't a client, or null

referencestring | null

The supplier's reference, such as their order number

quantity
Obrigatório
integer

How many are hired in

min: 1 · max: 100000

costinteger | null

What the whole sub-hire costs, or null if unknown

startstring (date-time) | null

When it arrives, or null

endstring (date-time) | null

When it goes back, or null

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

LINE_NOT_FOUND 404

SUB_HIRE_NOT_FOUND 404

NOT_STOCK 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/sub-hires/set" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lineUUID":"string","quantity":1}'

Remove a sub-hire

POST
Simulação
/api/v1/org/{organisationUUID}/sub-hires/remove

Removes a sub-hire from its line. The line stays.

Necessita da permissão PROJECT_ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the sub-hire to remove

min length: 1 · max length: 64

Resposta

Devolve ProjectLine sob data.

Erros

Bem como os erros comuns:

SUB_HIRE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/sub-hires/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Availability

Check availability

GET
POST
/api/v1/org/{organisationUUID}/availability/check

Returns how much of each asset type is free over a period, or for a project: total stock, what's booked on confirmed projects, what's held on provisional ones and what maintenance blocks.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
assetTypeUUIDs
Obrigatório
string[]

The asset types to check, up to 100

min items: 1 · max items: 100

startstring (date-time)

Start of the period. With end, or give a project

endstring (date-time)

End of the period

projectUUIDstring

Check for this project: its out period, unless start and end are given, and leaving out its own lines

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
startstring (date-time) | null

Start of the period checked, or null

endstring (date-time) | null

End of the period checked, or null

assetTypesobject[]

Each asset type found. Deleted ones are left out

assetTypes[].assetTypeUUIDstring

UUID of the asset type

assetTypes[].namestring

Name of the asset type

assetTypes[].totalinteger

Stock of the asset type

assetTypes[].bookedinteger

On confirmed projects over the period

assetTypes[].heldinteger

On provisional projects over the period. Not taken away

assetTypes[].blockedinteger

Blocked by maintenance or an overdue inspection

assetTypes[].availableinteger

Total less booked and blocked. Without a period, nothing is booked

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/availability/check" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetTypeUUIDs":[]}'

Client pricing

List client pricing

GET
POST
/api/v1/org/{organisationUUID}/client-pricing/list

Returns the organisation's client pricing: named alternative prices, such as 'Trade' or 'Dry hire', that a client's projects can use instead of catalogue prices.

Necessita da permissão CLIENT_PRICING.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of client pricing per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt"

Field to sort client pricing by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
clientPricingClientPricing[]

Client pricing on this page, in the order asked for

totalinteger

Total number of client pricing across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get client pricing

GET
POST
/api/v1/org/{organisationUUID}/client-pricing/get

Returns one client pricing with its entries: the prices it sets for particular asset types and categories.

Necessita da permissão CLIENT_PRICING.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client pricing

min length: 1 · max length: 64

Resposta

Devolve ClientPricingDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create client pricing

POST
Simulação
/api/v1/org/{organisationUUID}/client-pricing/create

Creates client pricing, optionally with a percentage applied to everything it has no entry for. A name already used by another client pricing (ignoring case) is refused.

Necessita da permissão CLIENT_PRICING.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. 'Trade' or 'Dry hire'. Must not match another client pricing's name (ignoring case)

min length: 1 · max length: 100

descriptionstring

What the list is for

max length: 1000

adjustmentPercentnumber

Percentage added to the catalogue rate of anything the list has no entry for: -15 is 15% off, 10 is 10% more. Null charges catalogue prices for those

min: -100 · max: 1000

validFromstring (date)

First date (YYYY-MM-DD) the list may be used on, for seasonal lists. Checked against the start of a project's charge period

validTostring (date)

Last date (YYYY-MM-DD) the list may be used on

Resposta

Devolve ClientPricing sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update client pricing

POST
Simulação
/api/v1/org/{organisationUUID}/client-pricing/update

Changes client pricing's name, description, percentage or dates. Fields that are omitted are left unchanged. Prices already agreed on projects don't change.

Necessita da permissão CLIENT_PRICING.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client pricing to update

min length: 1 · max length: 64

namestring

Display name, e.g. 'Trade' or 'Dry hire'. Must not match another client pricing's name (ignoring case). Omit to leave unchanged

min length: 1 · max length: 100

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

adjustmentPercentnumber | null

Percentage added to the catalogue rate of anything the list has no entry for: -15 is 15% off, 10 is 10% more. Null charges catalogue prices for those. Omit to leave unchanged

validFromstring (date) | null

First date (YYYY-MM-DD) the list may be used on, for seasonal lists. Checked against the start of a project's charge period, or null for no first date. Omit to leave unchanged

validTostring (date) | null

Last date (YYYY-MM-DD) the list may be used on, or null for no last date. Omit to leave unchanged

Resposta

Devolve ClientPricing sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

DATES_OUT_OF_ORDER 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete client pricing

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/client-pricing/delete

Deletes client pricing. Clients that used it go back to catalogue prices; prices already agreed on projects don't change.

Necessita da permissão CLIENT_PRICING.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the client pricing to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the client pricing that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Set client pricing's price for a type or category

POST
Simulação
/api/v1/org/{organisationUUID}/client-pricing/set-entry

Sets the price a list charges for one asset type (a fixed rate or a percentage) or for every type in a category (a percentage), and optionally a different price structure. Replaces the list's existing entry for that type or category.

Necessita da permissão CLIENT_PRICING.UPDATE.

Entrada

CampoTipoDescrição
clientPricingUUID
Obrigatório
string

UUID of the client pricing

min length: 1 · max length: 64

assetTypeUUIDstring

UUID of the asset type to price. Give this or `categoryUUID`

min length: 1 · max length: 64

categoryUUIDstring

UUID of the category to price, with its subcategories. An asset type's own entry wins over its category's

min length: 1 · max length: 64

rateinteger | null

A fixed rate in the smallest currency unit, replacing the catalogue's (including an asset's own rate). Asset type entries only

adjustmentPercentnumber | null

Percentage added to the catalogue rate: -20 is 20% off. Not with `rate`

priceStructureUUIDstring | null

UUID of a price structure to charge with instead of the catalogue's, e.g. a 3-day week for dry hire

Resposta

Devolve ClientPricingEntry sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ASSET_TYPE_NOT_FOUND 422

CATEGORY_NOT_FOUND 422

PRICE_STRUCTURE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/set-entry" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientPricingUUID":"string"}'

Remove client pricing entry

POST
Simulação
/api/v1/org/{organisationUUID}/client-pricing/remove-entry

Removes one entry from client pricing, so that type or category is priced by the next entry up the category tree, or the list's own percentage.

Necessita da permissão CLIENT_PRICING.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the entry to remove

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the entry that was removed

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-pricing/remove-entry" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Prices

Preview prices

GET
POST
/api/v1/org/{organisationUUID}/prices/preview

Works out what an asset type, or one asset, costs to hire for given lengths of hire, from the catalogue or through client pricing. Returns the rate, where it came from, the price structure and a price per length.

Necessita da permissão ASSET_TYPES.VIEW.

Entrada

CampoTipoDescrição
assetTypeUUIDstring

UUID of the asset type to price. Give this or `assetUUID`

min length: 1 · max length: 64

assetUUIDstring

UUID of one asset to price, using its own rate if it has one

min length: 1 · max length: 64

clientPricingUUIDstring

UUID of client pricing to price through. Omit for catalogue prices

min length: 1 · max length: 64

unitsinteger[]

Hire lengths to price, in the structure's units (days for a daily structure). Defaults to [1]

default: [1] · min items: 1 · max items: 20

Resposta

CampoTipoDescrição
rateinteger | null

The rate of one item after the client pricing, in the smallest currency unit, or null if it isn't for hire

catalogueRateinteger | null

The rate before the client pricing

rateSource"TYPE" | "ASSET" | "CLIENT_PRICING_TYPE" | "CLIENT_PRICING_CATEGORY" | "CLIENT_PRICING"

Where the rate came from: the `TYPE`, the `ASSET`'s own rate, the list's entry for the type (`CLIENT_PRICING_TYPE`) or a category (`CLIENT_PRICING_CATEGORY`), or the list's own percentage (`CLIENT_PRICING`)

priceStructureobject

The price structure that applies

priceStructure.uuidstring

UUID of the price structure

priceStructure.namestring

Name of the price structure

priceStructure.unit"HOUR" | "DAY" | "WEEK" | "MONTH" | "NONE"

What one unit is

pricesobject[]

One price per hire length asked for. Empty if not for hire

prices[].unitsinteger

The hire length asked for

prices[].factornumber

The structure's multiplier of the rate

prices[].priceinteger

The price of one item for that length

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 404

ASSET_TYPE_NOT_FOUND 404

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/prices/preview" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Custom fields

List custom fields

GET
POST
/api/v1/org/{organisationUUID}/custom-fields/list

Returns the custom fields defined for a record type (assets), in the order they appear on the form, with their type, settings and whether they are required.

Necessita da permissão CUSTOM_FIELDS.VIEW.

Entrada

CampoTipoDescrição
recordType"asset"

Which record type's fields to list

default: "asset"

Resposta

CampoTipoDescrição
fieldsCustomField[]

Live fields, in form order

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/custom-fields/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a custom field

POST
Simulação
/api/v1/org/{organisationUUID}/custom-fields/create

Adds a custom field to a record type's form, after the existing fields. A field can be used by every asset type or only chosen ones. It can be optional, required on every record, or required only for records in chosen asset categories (and their subcategories). Settings that don't apply to the field's type are ignored. At most 100 fields per record type.

Necessita da permissão CUSTOM_FIELDS.CREATE.

Entrada

CampoTipoDescrição
recordType"asset"

The kind of record the field is added to

default: "asset"

name
Obrigatório
string

Label shown on the form, e.g. 'Serial number' or 'Wattage'

min length: 1 · max length: 255

descriptionstring

Help text shown under the field

max length: 1000

type
Obrigatório
"TEXT" | "RICH_TEXT" | "NUMBER" | "BOOLEAN" | "DATE" | "SELECT" | "URL" | "FILE" | "IMAGE"

What kind of value it holds: TEXT (one line), RICH_TEXT (formatted text), NUMBER, BOOLEAN (yes/no), DATE, SELECT (one of `options`), URL, FILE (one of the record's attached files) or IMAGE (a picture, stored small - use FILE for full-size images). Can't be changed later

showOnLabelsboolean

Print the value on asset labels. Defaults to false

default: false

showOnDocumentsboolean

Print the asset type's value under its lines on quotes and invoices, such as a lantern's power. Only fields set on the type (TYPE or BOTH) have a type value to print. Defaults to false

default: false

showInListsboolean

Show the asset's value beside its asset ID in the list of assets and on its page, such as a friendly name. Only TEXT, NUMBER and SELECT values are shown. Defaults to false

default: false

setOn"TYPE" | "RECORD" | "BOTH"

Where the value is set: TYPE (on the asset type, shared by its assets), RECORD (on each asset) or BOTH (on the asset type, and optionally on an asset to override it). Defaults to BOTH

default: "BOTH"

requirement"OPTIONAL" | "REQUIRED" | "REQUIRED_FOR_CATEGORIES"

OPTIONAL (the default), REQUIRED everywhere, or REQUIRED_FOR_CATEGORIES (required for records in `requiredCategoryUUIDs` or their subcategories). A TYPE field must be filled in on the asset type, a RECORD field on the asset, and a BOTH field on the asset unless its asset type provides the value

default: "OPTIONAL"

requiredCategoryUUIDsstring[]

Asset categories the field is required for. Needed when the requirement is REQUIRED_FOR_CATEGORIES, ignored otherwise

max items: 500

appliesTo"ALL" | "TYPES"

ALL (the default): on every asset type and its assets. TYPES: only on the asset types in `assetTypeUUIDs` and their assets

default: "ALL"

assetTypeUUIDsstring[]

Asset types the field is used by, when `appliesTo` is TYPES. Ignored otherwise. May be empty, to add the field to a type later

max items: 500

maxLengthinteger

TEXT and RICH_TEXT only: the most characters a value may have. Defaults to 255 for TEXT (at most 1000) and 10000 for RICH_TEXT

min: 1 · max: 100000

decimalPlacesinteger

NUMBER only: how many decimal places a value may have. 0 (the default) allows whole numbers only

min: 0 · max: 6

minimumnumber

NUMBER only: the smallest value allowed. Omit for no minimum

maximumnumber

NUMBER only: the largest value allowed. Omit for no maximum

unitstring

NUMBER only: unit shown after the value, e.g. 'kg' or 'W'

min length: 1 · max length: 20

optionsstring[]

SELECT only: the choices, in display order. Required for SELECT fields, and each must be unique

max items: 100

Resposta

Devolve CustomField sob data.

Erros

Bem como os erros comuns:

LIMIT_REACHED 409

ASSET_TYPE_NOT_FOUND 422

CATEGORY_NOT_FOUND 422

INVALID_SETTINGS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/custom-fields/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","type":"string"}'

Update a custom field

POST
Simulação
/api/v1/org/{organisationUUID}/custom-fields/update

Changes a custom field's name, help text, requirement or settings. The type can't be changed. Fields that are omitted are left unchanged. Stored values are not re-checked until their record is next saved.

Necessita da permissão CUSTOM_FIELDS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the field to update

min length: 1 · max length: 64

namestring

New label. Omit to leave unchanged

min length: 1 · max length: 255

descriptionstring | null

New help text, or null to clear it. Omit to leave unchanged

showOnLabelsboolean

Whether to print the value on asset labels. Omit to leave unchanged

showOnDocumentsboolean

Whether to print the asset type's value under its lines on quotes and invoices. Omit to leave unchanged

showInListsboolean

Whether to show the asset's value beside its asset ID in the list of assets and on its page. Omit to leave unchanged

setOn"TYPE" | "RECORD" | "BOTH"

New setting for where the value is set: TYPE, RECORD or BOTH. Values already stored at a level the field no longer allows are kept but ignored. Omit to leave unchanged

requirement"OPTIONAL" | "REQUIRED" | "REQUIRED_FOR_CATEGORIES"

New requirement. Omit to leave unchanged

requiredCategoryUUIDsstring[]

New list of asset categories the field is required for, replacing the old one. Omit to leave unchanged

max items: 500

appliesTo"ALL" | "TYPES"

ALL: on every asset type. TYPES: only on the types in `assetTypeUUIDs`. Omit to leave unchanged

assetTypeUUIDsstring[]

New list of asset types the field is used by, replacing the old one. Omit to leave unchanged

max items: 500

maxLengthinteger

TEXT and RICH_TEXT only: new maximum characters. Omit to leave unchanged

min: 1 · max: 100000

decimalPlacesinteger

NUMBER only: new decimal places. Omit to leave unchanged

min: 0 · max: 6

minimumnumber | null

NUMBER only: new minimum, or null to remove it. Omit to leave unchanged

maximumnumber | null

NUMBER only: new maximum, or null to remove it. Omit to leave unchanged

unitstring | null

NUMBER only: new unit, or null to remove it. Omit to leave unchanged

optionsstring[]

SELECT only: new choices, replacing the old ones. Omit to leave unchanged

max items: 100

Resposta

Devolve CustomField sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ASSET_TYPE_NOT_FOUND 422

CATEGORY_NOT_FOUND 422

INVALID_SETTINGS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/custom-fields/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder a custom field

POST
Simulação
/api/v1/org/{organisationUUID}/custom-fields/reorder

Moves a custom field to a new position on the form and renumbers the others to match.

Necessita da permissão CUSTOM_FIELDS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the field to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position on the form, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve CustomField sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/custom-fields/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete a custom field

POST
Destrutivo
/api/v1/org/{organisationUUID}/custom-fields/delete

Soft-deletes a custom field. It disappears from forms and records, and stops being required.

Necessita da permissão CUSTOM_FIELDS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the field to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted field

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/custom-fields/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Comments

List comments on a record

GET
POST
/api/v1/org/{organisationUUID}/comments/list

Returns the comments on one record, oldest first. Archived comments are left out unless asked for.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
recordType
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer"

The kind of record: `asset-category` (an asset category), `asset` (an asset (one unit, or one bulk lot)), `asset-type` (an asset type (a catalogue entry)), `client` (a client), `client-contact` (a person at a client), `location` (a location), `maintenance-job` (a maintenance job (a fault or piece of work on assets)), `project` (a project (an event, show or hire)), `manufacturer` (a manufacturer of assets)

recordUuid
Obrigatório
string

UUID of the record

min length: 1 · max length: 64

includeArchivedboolean

Also return archived comments

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of comments per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "updatedAt"

Field to sort comments by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
commentsComment[]

The comments on this page

totalinteger

Total number of comments across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recordType":"string","recordUuid":"string"}'

List my comments

GET
POST
/api/v1/org/{organisationUUID}/comments/list-mine

Returns comments assigned to the caller, written by them, or mentioning them, newest first, across every record they can see.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
filter
Obrigatório
"assigned" | "created" | "mentioned"

Which of the caller's comments: `assigned` to them as a task, `created` by them, or `mentioned` them

status"open" | "resolved" | "all"

Only open comments, only resolved ones, or both

default: "open"

includeArchivedboolean

Also return archived comments

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of comments per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "updatedAt"

Field to sort comments by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
commentsComment[]

The comments on this page

totalinteger

Total number of comments across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/list-mine" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter":"string"}'

Get a comment

GET
POST
/api/v1/org/{organisationUUID}/comments/get

Returns one comment, including archived ones.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the comment

min length: 1 · max length: 64

Resposta

Devolve Comment sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List people to mention

GET
POST
/api/v1/org/{organisationUUID}/comments/people

Returns the organisation's members by name and UUID, for mentioning in or assigning a comment.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return people whose name contains this text

max length: 255

Resposta

CampoTipoDescrição
peopleCommentPerson[]

Members who can be mentioned or assigned, by name

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/people" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Comment on a record

POST
Simulação
/api/v1/org/{organisationUUID}/comments/create

Adds a comment to a record, optionally assigning it to someone as a task and attaching files that have already been uploaded. Everyone mentioned, and the assignee, is emailed a link to it. Mentioning or assigning someone who cannot see the record is refused.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
recordType
Obrigatório
"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer"

The kind of record: `asset-category` (an asset category), `asset` (an asset (one unit, or one bulk lot)), `asset-type` (an asset type (a catalogue entry)), `client` (a client), `client-contact` (a person at a client), `location` (a location), `maintenance-job` (a maintenance job (a fault or piece of work on assets)), `project` (a project (an event, show or hire)), `manufacturer` (a manufacturer of assets)

recordUuid
Obrigatório
string

UUID of the record to comment on

min length: 1 · max length: 64

body
Obrigatório
string

The comment, in Markdown. Mention someone with `[@Name](mention:<user uuid>)` to email them a link to it

min length: 1 · max length: 20000

assigneeUUIDstring

UUID of a member to assign the comment to as a task. They are emailed a link to it

min length: 1 · max length: 64

attachmentUUIDsstring[]

UUIDs of files, already uploaded to the organisation's file storage, to attach

max items: 20

Resposta

Devolve Comment sob data.

Erros

Bem como os erros comuns:

ATTACHMENT_NOT_FOUND 422

PERSON_CANNOT_VIEW 422

PERSON_NOT_FOUND 422

RECORD_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recordType":"string","recordUuid":"string","body":"string"}'

Edit a comment

POST
Simulação
/api/v1/org/{organisationUUID}/comments/update

Changes a comment's text, attachments or assignee. Only the author can change the text and attachments. People newly mentioned, and a new assignee, are emailed a link to it.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the comment to change

min length: 1 · max length: 64

bodystring

New text, in Markdown. Only the author can change it. People newly mentioned are emailed. Omit to leave unchanged

min length: 1 · max length: 20000

assigneeUUIDstring | null

UUID of the member to assign the comment to, or null to unassign. A new assignee is emailed. Omit to leave unchanged

attachmentUUIDsstring[]

The complete new list of attached file UUIDs. Only the author can change it. Omit to leave unchanged

max items: 20

Resposta

Devolve Comment sob data.

Erros

Bem como os erros comuns:

NOT_AUTHOR 403

NOT_FOUND 404

ATTACHMENT_NOT_FOUND 422

PERSON_CANNOT_VIEW 422

PERSON_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Resolve or reopen a comment

POST
Simulação
/api/v1/org/{organisationUUID}/comments/resolve

Marks a comment resolved, or reopens it. Its author and its assignee can always do this.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the comment

min length: 1 · max length: 64

resolvedboolean

True to mark it resolved, false to reopen it

default: true

Resposta

Devolve Comment sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/resolve" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Archive or restore a comment

POST
Simulação
/api/v1/org/{organisationUUID}/comments/archive

Archives a comment, hiding it from lists unless archived comments are asked for, or restores it. Its author can always do this.

Necessita da permissão COMMENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the comment

min length: 1 · max length: 64

archivedboolean

True to archive it, false to restore it

default: true

Resposta

Devolve Comment sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/comments/archive" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Icons

List uploaded icons

GET
POST
/api/v1/org/{organisationUUID}/icons/list

Returns the icons the organisation has uploaded. Any of them can be chosen for an asset category as `custom:<uuid>`, as can any Tabler icon as `tabler:<name>`.

Necessita da permissão ASSET_CATEGORIES.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
iconsIcon[]

The organisation's icons, by name

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/icons/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Upload an icon

POST
/api/v1/org/{organisationUUID}/icons/create

Uploads an SVG, PNG or WebP image as an icon the organisation can choose for its asset categories. An organisation can have at most 200 icons.

Necessita da permissão ASSET_CATEGORIES.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, e.g. 'Pyrotechnics'

min length: 1 · max length: 100

contentType
Obrigatório
"image/svg+xml" | "image/png" | "image/webp"

Image format of `content`

content
Obrigatório
string (base64)

The image, base64-encoded. At most 64 KB. A square image works best; it is drawn at small sizes

max length: 87384

Resposta

Devolve Icon sob data.

Erros

Bem como os erros comuns:

LIMIT_REACHED 409

INVALID_IMAGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/icons/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","contentType":"string","content":"string"}'

Delete an uploaded icon

POST
Destrutivo
/api/v1/org/{organisationUUID}/icons/delete

Deletes an uploaded icon. Asset categories that were using it are left without an icon.

Necessita da permissão ASSET_CATEGORIES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the icon to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
clearedCategoriesinteger

Number of asset categories that were using the icon, and now have none

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/icons/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Invitations

List pending invitations

GET
POST
/api/v1/org/{organisationUUID}/invitations/list

Returns the invitations to join the organisation that have been sent and not yet accepted or revoked, including expired ones.

Necessita da permissão ORGANISATIONS_USERS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
invitationsInvitation[]

Invitations not yet accepted or revoked, newest first

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invitations/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Invite someone by email

POST
/api/v1/org/{organisationUUID}/invitations/create

Emails a link that lets the recipient join the organisation with the given role, creating an account first if they need one. The link works once, for 14 days. An organisation can send at most 50 invitations in any 24 hours.

Necessita da permissão ORGANISATIONS_USERS.CREATE.

Entrada

CampoTipoDescrição
email
Obrigatório
string (email)

Email address to send the invitation to

max length: 254

roleUUID
Obrigatório
string

UUID of the role the invitee will be given when they join

min length: 1 · max length: 64

Resposta

Devolve Invitation sob data.

Erros

Bem como os erros comuns:

ROLE_NOT_FOUND 404

ALREADY_INVITED 409

ALREADY_MEMBER 409

EMAIL_FAILED 422

RATE_LIMITED 429

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invitations/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","roleUUID":"string"}'

Resend an invitation

POST
/api/v1/org/{organisationUUID}/invitations/resend

Sends the invitation email again with a new link, valid for another 14 days. Links in earlier emails stop working. An invitation can be sent at most 3 times.

Necessita da permissão ORGANISATIONS_USERS.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the invitation

min length: 1 · max length: 64

Resposta

Devolve Invitation sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

SEND_LIMIT_REACHED 409

EMAIL_FAILED 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invitations/resend" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Revoke an invitation

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/invitations/revoke

Cancels a pending invitation, so its link no longer works. Does not affect anyone who has already joined.

Necessita da permissão ORGANISATIONS_USERS.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the invitation

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the revoked invitation

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invitations/revoke" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Members

List members

GET
POST
/api/v1/org/{organisationUUID}/members/list

Returns the organisation's members, with their role and whether they hold a licence. Removed members are included on request.

Necessita da permissão ORGANISATIONS_USERS.VIEW.

Entrada

CampoTipoDescrição
includeRemovedboolean

Also return members who have been removed. Needs permission to view removed members

default: false

Resposta

CampoTipoDescrição
membersMember[]

The organisation's members

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Change a member's role

POST
/api/v1/org/{organisationUUID}/members/change-role

Gives a member a different role. The organisation must keep at least one administrator, and the billing contact must stay an administrator.

Necessita da permissão ORGANISATIONS_USERS.UPDATE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

roleUUID
Obrigatório
string

UUID of the role to give the member

min length: 1 · max length: 64

Resposta

Devolve Member sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ROLE_NOT_FOUND 404

BILLING_CONTACT 409

LAST_ADMINISTRATOR 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/change-role" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string","roleUUID":"string"}'

Remove a member

POST
Destrutivo
/api/v1/org/{organisationUUID}/members/remove

Removes a member from the organisation and frees their licence. Their history is kept, and they can be restored. Give `at` to remove them on a date instead, such as the end of their contract: they keep their access until then. You cannot remove yourself or the last administrator.

Necessita da permissão ORGANISATIONS_USERS.DELETE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

atstring (date-time)

Remove them at this time instead of now, such as the end of their contract. They keep their licence and access until then. Must be in the future

Resposta

Devolve Member sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CANNOT_REMOVE_SELF 409

LAST_ADMINISTRATOR 409

NOT_IN_FUTURE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string"}'

Restore a removed member

POST
/api/v1/org/{organisationUUID}/members/restore

Adds a removed member back to the organisation, with their previous role unless another is given. A licence is assigned if one is free.

Necessita da permissão ORGANISATIONS_USERS.RESTORE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

roleUUIDstring

UUID of the role to give the member. Defaults to the role they had when they were removed

max length: 64

Resposta

Devolve Member sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ROLE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/restore" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string"}'

Cancel a member's removal

POST
/api/v1/org/{organisationUUID}/members/cancel-removal

Keeps a member who was set to be removed on a date, so they stay in the organisation.

Necessita da permissão ORGANISATIONS_USERS.DELETE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

Resposta

Devolve Member sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/cancel-removal" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string"}'

Get a member

GET
POST
/api/v1/org/{organisationUUID}/members/get

Returns one member, current or removed, with their role, job title, licence and when they joined.

Necessita da permissão ORGANISATIONS_USERS.VIEW.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

Resposta

Devolve MemberProfile sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string"}'

Who am I

GET
POST
/api/v1/org/{organisationUUID}/members/me

Returns the member making the call (their name, email address, role and licence), the organisation it is in, and every permission they hold there. Any member can call it, whatever their role.

Qualquer membro a pode chamar, seja qual for a sua função.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
memberMember | null

The caller as a member of the organisation, with their name, email address, role and licence. Null for AdamRMS support acting through support access, who isn't a member

organisationobject

The organisation the call is in

organisation.uuidstring

The organisation's UUID

organisation.namestring

The organisation's name

organisation.slugstring

The organisation URL, as used in links to its pages

permissionsstring[]

Every permission the caller's role gives them in the organisation, such as `ASSETS.CREATE`. Use it to check what they can do before trying

credential"SESSION" | "API_KEY" | "OAUTH" | "AGENT_GRANT" | "CALENDAR_FEED" | "APP_INSTALLATION"

How the caller signed in: `SESSION` (the browser), `API_KEY`, `OAUTH` (an AI tool signed in through the browser), `AGENT_GRANT` (code AdamRMS AI wrote, approved by the member), `CALENDAR_FEED` or `APP_INSTALLATION` (an App's bot member)

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/me" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Edit a member

POST
Simulação
/api/v1/org/{organisationUUID}/members/update

Changes a member's job title in the organisation.

Necessita da permissão ORGANISATIONS_USERS.UPDATE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

The member's user UUID

min length: 1 · max length: 64

jobTitle
Obrigatório
string | null

What they do in the organisation, such as "Lighting technician", or null to clear it

Resposta

Devolve Member sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/members/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string","jobTitle":"string"}'

Licences

List licences

GET
POST
/api/v1/org/{organisationUUID}/licences/list

Returns every licence the organisation has, whether it comes with the plan or is extra, and which member holds it. Members without a licence can't use the organisation.

Necessita da permissão ORGANISATIONS_LICENCES.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
licencesLicence[]

Every licence the organisation has, assigned or free

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/licences/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Give a member a licence

POST
/api/v1/org/{organisationUUID}/licences/assign

Gives a free licence to a member who doesn't have one, so they can use the organisation. Licences that come with the plan are used first. Once given, a licence can't be taken back for a day.

Necessita da permissão ORGANISATIONS_LICENCES.UPDATE.

Entrada

CampoTipoDescrição
userUuid
Obrigatório
string

User UUID of the member to give a licence to. They must be a current member without one

min length: 1 · max length: 64

Resposta

Devolve Licence sob data.

Erros

Bem como os erros comuns:

MEMBER_NOT_FOUND 404

ALREADY_LICENSED 409

NO_LICENCES_LEFT 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/licences/assign" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUuid":"string"}'

Take back a licence

POST
Destrutivo
/api/v1/org/{organisationUUID}/licences/unassign

Takes a licence back from its member, so it is free to give to someone else. The member can't use the organisation until they have a licence again. A licence can't be taken back for a day after it was given.

Necessita da permissão ORGANISATIONS_LICENCES.UPDATE.

Entrada

CampoTipoDescrição
licenceUuid
Obrigatório
string

UUID of the licence to take back from its member

min length: 1 · max length: 64

Resposta

Devolve Licence sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

RECENTLY_ASSIGNED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/licences/unassign" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"licenceUuid":"string"}'

Files

List files

GET
POST
/api/v1/org/{organisationUUID}/files/list

Returns the organisation's files and links, newest first unless asked otherwise, optionally in one category or matching a name. Can list the trash instead.

Necessita da permissão ORGANISATION_FILES.VIEW.

Entrada

CampoTipoDescrição
category"INVOICES" | "DOCUMENTS" | "ASSET_THUMBNAILS" | "RECEIPTS" | "PROJECT_FILES" | "ATTACHMENTS" | "COMMENT_ATTACHMENTS" | "SCAN_MEDIA" | "CERTIFICATION_EVIDENCE" | "CREW_APPLICATIONS" | "AI_IMPORTS" | "GENERATED_DOCUMENTS" | "ISSUED_DOCUMENTS" | "DATABASE_BACKUPS"

Only files in this category. Omit for every category

searchstring

Only files whose name contains this text, ignoring case

max length: 200

trashboolean

List the files in the trash instead of the live ones. Needs permission to delete files

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of files per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "name" | "sizeBytes"

Field to sort files by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
filesOrganisationFile[]

Files and links on this page, in the order asked for

totalinteger

Total number of files across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Rename a file

POST
/api/v1/org/{organisationUUID}/files/rename

Changes the display name of a file or link. Files in some categories, such as invoices, can't be renamed.

Necessita da permissão ORGANISATION_FILES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the file or link

min length: 1 · max length: 64

name
Obrigatório
string

The new display name

min length: 1 · max length: 500

Resposta

Devolve OrganisationFile sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_ALLOWED_IN_CATEGORY 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/rename" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","name":"string"}'

Move a file to the trash

POST
Destrutivo
/api/v1/org/{organisationUUID}/files/delete

Moves a file or link to the trash. It can be restored for 30 days, then it is deleted for good. Files in some categories, such as invoices, can't be deleted.

Necessita da permissão ORGANISATION_FILES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the file or link

min length: 1 · max length: 64

Resposta

Devolve OrganisationFile sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_ALLOWED_IN_CATEGORY 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Restore a file from the trash

POST
/api/v1/org/{organisationUUID}/files/restore

Takes a file or link out of the trash. It counts towards the plan's file allowances again, so it must fit them.

Necessita da permissão ORGANISATION_FILES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the file or link

min length: 1 · max length: 64

Resposta

Devolve OrganisationFile sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/restore" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Start uploading a file

POST
/api/v1/org/{organisationUUID}/files/start-upload

Checks a file can be added to a category (its type and size, and the organisation's storage allowance) and returns a private URL to PUT its bytes to. Large files are sent in parts. The file appears once `files.finish-upload` is called. To add a file to a record, such as a location, use `attachments.start-upload` instead.

Necessita da permissão ORGANISATION_FILES.CREATE.

Entrada

CampoTipoDescrição
category
Obrigatório
"INVOICES" | "DOCUMENTS" | "ASSET_THUMBNAILS" | "RECEIPTS" | "PROJECT_FILES" | "ATTACHMENTS" | "COMMENT_ATTACHMENTS" | "SCAN_MEDIA" | "CERTIFICATION_EVIDENCE" | "CREW_APPLICATIONS" | "AI_IMPORTS" | "GENERATED_DOCUMENTS" | "ISSUED_DOCUMENTS" | "DATABASE_BACKUPS"

The category to upload to. Only some categories take uploads, such as `DOCUMENTS` and `PROJECT_FILES`

fileName
Obrigatório
string

Name of the file, with its extension, such as 'rigging-plan.pdf'

min length: 1 · max length: 500

contentType
Obrigatório
string

Content type of the file, such as `application/pdf`

min length: 1 · max length: 255

sizeBytes
Obrigatório
integer

Exact size of the file in bytes

tagsobject[]

Key:value tags to file it under, one value per key

max items: 20

tags[].key
Obrigatório
string

Tag name

min length: 1 · max length: 100

tags[].value
Obrigatório
string

Tag value

max length: 500

Resposta

CampoTipoDescrição
uploadTokenstring

Identifies this upload. Pass it to `files.finish-upload` once the bytes are sent

uploadUrlstring

Path to PUT the file's bytes to, relative to the site. Anyone holding it can upload to it until the upload is finished or expires, so keep it private. For a multipart upload, PUT each part to it with `?partNumber=N` (1-based) and keep each response's `ETag`

multipartboolean

Whether the file must be sent in parts of `partSizeBytes` (the last part may be smaller)

partSizeBytesinteger

Size of each part, for a multipart upload

expiresAtstring (date-time)

When the upload URL stops working

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_ALLOWED_IN_CATEGORY 409

FILE_TOO_LARGE 422

FILE_TYPE_NOT_ACCEPTED 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/start-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"string","fileName":"string","contentType":"string","sizeBytes":0}'

Finish uploading a file

POST
/api/v1/org/{organisationUUID}/files/finish-upload

Completes an upload begun with `files.start-upload` once its bytes have been sent, and adds the file to its category.

Necessita da permissão ORGANISATION_FILES.CREATE.

Entrada

CampoTipoDescrição
uploadToken
Obrigatório
string

The `uploadToken` from `files.start-upload`

min length: 1 · max length: 256

partsobject[]

For a multipart upload, every part that was sent. Omit for a single upload

max items: 10000

parts[].partNumber
Obrigatório
integer

Part number, 1-based

min: 1 · max: 10000

parts[].etag
Obrigatório
string

The `ETag` the part's PUT returned

min length: 1 · max length: 256

Resposta

Devolve OrganisationFile sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

UPLOAD_NOT_FOUND 404

UPLOAD_INCOMPLETE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/files/finish-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uploadToken":"string"}'

Roles

List roles

GET
POST
/api/v1/org/{organisationUUID}/roles/list

Returns the organisation's roles - the built-in Administrator, Editor and Viewer, and its own custom roles - with the permissions each gives and how many members have it.

Necessita da permissão ORGANISATIONS_PERMISSIONS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
rolesRole[]

The organisation's roles: built-in ones first, then custom ones in the organisation's order

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/roles/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Reorder custom roles

POST
Simulação
/api/v1/org/{organisationUUID}/roles/reorder

Sets the order custom roles are listed in, wherever roles are listed or chosen. Built-in roles always come first.

Necessita da permissão ORGANISATIONS_PERMISSIONS.UPDATE.

Entrada

CampoTipoDescrição
uuids
Obrigatório
string[]

UUIDs of the custom roles in the order to list them. Any left out keep their order, after these

min items: 1 · max items: 1000

Resposta

CampoTipoDescrição
rolesRole[]

The organisation's roles: built-in ones first, then custom ones in the organisation's order

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/roles/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuids":[]}'

Create a custom role

POST
Simulação
/api/v1/org/{organisationUUID}/roles/create

Creates a role with the given permissions, which members can then be given.

Necessita da permissão ORGANISATIONS_PERMISSIONS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name

min length: 1 · max length: 100

descriptionstring | null

Optional description

permissions("AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH")[]

Everything members with this role can do

default: []

positioninteger

Where the role is listed among custom roles, lowest first. New roles go last, and an update leaves it as it is, if omitted

min: 0 · max: 100000

Resposta

Devolve Role sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/roles/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a custom role

POST
/api/v1/org/{organisationUUID}/roles/update

Renames a custom role and replaces its permissions. Takes effect immediately for every member with the role. Built-in roles cannot be changed.

Necessita da permissão ORGANISATIONS_PERMISSIONS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the role

min length: 1 · max length: 64

name
Obrigatório
string

Display name

min length: 1 · max length: 100

descriptionstring | null

Optional description

permissions("AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH")[]

Everything members with this role can do

default: []

positioninteger

Where the role is listed among custom roles, lowest first. New roles go last, and an update leaves it as it is, if omitted

min: 0 · max: 100000

Resposta

Devolve Role sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

BUILT_IN_ROLE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/roles/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","name":"string"}'

Delete a custom role

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/roles/delete

Deletes a custom role. Members must be moved to another role first. Built-in roles cannot be deleted.

Necessita da permissão ORGANISATIONS_PERMISSIONS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the role

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted role

Erros

Bem como os erros comuns:

NOT_FOUND 404

ROLE_IN_USE 409

BUILT_IN_ROLE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/roles/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Webhooks

List webhooks

GET
POST
/api/v1/org/{organisationUUID}/webhooks/list

Returns the organisation's webhooks: where each sends events, which events, whether it is on, and how its latest event went.

Necessita da permissão WEBHOOKS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
webhooksWebhook[]

The organisation's webhooks

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/webhooks/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a webhook

POST
/api/v1/org/{organisationUUID}/webhooks/create

Makes a webhook: AdamRMS POSTs a signed JSON event to the address each time one of the chosen functions changes something, such as `clients.create`. Events are signed as Standard Webhooks describes (`webhook-id`, `webhook-timestamp` and `webhook-signature` headers), with the secret returned here, which is shown only once. Failed deliveries are retried for about three days. The webhook acts for the member who makes it: it is only sent events about records they can see, and every event type must be one they can see now.

Necessita da permissão WEBHOOKS.CREATE.

Entrada

CampoTipoDescrição
url
Obrigatório
string (uri)

The HTTPS address to send events to, such as https://example.com/adamrms

max length: 2000

events
Obrigatório
string[]

Event types to send: function keys such as `clients.create`, or a whole feature such as `clients.*`. Only functions that change data are events

min items: 1 · max items: 200

descriptionstring | null

What the webhook is for, such as the system it feeds

Resposta

CampoTipoDescrição
webhookWebhook

secretstring

The signing secret, starting `whsec_`. Shown only now: keep it to check each event's `webhook-signature`

Erros

Bem como os erros comuns:

EVENT_NOT_READABLE 403

LIMIT_REACHED 409

SECRETS_UNAVAILABLE 422

UNKNOWN_EVENT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/webhooks/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"string","events":[]}'

Edit a webhook

POST
Simulação
/api/v1/org/{organisationUUID}/webhooks/update

Changes a webhook's address, events or description, or turns it off or back on. Events waiting to be sent while it is off are not sent.

Necessita da permissão WEBHOOKS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

The webhook's UUID

min length: 1

urlstring (uri)

A new address to send events to

max length: 2000

eventsstring[]

The event types to send from now on, replacing the list

min items: 1 · max items: 200

descriptionstring | null

What the webhook is for, such as the system it feeds

activeboolean

false to stop sending events, true to start again

Resposta

Devolve Webhook sob data.

Erros

Bem como os erros comuns:

EVENT_NOT_READABLE 403

NOT_FOUND 404

UNKNOWN_EVENT 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/webhooks/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a webhook

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/webhooks/delete

Deletes a webhook. Nothing more is sent to it, including events still waiting to be retried.

Necessita da permissão WEBHOOKS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

The webhook's UUID

min length: 1

Resposta

CampoTipoDescrição
uuidstring

The deleted webhook's UUID

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/webhooks/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List a webhook's deliveries

GET
POST
/api/v1/org/{organisationUUID}/webhooks/deliveries

The events sent to a webhook in the last 30 days, newest first: each one's ID (`webhook-id`), type, whether it was delivered, how many attempts it took, the latest status code and error, and when it will next be tried.

Necessita da permissão WEBHOOKS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

The webhook's UUID

min length: 1

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of deliveries per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt"

Field to sort deliveries by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
deliveriesWebhookDelivery[]

Events sent to the webhook in the last 30 days, newest first

totalinteger

Total number of deliveries across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/webhooks/deliveries" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Join codes

List join codes

GET
POST
/api/v1/org/{organisationUUID}/join-codes/list

Returns the organisation's join codes, active or not, with the role and job title each one gives and how many people have joined with it.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
joinCodesJoinCode[]

The organisation's join codes

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/join-codes/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a join code

POST
/api/v1/org/{organisationUUID}/join-codes/create

Creates a code that anyone can use - typed in, or as a link or QR code - to join the organisation with the given role and job title, creating an account first if they need one. Codes are unique across AdamRMS.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.CREATE.

Entrada

CampoTipoDescrição
code
Obrigatório
string

The code people will enter, or use in a link. At least 8 characters, case-insensitive, and unique across AdamRMS

min length: 8 · max length: 64

roleUUID
Obrigatório
string

UUID of the role people who join with it are given. Cannot be the Administrator role

min length: 1 · max length: 64

jobTitlestring | null

Job title given to everyone who joins with the code, such as "Freelance technician"

notesstring | null

Notes for administrators, such as where the code was shared. Never shown to people joining

Resposta

Devolve JoinCode sob data.

Erros

Bem como os erros comuns:

ROLE_EXCEEDS_PERMISSIONS 403

ROLE_NOT_FOUND 404

CODE_TAKEN 409

ADMINISTRATOR_ROLE 422

RATE_LIMITED 429

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/join-codes/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"string","roleUUID":"string"}'

Edit a join code

POST
/api/v1/org/{organisationUUID}/join-codes/update

Turns a join code on or off, or changes the role and job title it gives and its notes. An inactive code cannot be used to join. Changing the job title doesn't change it for people who already joined.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.UPDATE.

Entrada

CampoTipoDescrição
code
Obrigatório
string

The join code. Case-insensitive

min length: 1 · max length: 64

activeboolean

Whether the code can be used to join. Left as it is if omitted

roleUUIDstring

UUID of the role people who join with it are given. Cannot be the Administrator role. Left as it is if omitted

min length: 1 · max length: 64

jobTitlestring | null

Job title given to everyone who joins with the code, such as "Freelance technician"

notesstring | null

Notes for administrators, such as where the code was shared. Never shown to people joining

Resposta

Devolve JoinCode sob data.

Erros

Bem como os erros comuns:

ROLE_EXCEEDS_PERMISSIONS 403

NOT_FOUND 404

ROLE_NOT_FOUND 404

ADMINISTRATOR_ROLE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/join-codes/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"string"}'

Delete a join code

POST
Destrutivo
/api/v1/org/{organisationUUID}/join-codes/delete

Deletes a join code. Anyone who already joined with it stays a member.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.DELETE.

Entrada

CampoTipoDescrição
code
Obrigatório
string

The join code. Case-insensitive

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
codestring

The deleted code

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/join-codes/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"string"}'

Email domains

List auto-join email domains

GET
POST
/api/v1/org/{organisationUUID}/email-domains/list

Returns the email domains whose users can join the organisation, and the role each one gives.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
emailDomainsEmailDomain[]

The organisation's email domains

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/email-domains/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Add an auto-join email domain

POST
/api/v1/org/{organisationUUID}/email-domains/create

Lets anyone with a verified email address at the domain join the organisation with the given role.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.CREATE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, e.g. `example.com`

min length: 1 · max length: 253

roleUUID
Obrigatório
string

UUID of the role people who join this way are given. Cannot be the Administrator role

min length: 1 · max length: 64

Resposta

Devolve EmailDomain sob data.

Erros

Bem como os erros comuns:

ROLE_EXCEEDS_PERMISSIONS 403

ROLE_NOT_FOUND 404

DOMAIN_EXISTS 409

ADMINISTRATOR_ROLE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/email-domains/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string","roleUUID":"string"}'

Turn an auto-join email domain on or off

POST
/api/v1/org/{organisationUUID}/email-domains/update

Activates or deactivates an email domain. While inactive, nobody can join through it.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.UPDATE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, e.g. `example.com`

min length: 1 · max length: 253

active
Obrigatório
boolean

Whether people with this domain can join

Resposta

Devolve EmailDomain sob data.

Erros

Bem como os erros comuns:

ROLE_EXCEEDS_PERMISSIONS 403

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/email-domains/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string","active":false}'

Remove an auto-join email domain

POST
Destrutivo
/api/v1/org/{organisationUUID}/email-domains/delete

Removes an email domain. Anyone who already joined through it stays a member.

Necessita da permissão ORGANISATIONS_JOIN_METHODS.DELETE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, e.g. `example.com`

min length: 1 · max length: 253

Resposta

CampoTipoDescrição
domainstring

The removed domain

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/email-domains/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string"}'

Single sign on

Get single sign-on settings

GET
POST
/api/v1/org/{organisationUUID}/single-sign-on/get

Returns the organisation's SAML single sign-on: the identity provider it trusts, whether members must use it, its email domains, and the details to enter in the identity provider.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve SingleSignOn sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/single-sign-on/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Change single sign-on settings

POST
/api/v1/org/{organisationUUID}/single-sign-on/update

Sets the identity provider, the role new members get, and whether single sign-on is on and required.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
enabled
Obrigatório
boolean

Turns single sign-on on or off. Turning it on needs the identity provider's details, a role for new members and a verified domain

required
Obrigatório
boolean

Whether members at a verified domain must sign in through the identity provider. Administrators are exempt

idpEntityId
Obrigatório
string | null

The identity provider's entity ID (its issuer)

idpSignOnUrl
Obrigatório
string (uri) | null

The identity provider's single sign-on URL, for the HTTP-Redirect binding

idpCertificates
Obrigatório
string[]

Certificates the identity provider signs with, PEM or base64. Give two while it rotates its certificate

max items: 5

newMemberRoleUUID
Obrigatório
string | null

UUID of the role people get when they first sign in through single sign-on. Can't be the Administrator role

Resposta

Devolve SingleSignOn sob data.

Erros

Bem como os erros comuns:

ROLE_NOT_FOUND 404

ADMINISTRATOR_ROLE 422

INVALID_CERTIFICATE 422

NOT_READY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/single-sign-on/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false,"required":false,"idpEntityId":"string","idpSignOnUrl":"string","idpCertificates":[],"newMemberRoleUUID":"string"}'

Add a single sign-on email domain

POST
/api/v1/org/{organisationUUID}/single-sign-on/domains/add

Adds an email domain, and returns the DNS TXT record that proves the organisation owns it.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, such as `example.com`

min length: 1 · max length: 253

Resposta

Devolve SingleSignOnDomain sob data.

Erros

Bem como os erros comuns:

DOMAIN_EXISTS 409

DOMAIN_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/single-sign-on/domains/add" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string"}'

Verify a single sign-on email domain

POST
/api/v1/org/{organisationUUID}/single-sign-on/domains/verify

Looks up the domain's DNS TXT record. Once it holds the right value, single sign-on can sign in addresses at the domain.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, such as `example.com`

min length: 1 · max length: 253

Resposta

Devolve SingleSignOnDomain sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

DOMAIN_TAKEN 409

RECORD_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/single-sign-on/domains/verify" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string"}'

Remove a single sign-on email domain

POST
Destrutivo
/api/v1/org/{organisationUUID}/single-sign-on/domains/remove

Removes an email domain. Single sign-on stops signing in addresses there. Members stay members.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
domain
Obrigatório
string

The email domain, such as `example.com`

min length: 1 · max length: 253

Resposta

CampoTipoDescrição
domainstring

The removed domain

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/single-sign-on/domains/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string"}'

Organisation url

List the organisation's URLs

GET
POST
/api/v1/org/{organisationUUID}/organisation-url/list

Returns the organisation's current URL slug and every former one. Former URLs keep redirecting to the current one.

Necessita da permissão ORGANISATIONS_SUBSCRIPTION.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
urlsOrganisationUrl[]

The current URL and every former one, newest first

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-url/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Change the organisation's URL

POST
/api/v1/org/{organisationUUID}/organisation-url/change

Changes the slug in the organisation's URL. The old URL keeps working, redirecting to the new one, and can be switched back to later.

Necessita da permissão ORGANISATIONS_SUBSCRIPTION.UPDATE.

Entrada

CampoTipoDescrição
slug
Obrigatório
string

The new URL slug. It is made URL-safe (lower case, letters, digits and dashes), and reserved words such as `support` or `admin` are removed; the result must be at least 8 characters. If another organisation already uses it, a suffix is added

min length: 1 · max length: 100

Resposta

CampoTipoDescrição
slugstring

The organisation's URL slug now

previousSlugstring | null

The slug it had before, which now redirects

Erros

Bem como os erros comuns:

INVALID_SLUG 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/organisation-url/change" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"string"}'

Apps

List Apps

GET
POST
/api/v1/org/{organisationUUID}/apps/list

Returns the organisation's Apps, each with its newest version and its installation, if installed.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return Apps whose name or key contains this text

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of Apps per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort Apps by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
appsApp[]

Apps on this page, in the order asked for

totalinteger

Total number of Apps across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an App

GET
POST
/api/v1/org/{organisationUUID}/apps/get

Returns an App with every version's manifest and handlers (not their code) and its installation.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the App

min length: 1 · max length: 64

Resposta

Devolve AppDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create an App

POST
/api/v1/org/{organisationUUID}/apps/create

Creates an empty App. Add code with apps.versions.create, then a member installs it.

Necessita da permissão APPS.CREATE.

Entrada

CampoTipoDescrição
key
Obrigatório
string

Stable identifier, e.g. `xero-sync`. Must not match another of the organisation's Apps

name
Obrigatório
string

Display name, e.g. 'Xero sync'

min length: 1 · max length: 100

descriptionstring

What the App does, shown to administrators

max length: 2000

Resposta

Devolve App sob data.

Erros

Bem como os erros comuns:

KEY_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"string","name":"string"}'

Update an App

POST
/api/v1/org/{organisationUUID}/apps/update

Changes an App's name or description. Fields that are omitted are left unchanged.

Necessita da permissão APPS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the App to update

min length: 1 · max length: 64

namestring

New display name. Omit to leave unchanged

min length: 1 · max length: 100

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

Resposta

Devolve App sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete an App

POST
Destrutivo
/api/v1/org/{organisationUUID}/apps/delete

Soft-deletes an App and its versions. An installed App must be uninstalled first.

Necessita da permissão APPS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the App to delete. It must be uninstalled first

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the App that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

INSTALLED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create an App version

POST
/api/v1/org/{organisationUUID}/apps/versions/create

Adds an immutable version of an App: a manifest and one ES module. The code is checked: it must parse, export at least one handler, have no imports, and call only `adamrms.*` functions the manifest lists, each of whose permissions the manifest also asks for. Creating a version changes nothing that is running; a member installs or upgrades to it.

Necessita da permissão APPS.CREATE.

Entrada

CampoTipoDescrição
appUUID
Obrigatório
string

UUID of the App

min length: 1 · max length: 64

version
Obrigatório
string

Label for the version, e.g. `1.2.0`. Must not match another version of the same App

min length: 1 · max length: 32

manifest
Obrigatório
AppManifest

code
Obrigatório
string

One ES module, no imports. Each exported function is a handler, called as `handler(event, ctx)`: `event` is the run's input (for an after hook, `{ id, type: "after", function, input, output, actor, occurredAt }`, where `output` has the hooked function's documented output type; for a before hook, see the manifest's `hooks`), `ctx.settings` the installation's settings, and `ctx.storage` a small key-value store (`get`, `put`, `delete`, `list`). Call organisation functions as `adamrms.<name>(input)`, e.g. `await adamrms.clients_list({})`, and the web with `fetch`. What a handler returns is recorded as the run's result, and for a before hook decides the call

min length: 1 · max length: 200000

Resposta

Devolve AppVersion sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

FROM_MARKETPLACE 409

VERSION_TAKEN 409

INVALID_CODE 422

INVALID_MANIFEST 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/versions/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"appUUID":"string","version":"string","manifest":"string","code":"string"}'

Get an App version

GET
POST
/api/v1/org/{organisationUUID}/apps/versions/get

Returns one version of an App, including its code.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the version

min length: 1 · max length: 64

Resposta

Devolve AppVersion sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/versions/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Install an App

POST
/api/v1/org/{organisationUUID}/apps/install

Installs a version of an App, approving the permissions, functions and hosts its manifest asks for. The installation gets its own bot member holding exactly those permissions, which never needs a licence. The organisation's plan limits how many Apps can be installed at once. Must be done by a person, not by AI code or another App.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
appUUID
Obrigatório
string

UUID of the App to install

min length: 1 · max length: 64

versionUUID
Obrigatório
string

UUID of the version to install

min length: 1 · max length: 64

settingsobject

Values for the settings the version's manifest declares, by name. Every required setting must be given

default: {}

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

HUMAN_REQUIRED 403

NOT_FOUND 404

VERSION_NOT_FOUND 404

ALREADY_INSTALLED 409

FUNCTION_NAME_TAKEN 409

TOO_MANY_BEFORE_HOOKS 409

INVALID_SETTINGS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/install" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"appUUID":"string","versionUUID":"string"}'

Upgrade an App

POST
/api/v1/org/{organisationUUID}/apps/upgrade

Moves an installation to another version of its App, approving that version's manifest in place of the old one. Must be done by a person, not by AI code or another App.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation

min length: 1 · max length: 64

versionUUID
Obrigatório
string

UUID of the version to move to. Its manifest replaces what was approved before

min length: 1 · max length: 64

settingsobject

New setting values. Omit to keep the current ones, which must still satisfy the new version's settings

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

VERSION_NOT_FOUND 404

FUNCTION_NAME_TAKEN 409

TOO_MANY_BEFORE_HOOKS 409

INVALID_SETTINGS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/upgrade" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string","versionUUID":"string"}'

Uninstall an App

POST
Destrutivo
/api/v1/org/{organisationUUID}/apps/uninstall

Removes an installation: its bot member leaves the organisation, and its secrets and storage are deleted. Its run log is kept.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation to remove

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the installation that was removed

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/uninstall" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string"}'

Update an App's settings

POST
/api/v1/org/{organisationUUID}/apps/update-settings

Replaces an installation's setting values. They must match the settings its version declares.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation

min length: 1 · max length: 64

settings
Obrigatório
object

Values for the settings the version's manifest declares, by name. Every required setting must be given

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

INVALID_SETTINGS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/update-settings" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string","settings":{}}'

Set an App's secret

POST
/api/v1/org/{organisationUUID}/apps/set-secret

Sets or removes one of an installation's secrets. Values are encrypted, never returned, and never reach the App's code: the platform substitutes them into requests to the App's approved hosts. Must be done by a person, not by AI code or another App.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation

min length: 1 · max length: 64

name
Obrigatório
string

Name of the secret, as the version's manifest declares it

value
Obrigatório
string | null

The secret's value, or null to remove it. Never returned

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

SECRETS_UNAVAILABLE 422

UNKNOWN_SECRET 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/set-secret" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string","name":"string","value":"string"}'

Run an App's handler

POST
/api/v1/org/{organisationUUID}/apps/run

Runs one of an installed App's handlers now, with the given input, and waits for it to finish (at most 30 seconds). The App acts as its bot member, so it can do only what its installation was approved for. Returns the run, with its result, console output and outbound requests.

Necessita da permissão APPS.RUN.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation to run

min length: 1 · max length: 64

handler
Obrigatório
string

Name of the exported function to run

min length: 1 · max length: 100

inputany

The event passed to the handler: any JSON value

Resposta

Devolve AppRun sob data.

Erros

Bem como os erros comuns:

HANDLER_NOT_FOUND 404

NOT_FOUND 404

INPUT_TOO_LARGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/run" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string","handler":"string"}'

Resume an App

POST
/api/v1/org/{organisationUUID}/apps/resume

Starts delivering hooks to an installation again after it was paused for failing too many times in a row. Events while it was paused are not delivered.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the paused installation

min length: 1 · max length: 64

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_PAUSED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/resume" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string"}'

Set when an App's before hooks run

POST
/api/v1/org/{organisationUUID}/apps/set-hook-order

Sets where an installation's before hooks run among other Apps' on the same function: lower first, then the earliest installed. Each sees the call as the one before it left it.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
installationUUID
Obrigatório
string

UUID of the installation

min length: 1 · max length: 64

hookOrder
Obrigatório
integer

Where its before hooks run among other Apps' on the same function: lower first, then the earliest installed. Defaults to 0

min: -1000 · max: 1000

Resposta

Devolve AppInstallation sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/set-hook-order" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"installationUUID":"string","hookOrder":-1000}'

List App runs

GET
POST
/api/v1/org/{organisationUUID}/apps/runs/list

Returns App runs, newest first unless another order is asked for, optionally for one installation.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
installationUUIDstring

Only return runs of this installation

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of runs per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt"

Field to sort runs by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
runsAppRunSummary[]

Runs on this page, in the order asked for

totalinteger

Total number of runs across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/runs/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an App run

GET
POST
/api/v1/org/{organisationUUID}/apps/runs/get

Returns one run with its input, result, console output and outbound requests.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the run

min length: 1 · max length: 64

Resposta

Devolve AppRun sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/runs/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Submit an App to the marketplace

POST
/api/v1/org/{organisationUUID}/apps/publish

Submits a version of one of the organisation's own Apps to the marketplace. AdamRMS reviews its code by hand before listing it; apps.get shows how the review went. Once listed, any organisation can add and install it, and sees the App's name, description, manifest and code. Each version can be submitted once. Must be done by a person, not by AI code or another App.

Necessita da permissão APPS.PUBLISH.

Entrada

CampoTipoDescrição
appUUID
Obrigatório
string

UUID of the App to publish

min length: 1 · max length: 64

versionUUID
Obrigatório
string

UUID of the version to submit. AdamRMS reviews it by hand before listing it

min length: 1 · max length: 64

Resposta

Devolve AppSubmission sob data.

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

VERSION_NOT_FOUND 404

ALREADY_SUBMITTED 409

FROM_MARKETPLACE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/publish" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"appUUID":"string","versionUUID":"string"}'

List marketplace Apps

GET
POST
/api/v1/org/{organisationUUID}/apps/marketplace/list

Returns the Apps other organisations publish that AdamRMS has reviewed and listed, each with its newest listed version and whether this organisation has added it.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return Apps whose name or key contains this text

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of listings per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt"

Field to sort listings by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
listingsAppListing[]

Listings on this page, in the order asked for

totalinteger

Total number of listings across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/marketplace/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a marketplace App

GET
POST
/api/v1/org/{organisationUUID}/apps/marketplace/get

Returns a marketplace App with every listed version's manifest: the permissions, functions, hosts and triggers installing it asks an administrator to approve.

Necessita da permissão APPS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the listing

min length: 1 · max length: 64

Resposta

Devolve AppListingDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/marketplace/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add a marketplace App

POST
/api/v1/org/{organisationUUID}/apps/marketplace/add

Copies a marketplace App and its listed versions into the organisation, so it is installed, upgraded and run like the organisation's own Apps. Calling it again for an App already added brings in versions listed since, ready to upgrade to. Adding installs nothing. Must be done by a person, not by AI code or another App.

Necessita da permissão APPS.INSTALL.

Entrada

CampoTipoDescrição
listingUUID
Obrigatório
string

UUID of the listing to add

min length: 1 · max length: 64

Resposta

Devolve App sob data.

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

KEY_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/marketplace/add" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listingUUID":"string"}'

Show Apps' panels for an asset

GET
POST
/api/v1/org/{organisationUUID}/apps/ui/asset-panel/render

Runs the panel handler of every running App with a panel in this slot, in parallel, and returns the components each returned, for the page to show. A handler has a few seconds and can only call functions that read. Panels needing a permission the caller lacks are left out.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset whose page shows the panels

min length: 1 · max length: 64

installationUUIDstring

Only the panel of this installation, as listed by `apps.ui.asset-panel.list`. Omit for every App's

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
panelsAppUiPanel[]

The panels of every running App the caller can see, by App name. Panels whose handler returned null are left out

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/asset-panel/render" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string"}'

List Apps' panels for assets

GET
POST
/api/v1/org/{organisationUUID}/apps/ui/asset-panel/list

Returns which running Apps have a panel on asset pages, and its heading, without running them. Panels needing a permission the caller lacks are left out.

Necessita da permissão ASSETS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
panelsobject[]

The panels the caller can see, by App name

panels[].installationUUIDstring

UUID of the installation the panel comes from

panels[].appNamestring

Name of the App

panels[].titlestring

Heading of the panel

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/asset-panel/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Use an App's panel on an asset

POST
/api/v1/org/{organisationUUID}/apps/ui/asset-panel/action

Runs one of a panel's actions, as a button or form in it does, then the panel's handler again. The App acts as its bot member, so the caller needs only to be able to see the panel. A button or form can instead call one of the App's own functions, which is called as the caller and needs that function's permission.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset whose page shows the panels

min length: 1 · max length: 64

installationUUID
Obrigatório
string

UUID of the installation whose panel it is

min length: 1 · max length: 64

actionstring

The handler to run, one of the panel's actions. Give this or `function`

min length: 1 · max length: 100

functionstring

The name of one of the App's own functions to call instead, as the caller, with the button's `input` or the form's values as its input. Give this or `action`

min length: 1 · max length: 50

inputany

The button's `input`, given to the handler as `event.input`

valuesobject

A form's values, by field name, given as `event.values`

Resposta

CampoTipoDescrição
messagestring | null

What the App asked to tell the member, or null

runUUIDstring | null

UUID of the action's run, or null when it called one of the App's functions

panelAppUiPanel | null

The panel shown again after the action, or null if the App now shows nothing there

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

ACTION_NOT_FOUND 404

NOT_FOUND 404

ACTION_FAILED 422

INPUT_TOO_LARGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/asset-panel/action" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string","installationUUID":"string"}'

Show Apps' panels for a client

GET
POST
/api/v1/org/{organisationUUID}/apps/ui/client-panel/render

Runs the panel handler of every running App with a panel in this slot, in parallel, and returns the components each returned, for the page to show. A handler has a few seconds and can only call functions that read. Panels needing a permission the caller lacks are left out.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client whose page shows the panels

min length: 1 · max length: 64

installationUUIDstring

Only the panel of this installation, as listed by `its installation`. Omit for every App's

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
panelsAppUiPanel[]

The panels of every running App the caller can see, by App name. Panels whose handler returned null are left out

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/client-panel/render" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string"}'

Use an App's panel on a client

POST
/api/v1/org/{organisationUUID}/apps/ui/client-panel/action

Runs one of a panel's actions, as a button or form in it does, then the panel's handler again. The App acts as its bot member, so the caller needs only to be able to see the panel. A button or form can instead call one of the App's own functions, which is called as the caller and needs that function's permission.

Necessita da permissão CLIENTS.VIEW.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client whose page shows the panels

min length: 1 · max length: 64

installationUUID
Obrigatório
string

UUID of the installation whose panel it is

min length: 1 · max length: 64

actionstring

The handler to run, one of the panel's actions. Give this or `function`

min length: 1 · max length: 100

functionstring

The name of one of the App's own functions to call instead, as the caller, with the button's `input` or the form's values as its input. Give this or `action`

min length: 1 · max length: 50

inputany

The button's `input`, given to the handler as `event.input`

valuesobject

A form's values, by field name, given as `event.values`

Resposta

CampoTipoDescrição
messagestring | null

What the App asked to tell the member, or null

runUUIDstring | null

UUID of the action's run, or null when it called one of the App's functions

panelAppUiPanel | null

The panel shown again after the action, or null if the App now shows nothing there

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

ACTION_NOT_FOUND 404

NOT_FOUND 404

ACTION_FAILED 422

INPUT_TOO_LARGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/client-panel/action" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string","installationUUID":"string"}'

Show Apps' panels on a project's Finance tab

GET
POST
/api/v1/org/{organisationUUID}/apps/ui/project-finance-panel/render

Runs the panel handler of every running App with a panel in this slot, in parallel, and returns the components each returned, for the page to show. A handler has a few seconds and can only call functions that read. Panels needing a permission the caller lacks are left out.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project whose page shows the panels

min length: 1 · max length: 64

installationUUIDstring

Only the panel of this installation, as listed by `its installation`. Omit for every App's

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
panelsAppUiPanel[]

The panels of every running App the caller can see, by App name. Panels whose handler returned null are left out

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/project-finance-panel/render" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Use an App's panel on a project's Finance tab

POST
/api/v1/org/{organisationUUID}/apps/ui/project-finance-panel/action

Runs one of a panel's actions, as a button or form in it does, then the panel's handler again. The App acts as its bot member, so the caller needs only to be able to see the panel. A button or form can instead call one of the App's own functions, which is called as the caller and needs that function's permission.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project whose page shows the panels

min length: 1 · max length: 64

installationUUID
Obrigatório
string

UUID of the installation whose panel it is

min length: 1 · max length: 64

actionstring

The handler to run, one of the panel's actions. Give this or `function`

min length: 1 · max length: 100

functionstring

The name of one of the App's own functions to call instead, as the caller, with the button's `input` or the form's values as its input. Give this or `action`

min length: 1 · max length: 50

inputany

The button's `input`, given to the handler as `event.input`

valuesobject

A form's values, by field name, given as `event.values`

Resposta

CampoTipoDescrição
messagestring | null

What the App asked to tell the member, or null

runUUIDstring | null

UUID of the action's run, or null when it called one of the App's functions

panelAppUiPanel | null

The panel shown again after the action, or null if the App now shows nothing there

Erros

Bem como os erros comuns:

HUMAN_REQUIRED 403

ACTION_NOT_FOUND 404

NOT_FOUND 404

ACTION_FAILED 422

INPUT_TOO_LARGE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/apps/ui/project-finance-panel/action" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","installationUUID":"string"}'

Legacy import

Get import status

GET
POST
/api/v1/org/{organisationUUID}/legacy-import/status

Returns which business in the previous version of AdamRMS the organisation imports from, the run in progress and the last one, and how many records are waiting to import.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
preflightboolean

Count the records waiting in the previous version. Reads its database, so it is slower

default: true

Resposta

CampoTipoDescrição
availableboolean

Whether importing is set up on this server. When false, nothing else is returned

linkobject | null

The business this organisation imports from, or null if none is connected

runningLegacyImportRun | null

The run in progress, or null

lastLegacyImportRun | null

The most recent run that has ended, or null

preflightobject[] | null

Records to import, by kind. Null when not asked for, not connected, or the previous version couldn't be reached

warningsobject[]

What the organisation's plan or licences are too small for

warnings[].code"ASSET_ALLOWANCE" | "STORAGE_ALLOWANCE" | "LICENCES"

What is short

warnings[].needednumber

How many the import needs

warnings[].availablenumber

How many the organisation has room for

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/status" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List import runs

GET
POST
/api/v1/org/{organisationUUID}/legacy-import/runs/list

Lists the organisation's imports from the previous version of AdamRMS, newest first.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of runs per page, at most 100

default: 50 · min: 1 · max: 100

sort"startedAt"

Field to sort runs by. Defaults to `startedAt`

default: "startedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
runsLegacyImportRun[]

Runs on this page, newest first unless asked otherwise

totalinteger

Total number of runs across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/runs/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an import run

GET
POST
/api/v1/org/{organisationUUID}/legacy-import/runs/get

Returns one import run, with the records it couldn't import.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the run

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
runLegacyImportRun

issuesobject[]

Records the run couldn't import, in the order it found them. At most 1,000

issues[].entitystring

The kind of record, e.g. `assets`

issues[].legacyIdinteger | null

Its ID in the previous version, or null for an issue with a whole kind of record

issues[].codestring

What went wrong, e.g. `MISSING_PARENT` or `EMAIL_NOT_VERIFIED`

issues[].messagestring

What went wrong, in words

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/runs/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Run an import

POST
/api/v1/org/{organisationUUID}/legacy-import/start

Starts importing from the connected business in the previous version of AdamRMS. Records already imported are only changed if they changed there since. Records made here are never touched. Refused while another run is in progress, or if the person who connected the business can no longer migrate it.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve LegacyImportRun sob data.

Erros

Bem como os erros comuns:

NOT_AVAILABLE 404

ALREADY_RUNNING 409

DIFFERENT_INSTANCE 409

LINK_INVALID 409

MOVED 409

NOT_CONNECTED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/start" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Cancel an import

POST
Simulação
/api/v1/org/{organisationUUID}/legacy-import/cancel

Stops the run in progress before its next step. What it has imported so far stays, and the next run carries on from there.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve LegacyImportRun sob data.

Erros

Bem como os erros comuns:

NOT_RUNNING 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/cancel" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Disconnect the previous version

POST
Destrutivo
/api/v1/org/{organisationUUID}/legacy-import/disconnect

Disconnects the business in the previous version of AdamRMS. Imported records stay, and connecting the same business again carries on where the last run stopped. Refused while a run is in progress.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
legacyInstanceIdinteger

The business that is no longer connected

Erros

Bem como os erros comuns:

ALREADY_RUNNING 409

NOT_CONNECTED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/disconnect" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Finish moving

POST
Destrutivo
/api/v1/org/{organisationUUID}/legacy-import/finish

Finishes moving from the previous version of AdamRMS. The business there is suspended, and its members are sent here when they sign in. No more imports run, and every imported member is emailed once to say the organisation has moved. Run an import first: this is refused unless the last one completed, and while one is in progress.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
movedAtstring (date-time)

When the organisation finished moving

urlstring

The organisation's address here, where the previous version now sends its members

emailedinteger

How many imported members were emailed to say it has moved

Erros

Bem como os erros comuns:

NOT_AVAILABLE 404

ALREADY_RUNNING 409

LEGACY_REFUSED 409

LINK_INVALID 409

MOVED 409

NOT_CONNECTED 409

NOT_IMPORTED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/legacy-import/finish" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Location barcodes

List a location's barcodes

GET
POST
/api/v1/org/{organisationUUID}/location-barcodes/list

Returns the value printed for a location (its UUID) and any other barcodes it answers to, such as labels from the previous version of AdamRMS.

Necessita da permissão LOCATIONS.VIEW.

Entrada

CampoTipoDescrição
locationUUID
Obrigatório
string

UUID of the location

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
ownValuestring

The value AdamRMS prints for the location (its UUID)

barcodesLocationBarcode[]

Its other barcodes, oldest first

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/location-barcodes/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locationUUID":"string"}'

Add a barcode to a location

POST
Simulação
/api/v1/org/{organisationUUID}/location-barcodes/add

Adds a barcode a location answers to when scanned, such as an existing shelf label. A barcode can belong to only one location or asset.

Necessita da permissão LOCATIONS.UPDATE.

Entrada

CampoTipoDescrição
locationUUID
Obrigatório
string

UUID of the location

min length: 1 · max length: 64

value
Obrigatório
string

The barcode as printed. Must not already be a live location barcode or asset ID

min length: 1 · max length: 128

symbology"QR_CODE" | "CODE_128" | "CODE_39" | "CODE_93" | "EAN_8" | "EAN_13"

What it is printed as. Omit if not known

notesstring

Notes, for example 'Old shelf label'

max length: 2000

Resposta

Devolve LocationBarcode sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

VALUE_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/location-barcodes/add" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locationUUID":"string","value":"string"}'

Remove a barcode from a location

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/location-barcodes/remove

Removes one of a location's extra barcodes. The location still answers to its own UUID.

Necessita da permissão LOCATIONS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the barcode record to remove

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
removedboolean

Always true

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/location-barcodes/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Barcodes

Find what a barcode belongs to

GET
POST
/api/v1/org/{organisationUUID}/barcodes/resolve

Returns the asset or location a scanned barcode belongs to (ignoring case), or that nothing has it.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
value
Obrigatório
string

A barcode as scanned or typed

min length: 1 · max length: 128

Resposta

CampoTipoDescrição
kind"ASSET" | "LOCATION" | "NONE"

What the barcode belongs to

assetScannedAsset | null

The asset, when kind is ASSET

locationobject | null

The location, when kind is LOCATION

locationPathobject[]

The locations it is inside, outermost first, for a LOCATION

locationPath[].uuidstring

UUID of the location

locationPath[].namestring

Name of the location

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/barcodes/resolve" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"string"}'

Scan sessions

Start scanning

POST
Simulação
/api/v1/org/{organisationUUID}/scan-sessions/start

Starts a scan session into a location, a case, a stock check of a location, a project, or nothing. Moving assets as they are scanned needs permission to edit assets. Scanning for a project (to prep, send out or check back its assets) needs permission to change what's on projects. Where the organisation makes filming or photos compulsory, the session has them whatever is asked.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
targetKind
Obrigatório
"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

`LOCATION`, `CASE`, `STOCK_CHECK` (a location), `NONE` or `PROJECT`

locationUUIDstring

UUID of the location, for LOCATION and STOCK_CHECK

min length: 1 · max length: 64

caseUUIDstring

UUID of the case asset, for CASE

min length: 1 · max length: 64

projectUUIDstring

UUID of the project, for PROJECT. Its sub-projects' assets are scanned with it

min length: 1 · max length: 64

projectStage"PREP" | "DISPATCH" | "RETURN"

For PROJECT: `PREP` marks each asset prepped (allocating it to a line of its type that needs one), `DISPATCH` marks it sent out, `RETURN` marks it back

targetBarcodestring

The barcode that was scanned to choose the target. When it belongs to the target, the session's target is verified

min length: 1 · max length: 128

mode"RECORD" | "MOVE"

`RECORD` (default) only records sightings. `MOVE` also moves each asset to the target, which needs permission to edit assets

default: "RECORD"

includeSubLocationsboolean

Stock checks only: also expect assets stored in locations inside the target

default: false

filmingboolean

Film scans. Omit to use the organisation's default. Ignored when the organisation makes filming compulsory

photosRequiredboolean

Require a condition photo with every scan. Omit to use the organisation's default. Ignored when the organisation makes photos compulsory

inspectionTemplateUUIDstring

UUID of an inspection template: each asset scanned is then inspected with it, such as PAT testing a batch

min length: 1 · max length: 64

Resposta

Devolve ScanSession sob data.

Erros

Bem como os erros comuns:

CASE_NOT_FOUND 422

LOCATION_NOT_FOUND 422

PROJECT_NOT_FOUND 422

TEMPLATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-sessions/start" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"targetKind":"string"}'

Get a scan session

GET
POST
/api/v1/org/{organisationUUID}/scan-sessions/get

Returns a scan session and what it scans into.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the session

min length: 1 · max length: 64

Resposta

Devolve ScanSession sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-sessions/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Verify where you are scanning

POST
Simulação
/api/v1/org/{organisationUUID}/scan-sessions/verify-target

Marks your open session's target as verified when the barcode scanned belongs to it, so later scans in it count as at a verified location. Returns whether it matched.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the session

min length: 1 · max length: 64

value
Obrigatório
string

The barcode scanned at the target

min length: 1 · max length: 128

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the session

targetScanTarget

mode"RECORD" | "MOVE"

`RECORD` only records where assets were seen. `MOVE` also sets each asset's storage location (and takes it out of any case) or puts it in the case

includeSubLocationsboolean

Stock checks only: assets stored in locations inside the target are expected too

targetVerifiedboolean

The target was proved by scanning its barcode, rather than picked from a list

filmingboolean

Scans in this session are filmed, where the device can

photosRequiredboolean

Every scan in this session needs a condition photo

inspectionTemplateobject | null

Each asset scanned is inspected with this template, such as PAT testing a batch, or null

startedByUserUuidstring | null

UUID of the member who started it

scanCountinteger

How many scans were recorded

startedAtstring (date-time)

When it started

endedAtstring (date-time) | null

When it was ended, or null while it is open

verifiedboolean

The barcode belonged to the target

Erros

Bem como os erros comuns:

NOT_FOUND 404

SESSION_ENDED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-sessions/verify-target" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","value":"string"}'

Stop scanning

POST
Simulação
/api/v1/org/{organisationUUID}/scan-sessions/end

Ends your scan session, so nothing more can be scanned into it. Ending one that has already ended does nothing.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the session

min length: 1 · max length: 64

Resposta

Devolve ScanSession sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-sessions/end" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List scan sessions

GET
POST
/api/v1/org/{organisationUUID}/scan-sessions/list

Lists scan sessions, newest first, optionally only those into one location or of one kind (such as stock checks).

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
locationUUIDstring

Only sessions into this location

min length: 1 · max length: 64

targetKind"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

Only sessions of this kind, for example STOCK_CHECK

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of sessions per page, at most 100

default: 50 · min: 1 · max: 100

sort"startedAt"

Field to sort sessions by. Defaults to `startedAt`

default: "startedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
sessionsScanSession[]

Sessions on this page

totalinteger

Total number of sessions across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-sessions/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Scans

Record a scan

POST
Simulação
/api/v1/org/{organisationUUID}/scans/record

Records a scanned barcode in your open session. An asset's barcode records a sighting, and in a MOVE session moves it to the target. In a PROJECT session it also marks the asset prepped, sent out or back on the project, and says what it did in `project`. A unit already in the session, an unknown barcode or a location's barcode records nothing and says so in `outcome`.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
sessionUUID
Obrigatório
string

UUID of the open session to record it in

min length: 1 · max length: 64

value
Obrigatório
string

The barcode as scanned or typed

min length: 1 · max length: 128

method
Obrigatório
"CAMERA" | "SCANNER" | "TYPED"

`CAMERA`, `SCANNER` (handheld or Bluetooth) or `TYPED`

quantityinteger

For a lot: how many of it were seen. Omit for the whole lot. Ignored for a unit

min: 1 · max: 1000000

latitudenumber

Device latitude, if it gave one

min: -90 · max: 90

longitudenumber

Device longitude, if it gave one

min: -180 · max: 180

accuracyMetresnumber

How accurate the position is, in metres

min: 0 · max: 1000000

scannedAtstring (date-time)

When it was scanned, if it was queued on the device. Omit for now. Can't be in the future or more than a day ago

Resposta

CampoTipoDescrição
outcome"RECORDED" | "ALREADY_SCANNED" | "UNKNOWN" | "LOCATION"

`RECORDED`; `ALREADY_SCANNED` (that unit is already in this session, so nothing was recorded); `UNKNOWN` (no asset or location has that barcode); or `LOCATION` (it is a location's barcode, so nothing was recorded: the scanner may switch target or verify it)

scanScan | null

The scan, when RECORDED

assetScannedAsset | null

The asset, when RECORDED or ALREADY_SCANNED

locationobject | null

The location, when LOCATION

moveFailed"CASE_IS_SELF_OR_INSIDE" | "TOO_DEEP" | null

In a MOVE session, why the asset couldn't be put in the case. The sighting is still recorded

projectobject | null

In a PROJECT session and when RECORDED, what the scan did on the project

Erros

Bem como os erros comuns:

SESSION_NOT_FOUND 404

SESSION_ENDED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scans/record" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sessionUUID":"string","value":"string","method":"string"}'

Rate a scan's condition or quantity

POST
Simulação
/api/v1/org/{organisationUUID}/scans/update

Sets how many of a lot a scan saw, and the asset's condition with a note. You can change your own scans; changing anyone's needs permission to edit assets.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the scan

min length: 1 · max length: 64

quantityinteger

For a lot: how many of it were seen, at most the lot's size. Omit to leave unchanged

min: 1 · max: 1000000

condition"GOOD" | "WORN" | "DAMAGED"

`GOOD`, `WORN` or `DAMAGED`. Omit to leave unchanged

conditionNotestring | null

A note on its condition, or null to clear it. Omit to leave unchanged

Resposta

Devolve Scan sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scans/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List scans

GET
POST
/api/v1/org/{organisationUUID}/scans/list

Lists scans, newest first, with their condition photos and footage. Filter by asset, location, session or condition.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
assetUUIDstring

Only scans of this asset

min length: 1 · max length: 64

locationUUIDstring

Only scans at this location

min length: 1 · max length: 64

sessionUUIDstring

Only scans in this session

min length: 1 · max length: 64

condition"GOOD" | "WORN" | "DAMAGED"

Only scans rated this condition

withPhotosboolean

Only scans with a condition photo

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of scans per page, at most 100

default: 50 · min: 1 · max: 100

sort"scannedAt"

Field to sort scans by. Defaults to `scannedAt`

default: "scannedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
scansScan[]

Scans on this page

totalinteger

Total number of scans across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scans/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Where an asset was last seen

GET
POST
/api/v1/org/{organisationUUID}/scans/latest

Returns an asset's latest scan made with a camera or scanner. Typed barcodes don't count.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
scanScan | null

The latest scan made with a camera or scanner (not typed), or null if it has never been scanned

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scans/latest" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string"}'

Scan media

Start uploading a scan's photo or footage

POST
/api/v1/org/{organisationUUID}/scan-media/start-upload

Checks a condition photo or footage can be added to one of your scans, and returns a private URL to PUT its bytes to. Footage is only for scans in a filmed session, one clip each. The file is added once `scan-media.finish-upload` is called.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
scanUUID
Obrigatório
string

UUID of the scan

min length: 1 · max length: 64

kind
Obrigatório
"PHOTO" | "VIDEO"

`PHOTO` (a condition photo) or `VIDEO` (footage of the scan)

contentType
Obrigatório
"image/jpeg" | "image/webp" | "image/png" | "video/mp4" | "video/webm"

The file's type: JPEG, WebP or PNG for photos, MP4 or WebM for footage

sizeBytes
Obrigatório
integer

Size in bytes. Photos can be at most 15 MB, footage 50 MB

min: 1

Resposta

CampoTipoDescrição
uploadTokenstring

Pass to `scan-media.finish-upload` once the bytes are sent

uploadUrlstring

Where to PUT the bytes, with the declared Content-Type

expiresAtstring (date-time)

When the upload expires

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

ALREADY_FILMED 409

FILE_TOO_LARGE 422

NOT_FILMED 422

TOO_MANY_PHOTOS 422

WRONG_TYPE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-media/start-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scanUUID":"string","kind":"string","contentType":"string","sizeBytes":1}'

Finish uploading a scan's photo or footage

POST
/api/v1/org/{organisationUUID}/scan-media/finish-upload

Completes an upload begun with `scan-media.start-upload` and adds the photo or footage to the scan. Footage is kept for as long as the organisation's settings say; photos are kept until removed.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uploadToken
Obrigatório
string

The token `scan-media.start-upload` returned

min length: 1 · max length: 256

Resposta

Devolve Scan sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

UPLOAD_NOT_FOUND 404

ALREADY_FILMED 409

NOT_FILMED 422

TOO_MANY_PHOTOS 422

UPLOAD_INCOMPLETE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-media/finish-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uploadToken":"string"}'

Scan photos

Remove a condition photo

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/scan-photos/remove

Takes a condition photo off its scan. The image goes to the trash, where it waits 30 days.

Necessita da permissão ASSETS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the photo to remove

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
removedboolean

Always true

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-photos/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Stock checks

Get a stock check's result

GET
POST
/api/v1/org/{organisationUUID}/stock-checks/result

Compares what a stock check session scanned with what is stored at its location: what was found, what is missing and what was there but shouldn't be. Assets inside a scanned case count as found.

Necessita da permissão ASSETS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the session

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
sessionScanSession

foundobject[]

Expected assets that were scanned, in full or in part

found[].assetScannedAsset

found[].expectedQuantityinteger

How many should be there (the lot's size, or 1)

found[].foundQuantityinteger

How many were scanned (counting assets in scanned cases)

missingobject[]

Expected assets that weren't scanned

missing[].assetScannedAsset

missing[].expectedQuantityinteger

How many should be there (the lot's size, or 1)

missing[].foundQuantityinteger

How many were scanned (counting assets in scanned cases)

extraobject[]

Assets scanned that aren't stored here

extra[].assetScannedAsset

extra[].expectedQuantityinteger

How many should be there (the lot's size, or 1)

extra[].foundQuantityinteger

How many were scanned (counting assets in scanned cases)

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/stock-checks/result" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Scan presets

List scanner presets

GET
POST
/api/v1/org/{organisationUUID}/scan-presets/list

Returns the organisation's saved ways to start the scanner.

Necessita da permissão ASSETS.SCAN.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
presetsScanPreset[]

Every preset, by name

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-presets/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a scanner preset

POST
Simulação
/api/v1/org/{organisationUUID}/scan-presets/create

Saves a way to start the scanner, such as 'Returns into the warehouse, with photos', for everyone in the organisation.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Returns'

min length: 1 · max length: 100

targetKind
Obrigatório
"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

What it scans into. Not `PROJECT`

locationUUIDstring | null

UUID of the location, for LOCATION and STOCK_CHECK

caseUUIDstring | null

UUID of the case asset, for CASE

mode
Obrigatório
"RECORD" | "MOVE"

`RECORD` or `MOVE`

includeSubLocations
Obrigatório
boolean

Stock checks only: include locations inside the target

filming
Obrigatório
boolean

Film scans

photosRequired
Obrigatório
boolean

Require a condition photo

inspectionTemplateUUIDstring | null

UUID of an inspection template to inspect each asset with, or null for none

Resposta

Devolve ScanPreset sob data.

Erros

Bem como os erros comuns:

CASE_NOT_FOUND 422

LOCATION_NOT_FOUND 422

TEMPLATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-presets/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","targetKind":"string","mode":"string","includeSubLocations":false,"filming":false,"photosRequired":false}'

Update a scanner preset

POST
Simulação
/api/v1/org/{organisationUUID}/scan-presets/update

Replaces a scanner preset's name and settings.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the preset

min length: 1 · max length: 64

name
Obrigatório
string

Display name, for example 'Returns'

min length: 1 · max length: 100

targetKind
Obrigatório
"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

What it scans into. Not `PROJECT`

locationUUIDstring | null

UUID of the location, for LOCATION and STOCK_CHECK

caseUUIDstring | null

UUID of the case asset, for CASE

mode
Obrigatório
"RECORD" | "MOVE"

`RECORD` or `MOVE`

includeSubLocations
Obrigatório
boolean

Stock checks only: include locations inside the target

filming
Obrigatório
boolean

Film scans

photosRequired
Obrigatório
boolean

Require a condition photo

inspectionTemplateUUIDstring | null

UUID of an inspection template to inspect each asset with, or null for none

Resposta

Devolve ScanPreset sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CASE_NOT_FOUND 422

LOCATION_NOT_FOUND 422

TEMPLATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-presets/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","name":"string","targetKind":"string","mode":"string","includeSubLocations":false,"filming":false,"photosRequired":false}'

Delete a scanner preset

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/scan-presets/delete

Deletes a scanner preset. Scans made with it are kept.

Necessita da permissão ASSETS.SCAN.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the preset to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
deletedboolean

Always true

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-presets/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Scan settings

Get scanner settings

GET
POST
/api/v1/org/{organisationUUID}/scan-settings/get

Returns whether scans are filmed and photographed, and how long footage is kept.

Necessita da permissão ASSETS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve ScanSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update scanner settings

POST
Simulação
/api/v1/org/{organisationUUID}/scan-settings/update

Changes whether scans are filmed and photographed (off, on by default, or compulsory) and how long footage is kept. A new retention period applies to footage recorded from then on.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
filming"OFF" | "DEFAULT_ON" | "REQUIRED"

`OFF`, `DEFAULT_ON` or `REQUIRED`. Omit to leave unchanged

photos"OFF" | "DEFAULT_ON" | "REQUIRED"

`OFF`, `DEFAULT_ON` or `REQUIRED`. Omit to leave unchanged

footageRetentionDays30 | 90 | 365 | 730 | 1825 | 3650 | 0

Days to keep footage: 30, 90, 365, 730, 1825 or 3650, or 0 for forever. Applies to footage recorded from now on. Omit to leave unchanged

Resposta

Devolve ScanSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/scan-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Maintenance statuses

List maintenance job statuses

GET
POST
/api/v1/org/{organisationUUID}/maintenance-statuses/list

Returns the organisation's maintenance job statuses, such as 'Received' and 'Closed', in the order they're arranged.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of statuses per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name"

Field to sort statuses by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
statusesMaintenanceStatus[]

Statuses on this page, in the order asked for

totalinteger

Total number of statuses across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-statuses/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a maintenance job status

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-statuses/create

Adds a status. An open status goes after the other open ones, a closed one at the end. Names are unique, ignoring case.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Waiting for parts'

min length: 1 · max length: 100

isOpenboolean

Whether jobs in this status are still open. Defaults to true. Use false for statuses such as 'Closed'

default: true

Resposta

Devolve MaintenanceStatus sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-statuses/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a maintenance job status

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-statuses/update

Renames a status, or makes it open or closed. Jobs already in it open or close with it. The last open status can't be closed.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

isOpenboolean

Whether jobs in this status are open. Omit to leave unchanged. The last open status can't be closed

Resposta

Devolve MaintenanceStatus sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

LAST_OPEN 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-statuses/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder a maintenance job status

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-statuses/reorder

Moves a status to a new position and renumbers the rest.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or priority to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve MaintenanceStatus sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-statuses/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete a maintenance job status

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/maintenance-statuses/delete

Deletes a status. If any job uses it, `replacementUUID` is required and those jobs move to it. The last open status can't be deleted.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or priority to delete

min length: 1 · max length: 64

replacementUUIDstring

Jobs that use the one being deleted move to this one. Needed when any job uses it

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
movedJobsinteger

How many jobs moved to the replacement

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

LAST_OPEN 422

REPLACEMENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-statuses/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Maintenance priorities

List maintenance job priorities

GET
POST
/api/v1/org/{organisationUUID}/maintenance-priorities/list

Returns the organisation's maintenance job priorities, most urgent first unless another sort is asked for.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of priorities per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name"

Field to sort priorities by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
prioritiesMaintenancePriority[]

Priorities on this page, in the order asked for

totalinteger

Total number of priorities across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-priorities/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a maintenance job priority

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-priorities/create

Adds a priority at the end of the list (the least urgent). Names are unique, ignoring case.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Urgent'

min length: 1 · max length: 100

colour"red" | "yellow" | "green" | "blue" | "gray"

Colour of its badge. Defaults to gray

default: "gray"

isDefaultboolean

Make it the priority new jobs get

default: false

Resposta

Devolve MaintenancePriority sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-priorities/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a maintenance job priority

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-priorities/update

Renames a priority, changes its colour, or makes it the default for new jobs.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the priority to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

colour"red" | "yellow" | "green" | "blue" | "gray"

New badge colour. Omit to leave unchanged

isDefaulttrue

true makes it the priority new jobs get. To change the default, set it on another priority

Resposta

Devolve MaintenancePriority sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-priorities/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder a maintenance job priority

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-priorities/reorder

Moves a priority to a new position (0 is the most urgent) and renumbers the rest.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or priority to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve MaintenancePriority sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-priorities/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete a maintenance job priority

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/maintenance-priorities/delete

Deletes a priority. If any job uses it, `replacementUUID` is required and those jobs move to it. The last priority can't be deleted.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or priority to delete

min length: 1 · max length: 64

replacementUUIDstring

Jobs that use the one being deleted move to this one. Needed when any job uses it

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
movedJobsinteger

How many jobs moved to the replacement

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

LAST_ONE 422

REPLACEMENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-priorities/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Maintenance jobs

List maintenance jobs

GET
POST
/api/v1/org/{organisationUUID}/maintenance-jobs/list

Returns maintenance jobs with their assets, open ones only unless `state` says otherwise. Filter by status, priority, assignee or asset, and search by title or number.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only jobs whose title contains this text, or whose number is this

max length: 255

state"OPEN" | "CLOSED" | "ALL"

`OPEN` (the default) for jobs in an open status, `CLOSED` for the rest, or `ALL`

default: "OPEN"

statusUUIDstring

Only jobs in this status

min length: 1 · max length: 64

priorityUUIDstring

Only jobs with this priority

min length: 1 · max length: 64

assigneeUUIDstring

Only jobs assigned to this member

min length: 1 · max length: 64

assetUUIDstring

Only jobs that cover this asset

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of jobs per page, at most 100

default: 50 · min: 1 · max: 100

sort"number" | "title" | "priority" | "dueAt" | "createdAt" | "updatedAt"

Field to sort jobs by. Defaults to `number`

default: "number"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
jobsMaintenanceJob[]

Jobs on this page, in the order asked for

totalinteger

Total number of jobs across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a maintenance job

GET
POST
/api/v1/org/{organisationUUID}/maintenance-jobs/get

Returns one maintenance job, by UUID or by number.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
uuidstring

UUID of the job. Give this or `number`

min length: 1 · max length: 64

numberinteger

The job's number. Give this or `uuid`

min: 1

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a maintenance job

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/create

Records a fault or piece of work on one or more assets. It gets the next job number, the first open status and the default priority unless others are given. Flagging or blocking its assets needs its own permission. The assignee and watchers must be members.

Necessita da permissão MAINTENANCE_JOBS.CREATE.

Entrada

CampoTipoDescrição
title
Obrigatório
string

Short summary, for example 'Fan noisy'

min length: 1 · max length: 255

descriptionstring

What's wrong, in more detail

max length: 10000

assetsobject[]

The assets the job covers, at most 100

default: [] · max items: 100

assets[].assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

assets[].quantityinteger

How many of it the job covers. 1 (the default) for a unit; for a bulk lot, at most the lot's quantity

default: 1 · min: 1 · max: 1000000

statusUUIDstring

UUID of its status. Omit for the first open status

min length: 1 · max length: 64

priorityUUIDstring

UUID of its priority. Omit for the default priority

min length: 1 · max length: 64

assigneeUUIDstring

UUID of the member to assign it to

min length: 1 · max length: 64

dueAtstring (date-time)

When it should be done by

flagAssetsboolean

Show a warning on its assets while it's open

default: false

blockAssetsboolean

Stop its assets being booked onto projects while it's open

default: false

watcherUUIDsstring[]

UUIDs of members to watch the job. They are emailed about it

default: [] · max items: 50

numberinteger

The job number to use, for a job brought across from another system. Ignored if another job has it. Omit for the next number

min: 1 · max: 1000000000

createdByUUIDstring

Only for the import from the previous version of AdamRMS: who created the job there. Ignored otherwise, when the job is created by you

min length: 1 · max length: 64

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

ASSET_NOT_FOUND 422

PERSON_NOT_FOUND 422

PRIORITY_NOT_FOUND 422

QUANTITY_TOO_HIGH 422

STATUS_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"string"}'

Update a maintenance job

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/update

Changes a job's details, status, priority, assignee, due date, cost, supplier or outcome. Moving it to a closed status closes it, and its flags and blocks stop applying. Changing whether it flags or blocks needs its own permission. Fields that are omitted are left unchanged.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job to change

min length: 1 · max length: 64

titlestring

New title. Omit to leave unchanged

min length: 1 · max length: 255

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

statusUUIDstring

UUID of its new status. Moving to a closed status closes the job. Omit to leave unchanged

min length: 1 · max length: 64

priorityUUIDstring

UUID of its new priority. Omit to leave unchanged

min length: 1 · max length: 64

assigneeUUIDstring | null

UUID of the member to assign it to, or null to unassign. Omit to leave unchanged

dueAtstring (date-time) | null

New due date, or null to clear it. Omit to leave unchanged

flagAssetsboolean

Show a warning on its assets while it's open. Omit to leave unchanged

blockAssetsboolean

Stop its assets being booked while it's open. Omit to leave unchanged

costinteger | null

What the work cost, in the smallest unit of the organisation's currency, or null to clear it. Omit to leave unchanged

supplierstring | null

Who did the work, or null to clear it. Omit to leave unchanged

outcome"REPAIRED" | "NO_FAULT_FOUND" | "BEYOND_REPAIR" | null

How it ended: `REPAIRED`, `NO_FAULT_FOUND` or `BEYOND_REPAIR`, or null to clear it. Omit to leave unchanged

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

COST_ITEMISED 422

PERSON_NOT_FOUND 422

PRIORITY_NOT_FOUND 422

STATUS_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Add an asset to a maintenance job

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/set-asset

Adds an asset to a job, or changes how many of it the job covers. `released` lifts the job's flag and block from the asset while the job stays open.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

assetUUID
Obrigatório
string

UUID of the asset to add, or to change

min length: 1 · max length: 64

quantityinteger

How many of it the job covers. 1 (the default) for a unit; for a bulk lot, at most the lot's quantity

default: 1 · min: 1 · max: 1000000

releasedboolean

true lifts the job's flag and block from this asset while the job stays open, such as once it's fixed

default: false

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ASSET_NOT_FOUND 422

QUANTITY_TOO_HIGH 422

TOO_MANY_ASSETS 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/set-asset" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","assetUUID":"string"}'

Remove an asset from a maintenance job

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/remove-asset

Takes an asset off a job. The asset itself isn't changed.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

assetUUID
Obrigatório
string

UUID of the asset to take off the job

min length: 1 · max length: 64

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

ASSET_NOT_ON_JOB 404

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/remove-asset" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","assetUUID":"string"}'

Watch or stop watching a maintenance job

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/watch

Starts or stops a member watching a job. Watchers are emailed when it's commented on or its status changes. Anyone who can see the job can watch it themselves; changing someone else needs permission to edit the job.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

userUUIDstring

UUID of the member. Omit for yourself

min length: 1 · max length: 64

watching
Obrigatório
boolean

true to start watching the job, false to stop

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

PERSON_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/watch" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","watching":false}'

Delete a maintenance job

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/delete

Deletes a job. Its flags and blocks stop applying. Its number isn't reused.

Necessita da permissão MAINTENANCE_JOBS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted job

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Itemise a maintenance job's cost

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/set-costs

Sets what a job cost, item by item: parts, labour (in hours) and anything else. Replaces the list, and the job's cost becomes their total.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

costs
Obrigatório
object[]

Every item, in order, at most 50. Replaces the list. An empty list keeps the job's cost as it is

max items: 50

costs[].kind
Obrigatório
"PART" | "LABOUR" | "OTHER"

`PART`, `LABOUR` (quantity is hours) or `OTHER`

costs[].description
Obrigatório
string

What it was, such as 'Replacement fan' or 'Bench time'

min length: 1 · max length: 200

costs[].quantityinteger

How many, or hours of labour

default: 1 · min: 1 · max: 10000

costs[].unitCost
Obrigatório
integer

Each, in the smallest unit of the organisation's currency (pence for GBP)

min: 0 · max: 1000000000

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/set-costs" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","costs":[]}'

Charge a maintenance job to a project

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/charge-to-project

Adds a one-off line to a project charging the client for the job, such as a repair after a hire, and links the two. It charges what the job cost unless an amount is given. A job is charged to one project at a time. Needs permission to change the project's lines and see their prices.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

projectUUID
Obrigatório
string

UUID of the project to charge, such as the hire the asset was damaged on

min length: 1 · max length: 64

amountinteger

What to charge the client, in the smallest currency unit. Omit to charge what the job cost

min: 0 · max: 1000000000

descriptionstring

How the charge reads on the quote and invoice. Omit for 'Repair: ' and the job's title

min length: 1 · max length: 200

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_CHARGED 409

ASSETS_OFF 422

NO_AMOUNT 422

PROJECT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/charge-to-project" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","projectUUID":"string"}'

Stop charging a maintenance job to a project

POST
Simulação
/api/v1/org/{organisationUUID}/maintenance-jobs/remove-charge

Takes the job's line off the project it's charged to. A line an issued invoice charges for stays: credit the invoice first.

Necessita da permissão MAINTENANCE_JOBS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

Resposta

Devolve MaintenanceJob sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

LINE_INVOICED 409

NOT_CHARGED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/remove-charge" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List projects to charge a maintenance job to

GET
POST
/api/v1/org/{organisationUUID}/maintenance-jobs/chargeable-projects

Returns the projects the job's assets have been on, most recent first, as the likely ones to charge for the work.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the job

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
projectsobject[]

Projects the job's assets have been on, most recent first, at most 20

projects[].uuidstring

UUID of the project

projects[].numberinteger

The project's number

projects[].namestring

The project's name

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance-jobs/chargeable-projects" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Maintenance

Get an asset's maintenance state

GET
POST
/api/v1/org/{organisationUUID}/maintenance/asset-state

Returns the open maintenance jobs on an asset, how many of it they block from being booked, and whether any shows a warning on it.

Necessita da permissão MAINTENANCE_JOBS.VIEW.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
blockedinteger

How many of the asset can't be booked because of open jobs or overdue inspections: 0, or up to its quantity

flaggedboolean

An open job or an overdue inspection shows a warning on the asset

jobsobject[]

Open jobs that cover the asset, most urgent first

jobs[].uuidstring

UUID of the job

jobs[].numberinteger

The job's number

jobs[].titlestring

The job's title

jobs[].statusstring

Name of the job's status

jobs[].priorityobject

The job's priority

jobs[].priority.namestring

Display name, for example 'Urgent'

jobs[].priority.colour"red" | "yellow" | "green" | "blue" | "gray"

Colour of the priority's badge

jobs[].quantityinteger

How many of the asset the job covers

jobs[].flagsboolean

The job flags the asset (and it isn't released)

jobs[].blocksboolean

The job blocks the asset (and it isn't released)

inspectionsobject[]

Inspections the asset is overdue, or failed and is due again

inspections[].uuidstring

UUID of the inspection template

inspections[].namestring

Name of the inspection, such as 'PAT'

inspections[].dueAtstring (date-time)

When it was due

inspections[].blocksboolean

Being overdue blocks the asset, rather than flagging it

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/maintenance/asset-state" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string"}'

Project statuses

List project statuses

GET
POST
/api/v1/org/{organisationUUID}/project-statuses/list

Returns the organisation's project statuses, such as 'Quote sent' and 'Returned', in the order they're arranged. Each has a stage, which decides what it does to stock.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of statuses per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name"

Field to sort statuses by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
statusesProjectStatus[]

Statuses on this page, in the order asked for

totalinteger

Total number of statuses across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-statuses/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a project status

POST
Simulação
/api/v1/org/{organisationUUID}/project-statuses/create

Adds a status at the end of the list. Names are unique, ignoring case. The first status made is the default.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Quote sent'

min length: 1 · max length: 100

descriptionstring

What the status means, for the people picking it

max length: 500

stage
Obrigatório
"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

What the status does: `ENQUIRY`, `PROVISIONAL`, `CONFIRMED`, `FINISHED` or `LOST`

isDefaultboolean

Make it the status new projects get

default: false

Resposta

Devolve ProjectStatus sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-statuses/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","stage":"string"}'

Update a project status

POST
Simulação
/api/v1/org/{organisationUUID}/project-statuses/update

Renames a status, changes its stage, or makes it the default for new projects. Projects already in it move stage with it.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

New stage. Projects already in the status move with it. Omit to leave unchanged

isDefaulttrue

true makes it the status new projects get. To change the default, set it on another status

Resposta

Devolve ProjectStatus sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-statuses/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder a project status

POST
Simulação
/api/v1/org/{organisationUUID}/project-statuses/reorder

Moves a status to a new position and renumbers the rest.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status to move

min length: 1 · max length: 64

sortOrder
Obrigatório
integer

New position, 0-based. Positions past the end move it to the end

min: 0

Resposta

Devolve ProjectStatus sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-statuses/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","sortOrder":0}'

Delete a project status

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-statuses/delete

Deletes a status. If any project uses it, including projects in trash, `replacementUUID` is required and those projects move to it. The last status can't be deleted.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or type to delete

min length: 1 · max length: 64

replacementUUIDstring

Projects that use the one being deleted move to this one. Needed when any project uses it

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
movedProjectsinteger

How many projects moved to the replacement

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

LAST_ONE 422

REPLACEMENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-statuses/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Project types

List project types

GET
POST
/api/v1/org/{organisationUUID}/project-types/list

Returns the organisation's project types, such as 'Dry hire', with the sections each one turns on.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of types per page, at most 100

default: 50 · min: 1 · max: 100

sort"name"

Field to sort types by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
typesProjectType[]

Types on this page, in the order asked for

totalinteger

Total number of types across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-types/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a project type

POST
Simulação
/api/v1/org/{organisationUUID}/project-types/create

Adds a type. Sections left out are on. Names are unique, ignoring case. The first type made is the default.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'Dry hire'

min length: 1 · max length: 100

sectionsobject

Which sections projects of the type show. Sections left out are on

default: {}

sections.assetsboolean

Projects of this type can book assets. Omit to leave unchanged, or on for a new type

sections.crewboolean

Projects of this type have crew. Omit to leave unchanged, or on for a new type

sections.financeboolean

Projects of this type show prices, invoices and payments. Omit to leave unchanged, or on for a new type

sections.filesboolean

Projects of this type have files. Omit to leave unchanged, or on for a new type

sections.notesboolean

Projects of this type have notes. Omit to leave unchanged, or on for a new type

sections.clientboolean

Projects of this type have a client. Omit to leave unchanged, or on for a new type

sections.venueboolean

Projects of this type have a venue. Omit to leave unchanged, or on for a new type

isDefaultboolean

Make it the type new projects get

default: false

Resposta

Devolve ProjectType sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NAME_TAKEN 409

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-types/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a project type

POST
Simulação
/api/v1/org/{organisationUUID}/project-types/update

Renames a type, turns its sections on or off, or makes it the default for new projects. Turning a section off hides it on the type's projects, but keeps what's in it.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the type to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

sectionsobject

Sections to turn on or off. Sections left out stay as they are. Omit to leave all unchanged

sections.assetsboolean

Projects of this type can book assets. Omit to leave unchanged, or on for a new type

sections.crewboolean

Projects of this type have crew. Omit to leave unchanged, or on for a new type

sections.financeboolean

Projects of this type show prices, invoices and payments. Omit to leave unchanged, or on for a new type

sections.filesboolean

Projects of this type have files. Omit to leave unchanged, or on for a new type

sections.notesboolean

Projects of this type have notes. Omit to leave unchanged, or on for a new type

sections.clientboolean

Projects of this type have a client. Omit to leave unchanged, or on for a new type

sections.venueboolean

Projects of this type have a venue. Omit to leave unchanged, or on for a new type

isDefaulttrue

true makes it the type new projects get. To change the default, set it on another type

Resposta

Devolve ProjectType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-types/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a project type

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-types/delete

Deletes a type. If any project uses it, including projects in trash, `replacementUUID` is required and those projects move to it. The last type can't be deleted.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the status or type to delete

min length: 1 · max length: 64

replacementUUIDstring

Projects that use the one being deleted move to this one. Needed when any project uses it

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
movedProjectsinteger

How many projects moved to the replacement

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

LAST_ONE 422

REPLACEMENT_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-types/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Projects

List projects

GET
POST
/api/v1/org/{organisationUUID}/projects/list

Returns projects, active ones only unless `view` says otherwise. Filter by status, type, client, manager, folder, parent project or dates, and search by name or number. `deleted` lists the projects in trash instead.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only projects whose name contains this text, or whose number is this

max length: 255

view"ACTIVE" | "FINISHED" | "LOST" | "ALL"

`ACTIVE` (the default) for projects at the enquiry, provisional or confirmed stage, `FINISHED`, `LOST`, or `ALL`

default: "ACTIVE"

statusUUIDstring

Only projects in this status

min length: 1 · max length: 64

typeUUIDstring

Only projects of this type

min length: 1 · max length: 64

clientUUIDstring

Only projects for this client

min length: 1 · max length: 64

managerUUIDstring

Only projects managed by this member

min length: 1 · max length: 64

parentUUIDstring

Only the sub-projects of this project

min length: 1 · max length: 64

folderUUIDstring | null

Only the projects in this folder itself, not in folders inside it. null for the top-level projects in no folder

topLevelboolean

Only top-level projects, leaving sub-projects out

default: false

fromstring (date-time)

Only projects whose out or event period ends on or after this

tostring (date-time)

Only projects whose out or event period starts on or before this

deletedboolean

true lists the projects in trash instead of the live ones. Needs permission to see deleted projects

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of projects per page, at most 100

default: 50 · min: 1 · max: 100

sort"number" | "name" | "outStart" | "eventStart" | "createdAt" | "updatedAt"

Field to sort projects by. Defaults to `number`

default: "number"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
projectsProject[]

Projects on this page, in the order asked for

totalinteger

Total number of projects across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a project

GET
POST
/api/v1/org/{organisationUUID}/projects/get

Returns one project, by UUID or by number, with its sub-projects and the dates that apply to it.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
uuidstring

UUID of the project. Give this or `number`

min length: 1 · max length: 64

numberinteger

The project's number. Give this or `uuid`

min: 1

Resposta

Devolve Project sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a project

POST
Simulação
/api/v1/org/{organisationUUID}/projects/create

Creates a project, or a sub-project of another. It gets the next project number, and the default status and type unless others are given. You manage it unless someone else is named, and the manager follows it. It can start from a project template, which adds the template's lines, crew roles (as vacancies) and notes. The plan limits how many top-level projects can be active at once.

Necessita da permissão PROJECTS.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

The project's name, for example 'Summer ball 2027'

min length: 1 · max length: 255

descriptionstring

What the project is, in more detail

max length: 10000

statusUUIDstring

UUID of its status. Omit for the default status

min length: 1 · max length: 64

typeUUIDstring

UUID of its type. Omit for the default type

min length: 1 · max length: 64

parentUUIDstring

UUID of the project to make it a sub-project of. Sub-projects nest at most three levels deep

min length: 1 · max length: 64

followParentStatusboolean

For a sub-project: keep its status the same as its parent's. Ignored for a top-level project

default: false

managerUUIDstring

UUID of the member managing it. Omit for yourself

min length: 1 · max length: 64

folderUUIDstring

UUID of the folder to put it in. Ignored for a sub-project, which goes where its parent goes

min length: 1 · max length: 64

clientUUIDstring

UUID of the client it's for

min length: 1 · max length: 64

clientContactUUIDstring

UUID of the person at the client it's with

min length: 1 · max length: 64

venueUUIDstring

UUID of the location where it happens

min length: 1 · max length: 64

outStartstring (date-time) | null

When the assets leave, or null to clear it

outEndstring (date-time) | null

When the assets are back, or null to clear it

eventStartstring (date-time) | null

When the event starts, or null to clear it

eventEndstring (date-time) | null

When the event ends, or null to clear it

chargeStartstring (date-time) | null

Start of the charged period. Null charges for the out period, or null to clear it

chargeEndstring (date-time) | null

End of the charged period. Null charges for the out period, or null to clear it

clientPricingUUIDstring

UUID of the client pricing to price lines through. Omit for the client's own

min length: 1 · max length: 64

defaultDiscountBpinteger

The discount new lines get, in basis points: 1000 is 10%

min: 0 · max: 10000

unitsOverrideinteger

Chargeable units for every line, instead of working them out from the dates. 0 is free

min: 0 · max: 10000

taxRateOverrideUUIDstring

UUID of a tax rate every line is taxed at instead of its own

min length: 1 · max length: 64

invoiceNotesstring

Printed on the project's quotes and invoices

max length: 5000

deliveryNotesstring

Printed on the project's delivery notes

max length: 5000

followerUUIDsstring[]

UUIDs of members to follow the project. The manager follows it too

default: [] · max items: 50

templateUUIDstring

UUID of a project template to start it from: its lines are added and priced, each crew role becomes a vacancy not yet taking applications, and its notes are copied. The project gets the template's type unless typeUUID is given. Lines whose item has since been deleted are left out

min length: 1 · max length: 64

numberinteger

The project number to use, for a project brought across from another system. Ignored if another project has it. Omit for the next number

min: 1 · max: 1000000000

createdByUUIDstring

Only for the import from the previous version of AdamRMS: who created the project there. Ignored otherwise

min length: 1 · max length: 64

createdAtstring (date-time)

Only for the import from the previous version of AdamRMS: when the project was created there. Ignored otherwise

Resposta

Devolve Project sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

CLIENT_NOT_FOUND 422

CLIENT_PRICING_NOT_FOUND 422

CONTACT_NOT_FOUND 422

FOLDER_NOT_FOUND 422

INVALID_DATES 422

PARENT_NOT_FOUND 422

PERSON_NOT_FOUND 422

STATUS_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

TEMPLATE_NOT_FOUND 422

TOO_DEEP 422

TYPE_NOT_FOUND 422

VENUE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a project

POST
Simulação
/api/v1/org/{organisationUUID}/projects/update

Changes a project's details, status, type, manager, client, venue, folder or dates, or moves it under another project. Sub-projects that follow its status change with it. Fields that are omitted are left unchanged.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the project to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 255

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

statusUUIDstring

UUID of its new status. Sub-projects that follow its status change with it. Omit to leave unchanged

min length: 1 · max length: 64

typeUUIDstring

UUID of its new type. Omit to leave unchanged

min length: 1 · max length: 64

parentUUIDstring | null

UUID of the project to move it under, or null to make it a top-level project. Omit to leave unchanged

followParentStatusboolean

Keep its status the same as its parent's. Turning it on takes the parent's status now. Omit to leave unchanged

managerUUIDstring | null

UUID of the member managing it, or null for nobody. Omit to leave unchanged

folderUUIDstring | null

UUID of the folder to move it to, or null to take it out of its folder. Ignored for a sub-project. Omit to leave unchanged

clientUUIDstring | null

UUID of the client, or null for none. Omit to leave unchanged

clientContactUUIDstring | null

UUID of the person at the client, or null for none. Omit to leave unchanged

venueUUIDstring | null

UUID of the venue, or null for none. Omit to leave unchanged

outStartstring (date-time) | null

When the assets leave, or null to clear it

outEndstring (date-time) | null

When the assets are back, or null to clear it

eventStartstring (date-time) | null

When the event starts, or null to clear it

eventEndstring (date-time) | null

When the event ends, or null to clear it

chargeStartstring (date-time) | null

Start of the charged period. Null charges for the out period, or null to clear it

chargeEndstring (date-time) | null

End of the charged period. Null charges for the out period, or null to clear it

clientPricingUUIDstring | null

UUID of the client pricing to price new lines through, or null for catalogue prices. Lines already on it keep their prices until refreshed. Omit to leave unchanged

defaultDiscountBpinteger

The discount new lines get, in basis points. Omit to leave unchanged

min: 0 · max: 10000

unitsOverrideinteger | null

Chargeable units for every line, or null to work them out from the dates. Omit to leave unchanged

taxRateOverrideUUIDstring | null

UUID of a tax rate every line is taxed at, or null for each line's own. Omit to leave unchanged

invoiceNotesstring | null

Printed on quotes and invoices, or null to clear it. Omit to leave unchanged

deliveryNotesstring | null

Printed on delivery notes, or null to clear it. Omit to leave unchanged

Resposta

Devolve Project sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

CLIENT_NOT_FOUND 422

CLIENT_PRICING_NOT_FOUND 422

CONTACT_NOT_FOUND 422

FOLDER_NOT_FOUND 422

INVALID_DATES 422

PARENT_IS_DESCENDANT 422

PARENT_NOT_FOUND 422

PERSON_NOT_FOUND 422

STATUS_NOT_FOUND 422

TAX_RATE_NOT_FOUND 422

TOO_DEEP 422

TYPE_NOT_FOUND 422

VENUE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Follow or stop following a project

POST
Simulação
/api/v1/org/{organisationUUID}/projects/follow

Starts or stops a member following a project. Followers are emailed when it gets a comment or its status changes. Anyone who can see the project can follow it themselves; changing someone else needs permission to edit the project.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

userUUIDstring

UUID of the member. Omit for yourself

min length: 1 · max length: 64

following
Obrigatório
boolean

true to start following the project, false to stop

Resposta

Devolve Project sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

PERSON_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/follow" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","following":false}'

Move a project to trash

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/projects/delete

Moves a project and its sub-projects to trash. Projects in trash are kept for good, and can be restored. The number isn't reused.

Necessita da permissão PROJECTS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the project to move to trash

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidsstring[]

UUIDs of the projects moved to trash: the project and its sub-projects

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Restore a project from trash

POST
Simulação
/api/v1/org/{organisationUUID}/projects/restore

Brings a project back from trash, with the sub-projects that went with it. A sub-project whose parent is still in trash comes back as a top-level project.

Necessita da permissão PROJECTS.RESTORE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the project in trash to restore

min length: 1 · max length: 64

Resposta

Devolve Project sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/restore" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Read a project's history

GET
POST
/api/v1/org/{organisationUUID}/projects/history

Returns what's been changed on a project in the last 90 days, newest first: the project itself, and its lines, assets, crew, notes, quotes, invoices and payments. Each change says who made it and when. Changes to parts of the project the caller can't see are left out.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

beforestring (date-time)

Only return changes made before this time: the nextBefore of the previous page

limitinteger

How many changes to return, 1 to 50

default: 25 · min: 1 · max: 50

Resposta

CampoTipoDescrição
eventsobject[]

Changes to the project and to its lines, crew, notes, quotes, invoices and payments, newest first. Only those the caller may see

events[].occurredAtstring

When it happened (ISO 8601)

events[].actorNamestring | null

Who did it, or null when AdamRMS did it itself

events[].actionstring

What kind of change, such as organisation.project_line.added

events[].summarystring

What changed, in a sentence

nextBeforestring | null

Pass as before for the next page, or null when there are no more in the last 90 days

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/projects/history" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Project notes

List a project's notes

GET
POST
/api/v1/org/{organisationUUID}/project-notes/list

Returns the notes on a project, newest first.

Necessita da permissão PROJECTS.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of notes per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "title"

Field to sort notes by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
notesProjectNote[]

Notes on this page, in the order asked for

totalinteger

Total number of notes across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-notes/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Add a note to a project

POST
Simulação
/api/v1/org/{organisationUUID}/project-notes/create

Adds a titled note, such as meeting notes or a plan, written in Markdown.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

title
Obrigatório
string

The note's title, for example 'Site visit'

min length: 1 · max length: 200

bodystring

The note, in Markdown

default: "" · max length: 50000

authorUUIDstring

Only for the import from the previous version of AdamRMS: who wrote it there. Ignored otherwise

min length: 1 · max length: 64

Resposta

Devolve ProjectNote sob data.

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-notes/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","title":"string"}'

Update a project note

POST
Simulação
/api/v1/org/{organisationUUID}/project-notes/update

Changes a note's title or text.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the note

min length: 1 · max length: 64

titlestring

New title. Omit to leave unchanged

min length: 1 · max length: 200

bodystring

New text, in Markdown. Omit to leave unchanged

max length: 50000

Resposta

Devolve ProjectNote sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-notes/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a project note

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-notes/delete

Deletes a note from a project.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the note to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted note

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-notes/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Project folders

List project folders

GET
POST
/api/v1/org/{organisationUUID}/project-folders/list

Returns every folder projects are organised in, such as 'Weddings', with how many projects each holds.

Necessita da permissão PROJECTS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

CampoTipoDescrição
foldersProjectFolder[]

Every folder, sorted by name. Build the tree from each one's `parentUUID`

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-folders/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a project folder

POST
Simulação
/api/v1/org/{organisationUUID}/project-folders/create

Adds a folder, at the top or inside another folder. Names are unique within a folder, ignoring case.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

The folder's name, for example 'Weddings'

min length: 1 · max length: 100

parentUUIDstring

UUID of the folder to put it in. Omit for a top-level folder. Folders nest at most 5 levels deep

min length: 1 · max length: 64

Resposta

Devolve ProjectFolder sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

PARENT_NOT_FOUND 422

TOO_DEEP 422

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-folders/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a project folder

POST
Simulação
/api/v1/org/{organisationUUID}/project-folders/update

Renames a folder, or moves it into another folder with everything in it.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the folder to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

parentUUIDstring | null

UUID of the folder to move it into, or null to make it a top-level folder. Omit to leave unchanged

Resposta

Devolve ProjectFolder sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

PARENT_IS_INSIDE 422

PARENT_NOT_FOUND 422

TOO_DEEP 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-folders/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a project folder

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-folders/delete

Deletes a folder. The projects and folders in it move up to the folder it was in, so no project is deleted.

Necessita da permissão PROJECTS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the folder to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted folder

movedProjectsinteger

How many projects moved up to the folder it was in

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-folders/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Inspection templates

List inspection templates

GET
POST
/api/v1/org/{organisationUUID}/inspection-templates/list

Returns the organisation's inspection templates, such as PAT and LOLER, with their checklists and the asset types they apply to.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
assetTypeUUIDstring

Only templates that apply to this asset type

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of templates per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt"

Field to sort templates by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
templatesInspectionTemplate[]

Templates on this page, in the order asked for

totalinteger

Total number of templates across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspection-templates/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an inspection template

GET
POST
/api/v1/org/{organisationUUID}/inspection-templates/get

Returns one inspection template with its checklist.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template

min length: 1 · max length: 64

Resposta

Devolve InspectionTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspection-templates/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create an inspection template

POST
Simulação
/api/v1/org/{organisationUUID}/inspection-templates/create

Creates a regular inspection, such as 'PAT, every 12 months', with its checklist and the asset types it applies to. Only individually tracked asset types can be inspected. Names are unique, ignoring case.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, for example 'PAT' or 'LOLER thorough examination'

min length: 1 · max length: 100

descriptionstring | null

What the inspection is

intervalValue
Obrigatório
integer

How often it's due, with `intervalUnit`: for example 12

min: 1 · max: 1000

intervalUnit
Obrigatório
"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

`DAYS`, `WEEKS`, `MONTHS` or `YEARS`

whenOverdue"BLOCK" | "FLAG"

`BLOCK`: an overdue or failed asset can't be booked. `FLAG`: it only shows a warning

default: "FLAG"

passNewAssetsboolean

New assets count as passed when they're added, so they're first due one interval later

default: false

checkOnReturnboolean

Check each asset when it comes back from a project: it's due from the moment it's marked back, until it's inspected again

default: false

itemsobject[]

The checklist, in order, at most 50 lines

default: [] · max items: 50

items[].uuidstring

UUID of an existing line, to keep it (and its history). Omit for a new line

min length: 1 · max length: 64

items[].label
Obrigatório
string

What to check, for example 'Insulation resistance'

min length: 1 · max length: 255

items[].helpstring | null

How to check it, shown to the tester

items[].type
Obrigatório
"TEXT" | "NUMBER" | "BOOLEAN" | "SELECT"

`TEXT` (a note), `NUMBER` (a reading), `BOOLEAN` (yes or no) or `SELECT` (one of a list)

items[].requiredboolean

The tester must answer it. Defaults to true

default: true

items[].minnumber | null

NUMBER: a reading below this fails the line

items[].maxnumber | null

NUMBER: a reading above this fails the line

items[].unitstring | null

NUMBER: what the reading is in, for example 'MΩ'

items[].expectedboolean | null

BOOLEAN: the answer that passes, for example true for 'Cable undamaged?'. Omit for one that never fails

items[].optionsobject[] | null

SELECT: the choices, at most 20

assetTypeUUIDsstring[]

UUIDs of the asset types it applies to. Only individually tracked types can be inspected

default: [] · max items: 500

Resposta

Devolve InspectionTemplate sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

ASSET_TYPE_NOT_FOUND 422

BULK_ASSET_TYPE 422

INVALID_ITEM 422

ITEM_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspection-templates/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","intervalValue":1,"intervalUnit":"string"}'

Update an inspection template

POST
Simulação
/api/v1/org/{organisationUUID}/inspection-templates/update

Changes a template's interval, what happens when assets are overdue, its checklist or its asset types. A new interval changes when every asset is next due. Fields that are omitted are left unchanged.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 100

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

intervalValueinteger

New interval. Omit to leave unchanged

min: 1 · max: 1000

intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

New interval unit. Omit to leave unchanged

whenOverdue"BLOCK" | "FLAG"

BLOCK or FLAG. Omit to leave unchanged

passNewAssetsboolean

Omit to leave unchanged

checkOnReturnboolean

Omit to leave unchanged

itemsobject[]

The whole new checklist, in order. Lines given with a `uuid` are kept; lines left out are removed (older results still show them). Omit to leave unchanged

max items: 50

items[].uuidstring

UUID of an existing line, to keep it (and its history). Omit for a new line

min length: 1 · max length: 64

items[].label
Obrigatório
string

What to check, for example 'Insulation resistance'

min length: 1 · max length: 255

items[].helpstring | null

How to check it, shown to the tester

items[].type
Obrigatório
"TEXT" | "NUMBER" | "BOOLEAN" | "SELECT"

`TEXT` (a note), `NUMBER` (a reading), `BOOLEAN` (yes or no) or `SELECT` (one of a list)

items[].requiredboolean

The tester must answer it. Defaults to true

default: true

items[].minnumber | null

NUMBER: a reading below this fails the line

items[].maxnumber | null

NUMBER: a reading above this fails the line

items[].unitstring | null

NUMBER: what the reading is in, for example 'MΩ'

items[].expectedboolean | null

BOOLEAN: the answer that passes, for example true for 'Cable undamaged?'. Omit for one that never fails

items[].optionsobject[] | null

SELECT: the choices, at most 20

assetTypeUUIDsstring[]

The whole new list of asset types. Omit to leave unchanged

max items: 500

Resposta

Devolve InspectionTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

ASSET_TYPE_NOT_FOUND 422

BULK_ASSET_TYPE 422

INVALID_ITEM 422

ITEM_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspection-templates/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete an inspection template

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/inspection-templates/delete

Deletes a template. Assets stop being due it, and overdue ones stop being flagged or blocked. Results already recorded are kept.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted template

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspection-templates/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Inspections

Record an inspection

POST
Simulação
/api/v1/org/{organisationUUID}/inspections/record

Records that an asset was inspected, with the checklist answers. A line fails when a reading is outside its limits, a yes or no isn't the expected answer, or a failing choice is picked, and that fails the inspection unless `passOverride` says otherwise. A failure opens a maintenance job that blocks the asset.

Necessita da permissão INSPECTIONS.RECORD.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset inspected

min length: 1 · max length: 64

templateUUID
Obrigatório
string

UUID of the inspection template

min length: 1 · max length: 64

answersobject[]

Answers to the template's checklist

default: [] · max items: 50

answers[].itemUUID
Obrigatório
string

UUID of the checklist line

min length: 1 · max length: 64

answers[].value
Obrigatório
string | null

The answer: text, a number such as `0.08`, `true`/`false`, or a choice's label. Null to leave it blank

passOverrideboolean

true passes the asset although a line failed, false fails it although every line passed. Needs `overrideNote` when it passes a failed line. Omit to go by the lines

overrideNotestring

Why the result differs from the lines

max length: 1000

testedAtstring (date-time)

When it was tested. Omit for now. Can't be in the future

testerUUIDstring

UUID of the member who tested it. Omit for yourself, unless `testerName` is given

min length: 1 · max length: 64

testerNamestring

Name of a tester from outside, such as a LOLER examiner

max length: 255

testerCompanystring

Company of a tester from outside

max length: 255

certificateNumberstring

The certificate or report number

max length: 100

testEquipmentstring

The test equipment used, for example 'Seaward Apollo 600, serial 1234'

max length: 255

notesstring

Notes on the test

max length: 5000

scanUUIDstring

UUID of the scan the result goes with, when tested in a scan session

min length: 1 · max length: 64

Resposta

Devolve InspectionResult sob data.

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 422

INVALID_ANSWER 422

MISSING_ANSWER 422

NOT_APPLICABLE 422

OVERRIDE_NOTE_REQUIRED 422

PERSON_NOT_FOUND 422

SCAN_NOT_FOUND 422

TEMPLATE_NOT_FOUND 422

TESTED_IN_FUTURE 422

UNKNOWN_ITEM 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/record" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string","templateUUID":"string"}'

Get an inspection result

GET
POST
/api/v1/org/{organisationUUID}/inspections/get

Returns one inspection result with its checklist answers, who tested it, and the job a failure opened.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the result

min length: 1 · max length: 64

Resposta

Devolve InspectionResult sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

List inspection results

GET
POST
/api/v1/org/{organisationUUID}/inspections/list

Returns inspection results, newest first, for an asset, a template, or the whole organisation.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
assetUUIDstring

Only results for this asset

min length: 1 · max length: 64

templateUUIDstring

Only results of this template

min length: 1 · max length: 64

passedboolean

Only passes (true) or only failures (false)

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of results per page, at most 100

default: 50 · min: 1 · max: 100

sort"testedAt"

Field to sort results by. Defaults to `testedAt`

default: "testedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
resultsInspectionResult[]

Results on this page, in the order asked for

totalinteger

Total number of results across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Delete an inspection result

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/inspections/delete

Deletes a result recorded by mistake. The asset's due date goes back to what the result before it says. A job the failure opened is left as it is.

Necessita da permissão INSPECTIONS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the result to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the deleted result

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Get an asset's inspections

GET
POST
/api/v1/org/{organisationUUID}/inspections/asset-status

Returns each inspection that applies to an asset: its interval, its latest result, and when it's next due.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
inspectionsobject[]

Each inspection that applies to the asset

inspections[].templateobject

The inspection

inspections[].template.uuidstring

UUID of the template

inspections[].template.namestring

Name of the template

inspections[].template.whenOverdue"BLOCK" | "FLAG"

What happens when the asset is overdue

inspections[].intervalValueinteger

How often the asset is due: its own interval, or the template's

inspections[].intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

Unit of `intervalValue`

inspections[].overriddenboolean

The asset has its own interval for this template

inspections[].lastResultobject | null

The latest result, or null if never inspected

inspections[].dueAtstring (date-time)

When it's next due

inspections[].overdueboolean

It's due now or was due before now

inspections[].returnCheckboolean

It's due because it came back from a project since it was last inspected, and the template checks each asset on return

excludedobject[]

Templates its type has that this asset is left out of

excluded[].uuidstring

UUID of the template

excluded[].namestring

Name of the template

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/asset-status" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string"}'

List assets due an inspection

GET
POST
/api/v1/org/{organisationUUID}/inspections/due

Returns assets that are overdue or due soon (by default, within 14 days), soonest first.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
templateUUIDstring

Only this inspection

min length: 1 · max length: 64

dueBeforestring (date-time)

Only assets due before this time. Omit for 14 days from now

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of assets due per page, at most 100

default: 50 · min: 1 · max: 100

sort"dueAt"

Field to sort assets due by. Defaults to `dueAt`

default: "dueAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
dueobject[]

Assets due, soonest first

due[].templateobject

The inspection

due[].template.uuidstring

UUID of the template

due[].template.namestring

Name of the template

due[].template.whenOverdue"BLOCK" | "FLAG"

What happens when the asset is overdue

due[].intervalValueinteger

How often the asset is due: its own interval, or the template's

due[].intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

Unit of `intervalValue`

due[].overriddenboolean

The asset has its own interval for this template

due[].lastResultobject | null

The latest result, or null if never inspected

due[].dueAtstring (date-time)

When it's next due

due[].overdueboolean

It's due now or was due before now

due[].returnCheckboolean

It's due because it came back from a project since it was last inspected, and the template checks each asset on return

due[].assetobject

The asset

due[].asset.uuidstring

UUID of the asset

due[].asset.primaryIDstring | null

The asset's primary asset ID

due[].asset.assetTypeNamestring

Name of the asset's type

totalinteger

Total number of assets due across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/due" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List a project's return checks

GET
POST
/api/v1/org/{organisationUUID}/inspections/return-checks

Returns the assets on a project that have come back and are due an inspection that checks each asset on return, such as a PAT test. Each stays listed until it's inspected.

Necessita da permissão INSPECTIONS.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project. Its sub-projects' assets are included

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
checksobject[]

Each asset on the project that's back and due an inspection that checks on return

checks[].assetUUIDstring

UUID of the asset

checks[].templateobject

The inspection it's due

checks[].template.uuidstring

UUID of the template

checks[].template.namestring

Name of the template

checks[].dueAtstring (date-time)

When it came back, so when the check fell due

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/return-checks" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Set an asset's own inspection interval

POST
Simulação
/api/v1/org/{organisationUUID}/inspections/set-asset-override

Gives one asset its own interval for a template, such as 6 months for a cable that's used hard, or leaves it out of the template. Send neither to go back to the template's.

Necessita da permissão ASSETS.UPDATE.

Entrada

CampoTipoDescrição
assetUUID
Obrigatório
string

UUID of the asset

min length: 1 · max length: 64

templateUUID
Obrigatório
string

UUID of the template

min length: 1 · max length: 64

excludedboolean

Leave this asset out of the inspection altogether

default: false

intervalValueinteger | null

The asset's own interval, or null to use the template's

default: null

intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS" | null

Unit of the asset's own interval. Needed with `intervalValue`

default: null

Resposta

CampoTipoDescrição
inspectionsobject[]

Each inspection that applies to the asset

inspections[].templateobject

The inspection

inspections[].template.uuidstring

UUID of the template

inspections[].template.namestring

Name of the template

inspections[].template.whenOverdue"BLOCK" | "FLAG"

What happens when the asset is overdue

inspections[].intervalValueinteger

How often the asset is due: its own interval, or the template's

inspections[].intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

Unit of `intervalValue`

inspections[].overriddenboolean

The asset has its own interval for this template

inspections[].lastResultobject | null

The latest result, or null if never inspected

inspections[].dueAtstring (date-time)

When it's next due

inspections[].overdueboolean

It's due now or was due before now

inspections[].returnCheckboolean

It's due because it came back from a project since it was last inspected, and the template checks each asset on return

excludedobject[]

Templates its type has that this asset is left out of

excluded[].uuidstring

UUID of the template

excluded[].namestring

Name of the template

Erros

Bem como os erros comuns:

ASSET_NOT_FOUND 422

INTERVAL_UNIT_REQUIRED 422

TEMPLATE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/inspections/set-asset-override" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"assetUUID":"string","templateUUID":"string"}'

Document templates

List document templates

GET
POST
/api/v1/org/{organisationUUID}/document-templates/list

Returns the organisation's document templates, optionally of one kind. A kind with none uses its built-in layout.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
kind"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

Only return templates of this kind. What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of document templates per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort document templates by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
documentTemplatesDocumentTemplate[]

Templates on this page, in the order asked for

totalinteger

Total number of document templates across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-templates/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a document template

GET
POST
/api/v1/org/{organisationUUID}/document-templates/get

Returns one document template, with its settings and HTML.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template

min length: 1 · max length: 64

Resposta

Devolve DocumentTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-templates/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a document template

POST
Simulação
/api/v1/org/{organisationUUID}/document-templates/create

Creates a template for one kind of document. Without HTML it uses the kind's built-in layout, adjusted by its settings. HTML that isn't valid Liquid is refused.

Necessita da permissão DOCUMENT_TEMPLATES.CREATE.

Entrada

CampoTipoDescrição
kind
Obrigatório
"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

name
Obrigatório
string

Display name, such as 'PAT certificate'

min length: 1 · max length: 200

isDefaultboolean

Make it the default for its kind, in place of the current one. The first template of a kind is always the default

paperSize"A4" | "LETTER"

Paper size: `A4` (210 × 297 mm) or `LETTER` (8.5 × 11 in). Defaults to Letter in the Americas and A4 elsewhere, from the organisation's timezone

settingsobject

Settings. Any left out take their defaults

settings.titlestring | null

The title printed on the document, such as 'Tax invoice'. Null uses the kind's own title

settings.introTextstring | null

Text printed under the title, or null for none

settings.footerTextstring | null

Text printed at the end, such as terms or payment details, or null for none

settings.accentColourstring

Colour for headings and lines, as #rrggbb

settings.font"SANS" | "SERIF" | "MONO"

Font: `SANS` (Arial), `SERIF` (Georgia) or `MONO` (Courier New)

settings.showLogoboolean

Print the organisation's logo at the top

htmlstring | null

Liquid HTML for the document's body, up to 200,000 characters. It reads the kind's data, such as `{{ organisation.name }}`, and the filters `money`, `date`, `datetime` and `mass`. It can't run JavaScript or load anything from the internet: images must be `data:` URLs. Null uses the kind's built-in layout, adjusted by the settings. Defaults to null

Resposta

Devolve DocumentTemplate sob data.

Erros

Bem como os erros comuns:

INVALID_TEMPLATE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-templates/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string","name":"string"}'

Update a document template

POST
Simulação
/api/v1/org/{organisationUUID}/document-templates/update

Changes a template's name, paper size, settings or HTML, or makes it its kind's default. Fields that are omitted are left unchanged. Documents already made are not changed.

Necessita da permissão DOCUMENT_TEMPLATES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to update

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 200

isDefaulttrue

True to make it the default for its kind. To change the default, make another template the default

paperSize"A4" | "LETTER"

Paper size: `A4` (210 × 297 mm) or `LETTER` (8.5 × 11 in). Omit to leave unchanged

settingsobject

Settings to change. Any left out are unchanged

settings.titlestring | null

The title printed on the document, such as 'Tax invoice'. Null uses the kind's own title

settings.introTextstring | null

Text printed under the title, or null for none

settings.footerTextstring | null

Text printed at the end, such as terms or payment details, or null for none

settings.accentColourstring

Colour for headings and lines, as #rrggbb

settings.font"SANS" | "SERIF" | "MONO"

Font: `SANS` (Arial), `SERIF` (Georgia) or `MONO` (Courier New)

settings.showLogoboolean

Print the organisation's logo at the top

htmlstring | null

Liquid HTML for the document's body, up to 200,000 characters. It reads the kind's data, such as `{{ organisation.name }}`, and the filters `money`, `date`, `datetime` and `mass`. It can't run JavaScript or load anything from the internet: images must be `data:` URLs. Null uses the kind's built-in layout, adjusted by the settings. Null goes back to the built-in layout. Omit to leave unchanged

Resposta

Devolve DocumentTemplate sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

INVALID_TEMPLATE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-templates/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a document template

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/document-templates/delete

Soft-deletes a template. Documents already made from it are kept. If it was the default, the oldest remaining template of its kind becomes the default.

Necessita da permissão DOCUMENT_TEMPLATES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the template to delete. Documents already made from it are kept. If it was the default, the oldest remaining template of its kind becomes the default

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the template that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-templates/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Documents

Preview a document

GET
POST
/api/v1/org/{organisationUUID}/documents/preview

Renders a saved or unsaved template as HTML, with sample data or a real record, exactly as its PDF would be. Reading a real record needs access to it, as reading it directly would.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
kind
Obrigatório
"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

templateUUIDstring

UUID of a saved template of this kind. Omit to preview `draft`, or the kind's default

min length: 1 · max length: 64

draftobject

An unsaved template to preview, as the editor has it. Ignored when `templateUUID` is given

draft.paperSize
Obrigatório
"A4" | "LETTER"

Paper size: `A4` (210 × 297 mm) or `LETTER` (8.5 × 11 in)

draft.settings
Obrigatório
DocumentTemplateSettings

draft.html
Obrigatório
string | null

Liquid HTML for the document's body, up to 200,000 characters. It reads the kind's data, such as `{{ organisation.name }}`, and the filters `money`, `date`, `datetime` and `mass`. It can't run JavaScript or load anything from the internet: images must be `data:` URLs. Null uses the kind's built-in layout, adjusted by the settings

recordUUIDstring

UUID of a real record to preview with, such as an inspection result. Omit to use sample data

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
htmlstring

The whole page as HTML, ready for a sandboxed frame. The PDF is made from exactly this

paperSize"A4" | "LETTER"

Paper size: `A4` (210 × 297 mm) or `LETTER` (8.5 × 11 in)

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

TEMPLATE_NOT_FOUND 404

INVALID_TEMPLATE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/preview" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string"}'

Make a document

POST
/api/v1/org/{organisationUUID}/documents/create

Makes a PDF of one record, such as a certificate for an inspection result, from a template, and saves it in the organisation's files on what it is about. It reads the record through its own functions, so it needs access to the record too; for AI-written code and Apps those reads are allowed as part of this call. The file counts towards the storage allowance.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
kind
Obrigatório
"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

recordUUID
Obrigatório
string

UUID of what the document is about, for the kind: for `INSPECTION_CERTIFICATE`, the inspection result; for `INVOICE`, the invoice; for `QUOTE`, the quote; for `DELIVERY_NOTE`, `PICKING_LIST`, `RETURN_NOTE`, `CREW_CALL_SHEET` and `PROJECT_NOTES`, the project; for `CLIENT_STATEMENT`, the client

min length: 1 · max length: 64

templateUUIDstring

UUID of the template to use. Omit for the kind's default, or its built-in layout when it has no templates

min length: 1 · max length: 64

Resposta

Devolve GeneratedDocument sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

RECORD_NOT_FOUND 404

TEMPLATE_NOT_FOUND 404

INVALID_TEMPLATE 422

RENDER_FAILED 429

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string","recordUUID":"string"}'

List a record's documents

GET
POST
/api/v1/org/{organisationUUID}/documents/list

Returns the documents made for one record, such as the certificates made for an inspection result, newest first. Reading them needs access to the record.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
kind
Obrigatório
"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

recordUUID
Obrigatório
string

UUID of what the documents are about, for the kind: for `INSPECTION_CERTIFICATE`, the inspection result; for `INVOICE`, the invoice; for `QUOTE`, the quote; for `DELIVERY_NOTE`, `PICKING_LIST`, `RETURN_NOTE`, `CREW_CALL_SHEET` and `PROJECT_NOTES`, the project; for `CLIENT_STATEMENT`, the client

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
documentsGeneratedDocument[]

Documents made for the record, newest first, not counting deleted ones

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string","recordUUID":"string"}'

List a project's documents

GET
POST
/api/v1/org/{organisationUUID}/documents/list-for-project

Returns every document kept on a project and its sub-projects, such as quotes, invoices, delivery notes and call sheets, newest first. Reading them needs access to the project.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project. Documents made for its sub-projects are included

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
documentsProjectDocument[]

Documents kept on the project and its sub-projects, newest first, not counting deleted ones. At most 500

Erros

Bem como os erros comuns:

RECORD_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/list-for-project" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Email a document to the client

POST
/api/v1/org/{organisationUUID}/documents/email

Emails a document kept on a project, such as a quote or invoice, to some of the project's client's contacts, with the PDF attached and an optional message. Replies go to the member who sent it. It reads the project and the client's contacts through their own functions, so it needs access to them too; for AI-written code and Apps those reads are allowed as part of this call. The project's history records who it was sent to.

Necessita da permissão DOCUMENT_TEMPLATES.EMAIL_CLIENTS.

Entrada

CampoTipoDescrição
fileUUID
Obrigatório
string

UUID of a document kept on a project (the fileUUID from documents.create or documents.list-for-project)

min length: 1 · max length: 64

contactUUIDs
Obrigatório
string[]

UUIDs of the project's client's contacts to send it to (from client-contacts.list). Each needs an email address

min items: 1 · max items: 10

messagestring

A message to the client, in plain text, shown above the attachment. Omit for none

max length: 5000

Resposta

CampoTipoDescrição
fileUUIDstring

UUID of the document that was sent

emailedToobject[]

Who it was sent to

emailedTo[].contactUUIDstring

UUID of the client contact

emailedTo[].namestring

The contact's name

emailedTo[].emailstring

The address it was sent to

emailedAtstring (date-time)

When it was sent

Erros

Bem como os erros comuns:

NOT_FOUND 404

CONTACT_NOT_FOUND 422

NO_CLIENT 422

TOO_LARGE 422

SEND_FAILED 429

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/email" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileUUID":"string","contactUUIDs":[]}'

Make documents in a batch

POST
/api/v1/org/{organisationUUID}/documents/create-batch

Starts making one document of a kind for each of up to 100 records, such as a delivery note for each of tomorrow's projects, in the background. Each is made and kept exactly as documents.create would, as the member who started the batch. Follow it with documents.get-batch.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
kind
Obrigatório
"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

recordUUIDs
Obrigatório
string[]

UUIDs of what each document is about, as for documents.create, such as projects for delivery notes. Up to 100; repeats are ignored

min items: 1 · max items: 100

templateUUIDstring

UUID of the template to use for every document. Omit for the kind's default

min length: 1 · max length: 64

Resposta

Devolve DocumentBatch sob data.

Erros

Bem como os erros comuns:

TEMPLATE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/create-batch" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string","recordUUIDs":[]}'

Get a batch of documents

GET
POST
/api/v1/org/{organisationUUID}/documents/get-batch

Returns how a batch from documents.create-batch is going, and each document made so far. Only the member who started a batch can read it.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the batch, from documents.create-batch

min length: 1 · max length: 64

Resposta

Devolve DocumentBatch sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/documents/get-batch" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Document settings

Get document settings

GET
POST
/api/v1/org/{organisationUUID}/document-settings/get

Returns the settings for every document the organisation makes, such as whether each page says it was made with AdamRMS.

Necessita da permissão DOCUMENT_TEMPLATES.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve DocumentSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update document settings

POST
Simulação
/api/v1/org/{organisationUUID}/document-settings/update

Changes the settings for every document, such as whether each page says it was made with AdamRMS. Documents already made are not changed.

Necessita da permissão DOCUMENT_TEMPLATES.UPDATE.

Entrada

CampoTipoDescrição
showAdamRMSFooterboolean

True to say on every document that it was made with AdamRMS, false to leave it off. Omit to leave unchanged

Resposta

Devolve DocumentSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/document-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Certification types

List certification types

GET
POST
/api/v1/org/{organisationUUID}/certification-types/list

Returns the organisation's certification types, such as 'IPAF 3a' or 'First aid at work', with how many members currently hold each.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return types whose name contains this text

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of certification types per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort certification types by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
certificationTypesCertificationType[]

Certification types on this page, in the order asked for

totalinteger

Total number of certification types across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/certification-types/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a certification type

POST
Simulação
/api/v1/org/{organisationUUID}/certification-types/create

Creates a certification type. A name already used by another live type (ignoring case) is refused.

Necessita da permissão CERTIFICATION_TYPES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

What it is called, such as 'IPAF 3a' or 'First aid at work'. Must not match another live type's name (ignoring case)

min length: 1 · max length: 200

descriptionstring

What it covers, such as which machines or which course

max length: 2000

validityMonthsinteger

How many months a certification lasts once gained, such as 60 for five years. Omit if it never expires

min: 1 · max: 600

Resposta

Devolve CertificationType sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/certification-types/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Update a certification type

POST
Simulação
/api/v1/org/{organisationUUID}/certification-types/update

Changes a certification type's name, description or validity. Certifications already recorded keep their expiry dates. Fields that are omitted are left unchanged.

Necessita da permissão CERTIFICATION_TYPES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the certification type to change

min length: 1 · max length: 64

namestring

New name. Omit to leave unchanged

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it. Omit to leave unchanged

validityMonthsinteger | null

New validity in months, or null for one that never expires. Certifications already recorded keep their expiry date. Omit to leave unchanged

Resposta

Devolve CertificationType sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/certification-types/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a certification type

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/certification-types/delete

Soft-deletes a certification type. Certifications members already hold keep it. A type that a live training module awards is refused.

Necessita da permissão CERTIFICATION_TYPES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the certification type to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the certification type deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_USE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/certification-types/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Member certifications

List members' certifications

GET
POST
/api/v1/org/{organisationUUID}/member-certifications/list

Returns certifications members hold, filtered by member, type or state. Each comes with its status (valid, expiring soon, expired, unverified or revoked) and its evidence files. Anyone can list their own.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
memberUUIDstring

Only this member's certifications. Anyone can list their own; everyone else's needs permission to view members' certifications

min length: 1 · max length: 64

typeUUIDstring

Only certifications of this type

min length: 1 · max length: 64

status"VALID" | "EXPIRING" | "EXPIRED" | "UNVERIFIED" | "REVOKED"

Only certifications in this state. Omit for all but revoked

includeRevokedboolean

Also return revoked certifications, when no status is given

default: false

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of certifications per page, at most 100

default: 50 · min: 1 · max: 100

sort"gainedOn" | "expiresOn" | "createdAt"

Field to sort certifications by. Defaults to `expiresOn`

default: "expiresOn"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
certificationsMemberCertification[]

Certifications on this page, in the order asked for

totalinteger

Total number of certifications across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a certification

GET
POST
/api/v1/org/{organisationUUID}/member-certifications/get

Returns one certification a member holds.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the certification

min length: 1 · max length: 64

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Record a certification

POST
Simulação
/api/v1/org/{organisationUUID}/member-certifications/create

Records a certification a member holds, such as their IPAF card. One recorded for someone else is verified at once. One a member adds for themselves is unverified, so doesn't count, until someone verifies it. The expiry is worked out from the type's validity unless given.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
memberUUIDstring

UUID of the member who holds it. Omit for yourself. Recording one for someone else needs permission, and is verified at once; one you add for yourself without that permission is unverified until someone verifies it

min length: 1 · max length: 64

typeUUID
Obrigatório
string

UUID of its certification type

min length: 1 · max length: 64

gainedOn
Obrigatório
string (date)

The day it was gained, YYYY-MM-DD

expiresOnstring (date) | null

The last day it is valid, YYYY-MM-DD. Omit to work it out from the type's validity; null for one that never expires

issuedBystring

Who issued it, such as 'IPAF' or a training company

max length: 200

referencestring

The card or certificate number

max length: 200

commentstring

Notes about it

max length: 2000

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

EXPIRES_BEFORE_GAINED 422

MEMBER_NOT_FOUND 422

TYPE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"typeUUID":"string","gainedOn":"string"}'

Update a certification

POST
Simulação
/api/v1/org/{organisationUUID}/member-certifications/update

Changes a certification's type, dates, issuer, reference or comment. Members can change their own while it is unverified. A revoked certification can't be changed. Fields that are omitted are left unchanged.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the certification to change

min length: 1 · max length: 64

typeUUIDstring

New certification type

min length: 1 · max length: 64

gainedOnstring (date)

New day it was gained, YYYY-MM-DD. Omit to leave unchanged

expiresOnstring (date) | null

New expiry day, or null for one that never expires. Omit to leave unchanged

issuedBystring | null

New issuer, or null to clear it

referencestring | null

New card or certificate number, or null to clear it

commentstring | null

New notes, or null to clear them

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

REVOKED 409

EXPIRES_BEFORE_GAINED 422

TYPE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Verify a certification

POST
Simulação
/api/v1/org/{organisationUUID}/member-certifications/verify

Marks a certification a member added for themselves as checked, so it counts.

Necessita da permissão MEMBER_CERTIFICATIONS.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the unverified certification to verify

min length: 1 · max length: 64

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_VERIFIED 409

REVOKED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/verify" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Revoke a certification

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/member-certifications/revoke

Stops a certification counting, with a reason. It stays on record as revoked.

Necessita da permissão MEMBER_CERTIFICATIONS.REVOKE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the certification to revoke

min length: 1 · max length: 64

reason
Obrigatório
string

Why it no longer counts, such as 'Card lost' or 'Retraining needed'

min length: 1 · max length: 2000

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_REVOKED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/revoke" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","reason":"string"}'

Revoke every certification of a type

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/member-certifications/revoke-all

Revokes every member's certification of one type, with a reason, such as when a course changes and everyone must take it again.

Necessita da permissão MEMBER_CERTIFICATIONS.REVOKE.

Entrada

CampoTipoDescrição
typeUUID
Obrigatório
string

UUID of the certification type whose certifications to revoke

min length: 1 · max length: 64

reason
Obrigatório
string

Why they no longer count, such as 'The course changed'

min length: 1 · max length: 2000

Resposta

CampoTipoDescrição
revokedinteger

How many certifications were revoked

Erros

Bem como os erros comuns:

TYPE_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/revoke-all" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"typeUUID":"string","reason":"string"}'

Delete an unverified certification

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/member-certifications/delete

Deletes a certification that hasn't been verified, such as one a member added by mistake. Its evidence goes to the trash. Verified certifications are revoked instead.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the unverified certification to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the certification deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

VERIFIED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Check members hold certifications

GET
POST
/api/v1/org/{organisationUUID}/member-certifications/check

For each member, says whether they hold a verified certification of each type that is still valid on a day, such as the last day of a project. Use it to warn before giving someone work that needs a certification.

Necessita da permissão MEMBER_CERTIFICATIONS.VIEW.

Entrada

CampoTipoDescrição
memberUUIDs
Obrigatório
string[]

The members to check, at most 100

min items: 1 · max items: 100

typeUUIDs
Obrigatório
string[]

The certification types each must hold, at most 50

min items: 1 · max items: 50

validOnstring (date)

The day they must be valid on, YYYY-MM-DD, such as the last day of a project. Defaults to today

Resposta

CampoTipoDescrição
membersobject[]

One entry per member asked about, in the same order

members[].memberUUIDstring

UUID of the member

members[].okboolean

Whether they hold every type, valid on the day

members[].typesobject[]

One result per type asked about, in the same order

members[].types[].typeUUIDstring

UUID of the certification type

members[].types[].result"VALID" | "EXPIRED" | "UNVERIFIED" | "MISSING"

VALID: verified and valid on the day. EXPIRED: they hold one, but it expires before the day. UNVERIFIED: they added one that hasn't been verified. MISSING: they hold none

members[].types[].certificationUUIDstring | null

The certification the result is about, or null for MISSING

members[].types[].expiresOnstring (date) | null

Its expiry day, or null

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/check" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"memberUUIDs":[],"typeUUIDs":[]}'

Start uploading a certification's evidence

POST
/api/v1/org/{organisationUUID}/member-certifications/start-evidence-upload

Checks a photo or PDF of the card or certificate can be added to a certification (at most 5 each), and returns a private URL to PUT its bytes to. The file is added once `member-certifications.finish-evidence-upload` is called. Members can add evidence to their own certifications.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
certificationUUID
Obrigatório
string

UUID of the certification it is evidence for

min length: 1 · max length: 64

fileName
Obrigatório
string

The file's name, such as 'ipaf-card.jpg'

min length: 1 · max length: 255

contentType
Obrigatório
"application/pdf" | "image/jpeg" | "image/png" | "image/webp"

The file's type: a PDF, JPEG, PNG or WebP

sizeBytes
Obrigatório
integer

Its size in bytes, at most 26214400

min: 1

Resposta

CampoTipoDescrição
uploadTokenstring

Pass to finish-evidence-upload

uploadUrlstring

Private URL to PUT the file's bytes to

expiresAtstring (date-time)

When the URL stops working

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

FILE_TOO_LARGE 422

TOO_MANY_FILES 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/start-evidence-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"certificationUUID":"string","fileName":"string","contentType":"string","sizeBytes":1}'

Finish uploading a certification's evidence

POST
/api/v1/org/{organisationUUID}/member-certifications/finish-evidence-upload

Completes an upload begun with `member-certifications.start-evidence-upload` and adds the file to the certification.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
uploadToken
Obrigatório
string

The token start-evidence-upload returned

min length: 1 · max length: 256

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

UPLOAD_NOT_FOUND 404

TOO_MANY_FILES 422

UPLOAD_INCOMPLETE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/finish-evidence-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uploadToken":"string"}'

Remove a certification's evidence

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/member-certifications/remove-evidence

Takes a photo or PDF off a certification. The file goes to the trash, where it waits 30 days. Members can remove evidence from their own certifications until they are verified.

Necessita da permissão CERTIFICATION_TYPES.VIEW.

Entrada

CampoTipoDescrição
fileUUID
Obrigatório
string

UUID of the evidence file to remove

min length: 1 · max length: 64

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/member-certifications/remove-evidence" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileUUID":"string"}'

Training modules

List training modules

GET
POST
/api/v1/org/{organisationUUID}/training-modules/list

Returns the training modules the caller may see, with how far the caller has got through each and whether they hold the certification it awards.

Necessita da permissão TRAINING_MODULES.VIEW.

Entrada

CampoTipoDescrição
searchstring

Only return modules whose name contains this text

max length: 255

published"PUBLISHED" | "DRAFT" | "ALL"

Which modules to return. Members who can't edit modules only ever see published ones

default: "ALL"

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of training modules per page, at most 100

default: 50 · min: 1 · max: 100

sort"name" | "createdAt" | "updatedAt"

Field to sort training modules by. Defaults to `name`

default: "name"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
modulesTrainingModule[]

Modules on this page that the caller may see

totalinteger

Total number of training modules across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a training module

GET
POST
/api/v1/org/{organisationUUID}/training-modules/get

Returns a training module with its steps in order, and which of them the caller has done.

Necessita da permissão TRAINING_MODULES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the module

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

stepsTrainingStep[]

Its steps, in order. Unpublished ones only for editors

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Create a training module

POST
Simulação
/api/v1/org/{organisationUUID}/training-modules/create

Creates a training module, as a draft unless published is set. HYBRID and IN_PERSON modules must award a certification type, because signing someone off records one. Add its steps with `training-steps.create`.

Necessita da permissão TRAINING_MODULES.CREATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

What it is called, such as 'Rigging moving heads safely'

min length: 1 · max length: 200

descriptionstring

One or two sentences on what it is about

max length: 5000

learningObjectivesstring

What members will be able to do once they finish, in Markdown

max length: 5000

iconstring

Icon reference: `tabler:<name>` or `custom:<uuid>`

max length: 100

type
Obrigatório
"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it straight away. Defaults to a draft

default: false

certificationTypeUUIDstring

UUID of the certification type it awards. Needed for HYBRID and IN_PERSON modules

min length: 1 · max length: 64

roleUUIDsstring[]

Roles that may see it. Empty for every member

default: [] · max items: 100

Resposta

Devolve TrainingModule sob data.

Erros

Bem como os erros comuns:

CERTIFICATION_TYPE_NOT_FOUND 422

CERTIFICATION_TYPE_REQUIRED 422

ROLE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","type":"string"}'

Update a training module

POST
Simulação
/api/v1/org/{organisationUUID}/training-modules/update

Changes a training module's details, type, what it awards, who can see it, or publishes it. Fields that are omitted are left unchanged.

Necessita da permissão TRAINING_MODULES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the module to change

min length: 1 · max length: 64

namestring

New name

min length: 1 · max length: 200

descriptionstring | null

New description, or null to clear it

learningObjectivesstring | null

New learning objectives, or null to clear them

iconstring | null

New icon, or null to clear it

type"ONLINE" | "HYBRID" | "IN_PERSON"

New type: ONLINE, HYBRID or IN_PERSON. Omit to leave unchanged

publishedboolean

Publish it, or make it a draft

certificationTypeUUIDstring | null

UUID of the certification type it awards, or null for none (only for ONLINE modules)

roleUUIDsstring[]

Roles that may see it, replacing the current ones. Empty for every member

max items: 100

Resposta

Devolve TrainingModule sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CERTIFICATION_TYPE_NOT_FOUND 422

CERTIFICATION_TYPE_REQUIRED 422

ROLE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a training module

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/training-modules/delete

Soft-deletes a training module and its steps. Certifications it awarded are kept.

Necessita da permissão TRAINING_MODULES.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the module to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the module deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

See members' progress through a module

GET
POST
/api/v1/org/{organisationUUID}/training-modules/progress

Returns every member who has started a training module: how many steps they have done, when they finished, whether they hold its certification, and whether they wait to be signed off.

Necessita da permissão TRAINING_MODULES.VIEW_PROGRESS.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the module

min length: 1 · max length: 64

filter"ALL" | "IN_PROGRESS" | "READY_FOR_SIGN_OFF" | "COMPLETED"

ALL, IN_PROGRESS (started, not finished), READY_FOR_SIGN_OFF (finished a HYBRID module, not yet certified) or COMPLETED

default: "ALL"

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of members per page, at most 100

default: 50 · min: 1 · max: 100

sort"updatedAt" | "startedAt"

Field to sort members by. Defaults to `updatedAt`

default: "updatedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
stepCountinteger

Published steps in the module

membersobject[]

Members who have started the module, on this page

members[].memberobject

Who

members[].member.uuidstring

members[].member.namestring

members[].startedAtstring (date-time)

When they started

members[].updatedAtstring (date-time)

When they last did a step

members[].completedAtstring (date-time) | null

When they finished every step, or null

members[].completedStepsinteger

Published steps they have done

members[].certificationobject | null

Their best certification of the type the module awards, or null

members[].readyForSignOffboolean

HYBRID modules: finished, and not yet holding the certification

totalinteger

Total number of members across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/progress" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Sign a member off on a module

POST
Simulação
/api/v1/org/{organisationUUID}/training-modules/sign-off

Records that a member has shown they can do what a training module teaches, with a comment, by giving them a verified certification of the type it awards. Used for HYBRID and IN_PERSON modules, and to certify someone without the steps.

Necessita da permissão MEMBER_CERTIFICATIONS.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the module

min length: 1 · max length: 64

memberUUID
Obrigatório
string

UUID of the member to sign off

min length: 1 · max length: 64

comment
Obrigatório
string

How they showed they can do it, such as 'Rigged four heads on the truss with me'

min length: 1 · max length: 2000

gainedOnstring (date)

The day they were signed off, YYYY-MM-DD. Defaults to today

Resposta

Devolve MemberCertification sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

MEMBER_NOT_FOUND 422

NO_CERTIFICATION_TYPE 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-modules/sign-off" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","memberUUID":"string","comment":"string"}'

Training steps

Add a step to a training module

POST
Simulação
/api/v1/org/{organisationUUID}/training-steps/create

Adds a text or YouTube video step to the end of a training module, which can hold 100 steps.

Necessita da permissão TRAINING_MODULES.UPDATE.

Entrada

CampoTipoDescrição
moduleUUID
Obrigatório
string

UUID of the module to add the step to, at the end

min length: 1 · max length: 64

name
Obrigatório
string

The step's title, such as 'Checking the safety bond'

min length: 1 · max length: 200

type
Obrigatório
"TEXT" | "VIDEO"

TEXT or VIDEO

contentstring

Markdown: the step's text, or for a video what shows under it. Images are `![name](file:<uuid>)`, files of the module

default: "" · max length: 50000

videostring

For a VIDEO step: the YouTube video's address or ID

max length: 500

estimatedMinutesinteger

Roughly how many minutes it takes

default: 0 · min: 0 · max: 1440

internalNotesstring

Notes only editors see

max length: 5000

publishedboolean

Whether members see it

default: true

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

stepsTrainingStep[]

Its steps, in order. Unpublished ones only for editors

Erros

Bem como os erros comuns:

NOT_FOUND 404

TOO_MANY_STEPS 422

VIDEO_REQUIRED 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-steps/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"moduleUUID":"string","name":"string","type":"string"}'

Update a training step

POST
Simulação
/api/v1/org/{organisationUUID}/training-steps/update

Changes a step's title, text, video, estimated time, editor notes, or whether members see it. Fields that are omitted are left unchanged.

Necessita da permissão TRAINING_MODULES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the step to change

min length: 1 · max length: 64

namestring

New title. Omit to leave unchanged

min length: 1 · max length: 200

type"TEXT" | "VIDEO"

New type: TEXT or VIDEO. Omit to leave unchanged

contentstring

New Markdown text. Omit to leave unchanged

max length: 50000

videostring | null

The YouTube video's address or ID, or null to clear it

estimatedMinutesinteger

New estimated minutes. Omit to leave unchanged

min: 0 · max: 1440

internalNotesstring | null

New notes only editors see, or null to clear them

publishedboolean

Whether members see it. Omit to leave unchanged

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

stepsTrainingStep[]

Its steps, in order. Unpublished ones only for editors

Erros

Bem como os erros comuns:

NOT_FOUND 404

VIDEO_REQUIRED 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-steps/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Move a training step

POST
Simulação
/api/v1/org/{organisationUUID}/training-steps/move

Moves a step one place earlier or later in its module.

Necessita da permissão TRAINING_MODULES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the step to move

min length: 1 · max length: 64

direction
Obrigatório
"UP" | "DOWN"

Earlier (UP) or later (DOWN)

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

stepsTrainingStep[]

Its steps, in order. Unpublished ones only for editors

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-steps/move" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","direction":"string"}'

Delete a training step

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/training-steps/delete

Soft-deletes a step. Members who did it keep their progress through the other steps.

Necessita da permissão TRAINING_MODULES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the step to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

stepsTrainingStep[]

Its steps, in order. Unpublished ones only for editors

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-steps/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Mark a training step done

POST
Simulação
/api/v1/org/{organisationUUID}/training-steps/complete

Records that the caller has done a published step of a module they can see. Finishing every step of an ONLINE module awards its certification; finishing a HYBRID module puts the caller on the list to be signed off.

Necessita da permissão TRAINING_MODULES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the step the caller has done

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
completedStepsinteger

Published steps the caller has done

stepCountinteger

Published steps in the module

completedAtstring (date-time) | null

When the caller finished every step, or null

awardedMemberCertification | null

The certification just awarded for finishing an ONLINE module, or null

readyForSignOffboolean

Whether the caller now waits to be signed off on a HYBRID module

Erros

Bem como os erros comuns:

NOT_FOUND 404

IN_PERSON 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/training-steps/complete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Finance settings

Get finance settings

GET
POST
/api/v1/org/{organisationUUID}/finance-settings/get

Returns how quotes, invoices and credit notes are numbered (prefix, next number and digits), the payment terms, how long quotes are valid, the default deposit, and the discount on what comes in a case.

Necessita da permissão ORGANISATIONS_SETTINGS.VIEW.

Entrada

Nenhum. Envie um objeto vazio.

Resposta

Devolve FinanceSettings sob data.

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/finance-settings/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Update finance settings

POST
Simulação
/api/v1/org/{organisationUUID}/finance-settings/update

Changes how quotes, invoices and credit notes are numbered, the payment terms, quote validity, the default deposit or the discount on what comes in a case. Fields that are omitted are left unchanged. A next number can't go back to one already used, and invoices and credit notes need different prefixes.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
invoicePrefixstring

Put before invoice numbers, such as 'INV-' for INV-0001. Deposit invoices share the sequence. Omit to leave unchanged

max length: 20

nextInvoiceNumberinteger

The number the next invoice gets. It can't go back to a number already used. Omit to leave unchanged

min: 1 · max: 999999999

creditNotePrefixstring

Put before credit note numbers, such as 'CN-' for CN-0001. Omit to leave unchanged

max length: 20

nextCreditNoteNumberinteger

The number the next credit note gets. It can't go back to a number already used. Omit to leave unchanged

min: 1 · max: 999999999

quotePrefixstring

Put before quote numbers, such as 'QUO-' for QUO-0001. Omit to leave unchanged

max length: 20

nextQuoteNumberinteger

The number the next quote gets. It can't go back to a number already used. Omit to leave unchanged

min: 1 · max: 999999999

numberDigitsinteger

How many digits numbers are padded to with leading zeros, such as 4 for 0001. Omit to leave unchanged

min: 1 · max: 10

paymentTermsDaysinteger

Days from issuing an invoice to when it's due, such as 30. 0 makes invoices due on issue. Omit to leave unchanged

min: 0 · max: 365

quoteValidDaysinteger

Days a quote is valid for after it's issued, such as 30. 0 for quotes with no expiry. Omit to leave unchanged

min: 0 · max: 365

depositBpinteger

The deposit a deposit invoice asks for by default, as a share of the project's total in basis points (2500 is 25%). 0 for none. Omit to leave unchanged

min: 0 · max: 10000

linkedDiscountBpinteger

The discount on assets that go out because they're in a case that was added to a project, in basis points (10000 is 100%, so they're free). Applies to assets added from now on, not those already on projects. Omit to leave unchanged

min: 0 · max: 10000

Resposta

Devolve FinanceSettings sob data.

Erros

Bem como os erros comuns:

NUMBER_USED 409

PREFIX_CLASH 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/finance-settings/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Project finance

Get a project's money

GET
POST
/api/v1/org/{organisationUUID}/project-finance/get

Returns a project's money, with its sub-projects: the total of what's on it, what's been invoiced and paid, what the client still owes, and damage deposits held.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project. Its sub-projects are included

min length: 1 · max length: 64

Resposta

Devolve ProjectFinance sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-finance/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Client finance

Get clients' money

GET
POST
/api/v1/org/{organisationUUID}/client-finance/list

Returns, for each client asked for, the total of their projects, what's been invoiced and paid, and what they still owe. A project's sub-projects count towards it. Lost and deleted projects, and those of a type without finance, are left out. Sub-clients' projects aren't included in their parent's.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
clientUUIDs
Obrigatório
string[]

UUIDs of the clients to total, such as a page of clients.list. At most 100

min items: 1 · max items: 100

Resposta

CampoTipoDescrição
currencystring

ISO 4217 currency code

clientsClientFinance[]

One entry for each client asked for that exists, in the order asked for

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-finance/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUIDs":[]}'

Client statements

Get a client's statement

GET
POST
/api/v1/org/{organisationUUID}/client-statements/get

Returns a client's statement: their issued invoices, deposit invoices and credit notes, and the payments and refunds on their projects, oldest first with a running balance of what they owe. Also returns what's still to pay on each unpaid invoice, and how much of it is overdue. Damage deposits held aren't on it, and nor is work not yet invoiced: client-finance.list has the total of their projects. A project's sub-projects count towards it. Sub-clients' projects don't, and nor do projects in trash.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
clientUUID
Obrigatório
string

UUID of the client, from clients.list

min length: 1 · max length: 64

fromstring (date-time)

Start of the statement, as an ISO 8601 date and time. Everything before it is added up into the opening balance. Omit to start from the first invoice

tostring (date-time)

End of the statement: only what's dated before this is on it. Omit for up to now

Resposta

Devolve ClientStatement sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/client-statements/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientUUID":"string"}'

Payment methods

List payment methods

GET
POST
/api/v1/org/{organisationUUID}/payment-methods/list

Returns the ways the organisation records money being paid, such as bank transfer, card or cash.

Necessita da permissão PAYMENTS.VIEW.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of payment methods per page, at most 100

default: 50 · min: 1 · max: 100

sort"position" | "name"

Field to sort payment methods by. Defaults to `position`

default: "position"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `asc`

default: "asc"

Resposta

CampoTipoDescrição
paymentMethodsPaymentMethod[]

Payment methods on this page, in the order asked for

totalinteger

Total number of payment methods across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payment-methods/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create a payment method

POST
Simulação
/api/v1/org/{organisationUUID}/payment-methods/create

Adds a payment method at the end of the list. A name already used by another method (ignoring case) is refused.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
name
Obrigatório
string

Display name, such as 'Bank transfer' or 'Card'

min length: 1 · max length: 100

Resposta

Devolve PaymentMethod sob data.

Erros

Bem como os erros comuns:

NAME_TAKEN 409

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payment-methods/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Rename a payment method

POST
Simulação
/api/v1/org/{organisationUUID}/payment-methods/update

Renames a payment method. Payments already recorded with it show the new name.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the payment method to change

min length: 1 · max length: 64

name
Obrigatório
string

Display name, such as 'Bank transfer' or 'Card'

min length: 1 · max length: 100

Resposta

Devolve PaymentMethod sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NAME_TAKEN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payment-methods/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","name":"string"}'

Delete a payment method

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/payment-methods/delete

Deletes a payment method, so it can't be chosen for new payments. Payments already recorded with it keep it.

Necessita da permissão ORGANISATIONS_SETTINGS.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the payment method to delete. Payments already recorded with it keep it

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the payment method that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payment-methods/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Payments

List payments

GET
POST
/api/v1/org/{organisationUUID}/payments/list

Returns the ledger: payments received, refunds and damage deposits, across the organisation, on one project and its sub-projects, or on one client's projects, newest first by default.

Necessita da permissão PAYMENTS.VIEW.

Entrada

CampoTipoDescrição
projectUUIDstring

Only payments on this project and its sub-projects. Omit for the whole organisation's ledger

min length: 1 · max length: 64

clientUUIDstring

Only payments on this client's projects and their sub-projects. Sub-clients' projects aren't included

min length: 1 · max length: 64

invoiceUUIDstring

Only payments of this invoice

min length: 1 · max length: 64

kinds("PAYMENT" | "REFUND" | "DEPOSIT_TAKEN" | "DEPOSIT_RETURNED" | "DEPOSIT_RETAINED")[]

Only these kinds. Omit for every kind

max items: 5

searchstring

Only payments whose reference or comment contains this text (case-insensitive), or whose amount in the smallest currency unit is this number

max length: 255

fromstring (date-time)

Only payments on or after this date and time

tostring (date-time)

Only payments before this date and time

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of payments per page, at most 100

default: 50 · min: 1 · max: 100

sort"date" | "amount" | "createdAt"

Field to sort payments by. Defaults to `date`

default: "date"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
paymentsPayment[]

Payments on this page, in the order asked for

totalinteger

Total number of payments across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

currencystring

ISO 4217 currency code of the amounts

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

INVOICE_NOT_FOUND 404

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payments/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a payment

GET
POST
/api/v1/org/{organisationUUID}/payments/get

Returns one payment, refund or deposit, with how many files (such as receipts) are attached to it.

Necessita da permissão PAYMENTS.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the payment

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
paymentPayment

The payment

currencystring

ISO 4217 currency code of the amount

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payments/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Record a payment

POST
Simulação
/api/v1/org/{organisationUUID}/payments/record

Records money paid on a project, optionally against one of its issued invoices: a payment received, a refund, a damage deposit taken, or a held deposit paid back. Money isn't taken here: this records what already happened.

Necessita da permissão PAYMENTS.RECORD.

Entrada

CampoTipoDescrição
projectUUIDstring

UUID of the project it was paid on. Omit when giving an invoice: its project is used

min length: 1 · max length: 64

invoiceUUIDstring

UUID of the issued invoice it pays or refunds. Only for PAYMENT and REFUND

min length: 1 · max length: 64

kind
Obrigatório
"PAYMENT" | "REFUND" | "DEPOSIT_TAKEN" | "DEPOSIT_RETURNED"

PAYMENT, REFUND, DEPOSIT_TAKEN or DEPOSIT_RETURNED. Keep part of a deposit with payments.retain-deposit

amount
Obrigatório
integer

How much, in the smallest currency unit (such as pence). Always positive: the kind says which way it went

min: 1 · max: 10000000000

datestring (date-time)

When the money was paid, as an ISO 8601 date and time. Omit for now

methodUUIDstring

UUID of how it was paid, from payment-methods.list. Omit if not known

min length: 1 · max length: 64

referencestring

A reference, such as the bank transfer's reference

max length: 200

commentstring

A note about the payment

max length: 1000

Resposta

Devolve Payment sob data.

Erros

Bem como os erros comuns:

INVOICE_NOT_FOUND 404

METHOD_NOT_FOUND 404

NOT_FOUND 404

DEPOSIT_EXCEEDED 409

FINANCE_OFF 409

INVOICE_NOT_ISSUED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payments/record" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"string","amount":1}'

Keep part of a deposit

POST
Simulação
/api/v1/org/{organisationUUID}/payments/retain-deposit

Keeps some of a damage deposit held on a project, such as for damage. Adds a charge to the project for the amount, and records the kept money as the payment for it.

Necessita da permissão PAYMENTS.RECORD.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project the deposit is held on

min length: 1 · max length: 64

amount
Obrigatório
integer

How much of the held deposit to keep, in the smallest currency unit

min: 1 · max: 10000000000

description
Obrigatório
string

What it's kept for, such as 'Damage to a moving head'. Becomes the charge line's description

min length: 1 · max length: 200

taxRateUUIDstring

UUID of the tax rate the charge is taxed at, with the tax included in the amount kept. Omit for no tax, which is usual for damage

min length: 1 · max length: 64

datestring (date-time)

When the money was paid, as an ISO 8601 date and time. Omit for now

methodUUIDstring

UUID of how it was paid, from payment-methods.list, usually the deposit's. Omit if not known

min length: 1 · max length: 64

commentstring

A note about the payment

max length: 1000

Resposta

CampoTipoDescrição
retainedPayment

The DEPOSIT_RETAINED entry

paymentPayment

The PAYMENT for the charge

chargeLineUUIDstring

UUID of the charge line it became

Erros

Bem como os erros comuns:

METHOD_NOT_FOUND 404

NOT_FOUND 404

TAX_RATE_NOT_FOUND 404

DEPOSIT_EXCEEDED 409

FINANCE_OFF 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payments/retain-deposit" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","amount":1,"description":"string"}'

Delete a payment

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/payments/delete

Deletes a payment recorded by mistake. A retained deposit and its payment go together, and the charge it became stays on the project to remove separately.

Necessita da permissão PAYMENTS.DELETE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the payment to delete. A retained deposit and its payment are deleted together; the charge stays on the project

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidsstring[]

UUIDs of the payments that were deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

DEPOSIT_EXCEEDED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/payments/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Invoices

List invoices

GET
POST
/api/v1/org/{organisationUUID}/invoices/list

Returns invoices, deposit invoices and credit notes, across the organisation, for one project and its sub-projects, or for one client's projects, with what's been paid on each. Newest first by default.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
projectUUIDstring

Only invoices for this project and its sub-projects. Omit for every project

min length: 1 · max length: 64

clientUUIDstring

Only invoices for this client's projects and their sub-projects. Sub-clients' projects aren't included

min length: 1 · max length: 64

kinds("INVOICE" | "DEPOSIT" | "CREDIT_NOTE")[]

Only these kinds. Omit for every kind

max items: 3

status"DRAFT" | "ISSUED"

Only drafts, or only issued. Omit for both

unpaidboolean

True for only issued invoices with something still to pay, which aren't credited

searchstring

Only invoices whose number or reference contains this text (case-insensitive)

max length: 255

fromstring (date-time)

Only invoices issued on or after this date and time

tostring (date-time)

Only invoices issued before this date and time

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of invoices per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "issuedAt" | "number" | "dueAt" | "gross"

Field to sort invoices by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
invoicesInvoice[]

Invoices on this page, in the order asked for

totalinteger

Total number of invoices across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

currencystring

ISO 4217 currency code of the amounts

Erros

Bem como os erros comuns:

CLIENT_NOT_FOUND 404

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an invoice

GET
POST
/api/v1/org/{organisationUUID}/invoices/get

Returns one invoice, deposit invoice or credit note with its lines, who it's made out to, its totals with tax by rate, and what's been paid.

Necessita da permissão INVOICES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the invoice

min length: 1 · max length: 64

Resposta

Devolve InvoiceDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Draft an invoice

POST
Simulação
/api/v1/org/{organisationUUID}/invoices/create-draft

Drafts an invoice for a project and its sub-projects. An INVOICE takes every charged line not yet on an invoice, lines that changed since they were invoiced as adjustments, and takes off deposit invoices already issued. A DEPOSIT asks for a share of the project's total, or a fixed amount, split across its tax rates. Drafts can be changed or deleted until they're issued.

Necessita da permissão INVOICES.CREATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project or sub-project to invoice. Its sub-projects are included

min length: 1 · max length: 64

kind"INVOICE" | "DEPOSIT"

INVOICE for everything on the project not yet invoiced, less deposits invoiced. DEPOSIT for a share of the project's total. Defaults to INVOICE

default: "INVOICE"

depositBpinteger

For DEPOSIT: the share of the project's total, in basis points (2500 is 25%). Omit for the organisation's default deposit, or give `depositAmount`

min: 1 · max: 10000

depositAmountinteger

For DEPOSIT: a fixed amount with tax, in the smallest currency unit, instead of a share

min: 1 · max: 10000000000

referencestring

The client's purchase order or reference

max length: 200

notesstring

Printed on the invoice. Omit for the project's invoice notes

max length: 5000

Resposta

Devolve InvoiceDetail sob data.

Erros

Bem como os erros comuns:

DEPOSIT_REQUIRED 400

NOT_FOUND 404

FINANCE_OFF 409

NOTHING_TO_INVOICE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/create-draft" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Change a draft invoice

POST
Simulação
/api/v1/org/{organisationUUID}/invoices/update-draft

Changes a draft invoice's reference, notes or due date, or builds its lines again from the project as it is now. Issued invoices never change.

Necessita da permissão INVOICES.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the draft invoice

min length: 1 · max length: 64

referencestring | null

The client's purchase order or reference, or null to clear it. Omit to leave unchanged

notesstring | null

Printed on the invoice, or null to clear it. Omit to leave unchanged

dueAtstring (date-time) | null

When it's due, or null to work it out from the payment terms when it's issued. Omit to leave unchanged

refreshboolean

True to build its lines again from the project as it is now, and update who it's made out to

Resposta

Devolve InvoiceDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_DRAFT 409

NOTHING_TO_INVOICE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/update-draft" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a draft invoice

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/invoices/delete-draft

Deletes a draft invoice, so its lines can go on another. Issued invoices are never deleted: cancel one with a credit note instead.

Necessita da permissão INVOICES.CREATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the draft invoice to delete

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the draft that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

NOT_DRAFT 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/delete-draft" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Issue an invoice

POST
Simulação
/api/v1/org/{organisationUUID}/invoices/issue

Issues a draft invoice: gives it the next invoice number, sets its due date from the payment terms if it has none, and copies who it's made out to. It can't be changed or deleted afterwards. The PDF is made separately, with documents.create.

Necessita da permissão INVOICES.ISSUE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the draft invoice to issue

min length: 1 · max length: 64

issuedAtstring (date-time)

The invoice date. Omit for now

Resposta

Devolve InvoiceDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

EMPTY 409

NOT_DRAFT 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/issue" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Cancel an invoice with a credit note

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/invoices/credit

Issues a credit note for an issued invoice, numbered from the credit note sequence. Without `lines` it cancels the whole invoice (less anything partial credit notes took off already). With `lines` it credits only those lines, or part of them, and the invoice stays live with less to pay. Either way, what's credited is free to go on a new invoice, so to give money off, lower the line on the project first and credit the same amount. Only invoices, not deposit invoices, can be partly credited. A deposit invoice already taken off a later invoice can't be credited until that invoice is.

Necessita da permissão INVOICES.CREDIT.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the issued invoice to credit

min length: 1 · max length: 64

linesobject[]

Credit only these lines, or part of them. Omit to cancel the whole invoice

max items: 500

lines[].lineUUID
Obrigatório
string

UUID of a LINE or ADJUSTMENT on the invoice

min length: 1 · max length: 64

lines[].amountinteger

How much of the line to credit before tax, in the smallest currency unit. Tax is worked out at the line's rate. Omit for all that's left of the line

min: 1

notesstring

Why it's cancelled, printed on the credit note, such as 'Raised in error'

max length: 5000

Resposta

Devolve InvoiceDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_CREDITED 409

DEPOSIT_DEDUCTED 409

IS_CREDIT_NOTE 409

NOT_ISSUED 409

NOT_PARTLY_CREDITABLE 409

LINE_NOT_FOUND 422

MORE_THAN_LEFT 422

NO_LINES 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/invoices/credit" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Quotes

List quotes

GET
POST
/api/v1/org/{organisationUUID}/quotes/list

Returns quotes issued, across the organisation or for one project and its sub-projects, with whether each was accepted. Newest first by default.

Necessita da permissão QUOTES.VIEW.

Entrada

CampoTipoDescrição
projectUUIDstring

Only quotes for this project and its sub-projects. Omit for every project

min length: 1 · max length: 64

status"ISSUED" | "ACCEPTED" | "DECLINED"

Only quotes with this status. Omit for all

searchstring

Only quotes whose number contains this text

max length: 255

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of quotes per page, at most 100

default: 50 · min: 1 · max: 100

sort"issuedAt" | "number" | "gross"

Field to sort quotes by. Defaults to `issuedAt`

default: "issuedAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
quotesQuote[]

Quotes on this page, in the order asked for

totalinteger

Total number of quotes across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/quotes/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a quote

GET
POST
/api/v1/org/{organisationUUID}/quotes/get

Returns one quote with its lines and totals as they were when it was issued, and whether the project has changed since.

Necessita da permissão QUOTES.VIEW.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the quote

min length: 1 · max length: 64

Resposta

Devolve QuoteDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/quotes/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Issue a quote

POST
Simulação
/api/v1/org/{organisationUUID}/quotes/issue

Freezes what's on a project and its sub-projects now as a numbered quote, the project's next version. Later changes to the project don't change it: issue another to quote again. The PDF is made separately, with documents.create.

Necessita da permissão QUOTES.ISSUE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project or sub-project to quote for. Its sub-projects are included

min length: 1 · max length: 64

validUntilstring (date-time) | null

When it stops being valid, or null for no expiry. Omit for the organisation's quote validity

notesstring

Printed on the quote. Omit for the project's invoice notes

max length: 5000

Resposta

Devolve QuoteDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

FINANCE_OFF 409

NOTHING_TO_QUOTE 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/quotes/issue" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Record the client's answer to a quote

POST
Simulação
/api/v1/org/{organisationUUID}/quotes/decide

Records that the client accepted or declined a quote, and who answered. Each quote is answered once. It doesn't change the project's status.

Necessita da permissão QUOTES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the quote

min length: 1 · max length: 64

decision
Obrigatório
"ACCEPTED" | "DECLINED"

ACCEPTED or DECLINED

decidedByNamestring

Who at the client accepted or declined it, such as 'Megan Price'. Omit if not known

max length: 200

decidedAtstring (date-time)

When they answered. Omit for now

Resposta

Devolve QuoteDetail sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_DECIDED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/quotes/decide" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string","decision":"string"}'

Get a quote's link for the client

POST
Simulação
/api/v1/org/{organisationUUID}/quotes/share

Returns the secret for a link the client can open without signing in, to see the quote and accept or decline it. Makes one the first time; after that it returns the same one until it's revoked. Only quotes still waiting for an answer can be shared.

Necessita da permissão QUOTES.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the quote

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
shareKeystring

The secret in the quote's link. The link is /{lang}/quote/{organisation URL}/{shareKey}. Anyone with it can see the quote and accept or decline it until it expires, is answered or a newer version is issued

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_DECIDED 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/quotes/share" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Project crew

List a project's crew

GET
POST
/api/v1/org/{organisationUUID}/project-crew/list

Returns the people on a project's crew, in order, each with their role. A member crewed on another live project at the same time has that project listed under clashes.

Necessita da permissão PROJECT_CREW.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
crewProjectCrewMember[]

The project's crew, in the project's order

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

List a member's crew roles

GET
POST
/api/v1/org/{organisationUUID}/project-crew/list-for-member

Returns the projects a member is on the crew of, with their role and the project's dates, newest first.

Necessita da permissão PROJECT_CREW.VIEW.

Entrada

CampoTipoDescrição
memberUUID
Obrigatório
string

UUID of the member

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of crew places per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt"

Field to sort crew places by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
crewProjectCrewMember[]

The member's places on projects' crews, newest first

totalinteger

Total number of crew places across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/list-for-member" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"memberUUID":"string"}'

Add someone to a project's crew

POST
Simulação
/api/v1/org/{organisationUUID}/project-crew/assign

Puts a member, or a named person who isn't a member (such as a freelancer), on a project's crew with a role, optionally charged as a service. The same person can hold several roles. A member already crewed elsewhere at the same time is still added: the clash is shown, not refused. The member is emailed.

Necessita da permissão PROJECT_CREW.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

memberUUIDstring

UUID of the member to add. Give this or personName

min length: 1 · max length: 64

personNamestring

Name of someone who isn't a member, such as a freelancer. Give this or memberUUID

min length: 1 · max length: 500

personEmailstring (email)

Email address of someone who isn't a member, so they're included when the crew is emailed. Only with personName

max length: 254

role
Obrigatório
string

Their role, for example 'Lighting designer'

min length: 1 · max length: 500

commentstring

A note about them

max length: 500

serviceUUIDstring

UUID of a service to charge them as, such as 'Lighting technician day'. Adds the service's line to the project, at its rate and cost. Needs permission to change the project's lines

min length: 1 · max length: 64

Resposta

Devolve ProjectCrewMember sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

PROJECT_NOT_FOUND 404

MEMBER_NOT_FOUND 422

SERVICE_NOT_FOUND 422

TOO_MANY 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/assign" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","role":"string"}'

Change a crew role

POST
Simulação
/api/v1/org/{organisationUUID}/project-crew/update

Changes someone's role, comment or the service they're charged as on a project's crew. A member whose role changes is emailed.

Necessita da permissão PROJECT_CREW.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the place on the crew

min length: 1 · max length: 64

rolestring

Their new role

min length: 1 · max length: 500

commentstring | null

A note about them

personEmailstring (email) | null

Email address of someone who isn't a member, or null to remove it. Ignored for a member, whose address comes from their account

serviceUUIDstring | null

UUID of a service to charge them as, or null to stop charging for them. Replaces the place's line on the project; a line an issued invoice charges for stays, to be credited. Needs permission to change the project's lines

Resposta

Devolve ProjectCrewMember sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

SERVICE_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Take someone off a project's crew

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/project-crew/remove

Removes a place from a project's crew, and the line charging for it, unless an issued invoice charges for that line. A member is emailed. If an accepted application made the place, the vacancy has a place free again.

Necessita da permissão PROJECT_CREW.UPDATE.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the place on the crew

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the place that was removed

lineKeptboolean

Whether the place's priced line stayed on the project: an issued invoice charges for it, or the caller can't change the project's lines

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/remove" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reorder a project's crew

POST
Simulação
/api/v1/org/{organisationUUID}/project-crew/reorder

Puts a project's crew list in a new order, such as the most senior first.

Necessita da permissão PROJECT_CREW.UPDATE.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

crewUUIDs
Obrigatório
string[]

Every place on the project's crew, in the new order. Places left out go after these, in their current order

min items: 1 · max items: 500

Resposta

CampoTipoDescrição
crewProjectCrewMember[]

The project's crew, in the project's order

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/reorder" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","crewUUIDs":[]}'

Get the crew's email addresses

GET
POST
/api/v1/org/{organisationUUID}/project-crew/emails

Returns the email address of every member on a project's crew, once each, to email them all. Named people who aren't members have none, so are listed by name.

Necessita da permissão PROJECT_CREW.EMAIL.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
membersobject[]

Crew who are members, once each

members[].uuidstring

UUID of the member

members[].namestring

The member's name

members[].emailstring

The member's email address

namedPeoplestring[]

Crew who aren't members and have no email address in AdamRMS

namedPeopleWithEmailobject[]

Crew who aren't members, with the email address given for them

namedPeopleWithEmail[].namestring

Their name

namedPeopleWithEmail[].emailstring

The email address given for them

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/project-crew/emails" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

Crew vacancies

List a project's vacancies

GET
POST
/api/v1/org/{organisationUUID}/crew-vacancies/list

Returns the crew vacancies on a project, open or closed, with how many places are filled. Vacancies limited to other roles are left out, except for recruiters.

Necessita da permissão PROJECT_CREW.VIEW.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
vacanciesCrewVacancy[]

The project's vacancies, oldest first

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string"}'

List vacancies you can apply for

GET
POST
/api/v1/org/{organisationUUID}/crew-vacancies/open

Returns the crew vacancies taking applications that the caller's role may see: open, before their deadline, with places left, on projects that aren't finished. Each says whether the caller has applied.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of vacancies per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt" | "name"

Field to sort vacancies by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
vacanciesCrewVacancy[]

Vacancies on this page, in the order asked for

totalinteger

Total number of vacancies across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/open" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get a vacancy

GET
POST
/api/v1/org/{organisationUUID}/crew-vacancies/get

Returns one crew vacancy, with its questions and the caller's own application if they have one.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the vacancy

min length: 1 · max length: 64

Resposta

Devolve CrewVacancy sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/get" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Advertise a crew vacancy

POST
Simulação
/api/v1/org/{organisationUUID}/crew-vacancies/create

Advertises a role on a project that members can apply for, with how many places there are, an optional deadline and questions. With first come, first served, applicants are accepted as they apply until the places are filled.

Necessita da permissão PROJECT_CREW.RECRUIT.

Entrada

CampoTipoDescrição
projectUUID
Obrigatório
string

UUID of the project

min length: 1 · max length: 64

name
Obrigatório
string

The role, for example 'Stage crew'

min length: 1 · max length: 500

crewRoleUUIDstring | null

UUID of the crew role it recruits for, whose description it shows alongside its own. Null for none

descriptionstring | null

What the role involves, in Markdown

personSpecificationstring | null

What you're looking for in an applicant, in Markdown

deadlinestring (date-time) | null

When applications close. Null for no deadline

slotsinteger

How many people are needed. Defaults to 1

min: 1 · max: 500

openboolean

Whether it's taking applications. Defaults to true

showPublicboolean

List it on the organisation's public site. Ignored while it's limited to roles. Defaults to false

firstComeFirstServedboolean

Accept applicants as they apply until every place is filled. Defaults to false

allowFileUploadsboolean

Let applicants attach files, such as a CV. Defaults to true

collectPhoneboolean

Ask applicants for a phone number. Defaults to false

privateToManagerboolean

Only the project's manager and the viewers listed see the applications. Defaults to true

questionsVacancyQuestion[]

Questions applicants answer

max items: 30

roleUUIDsstring[]

Only members of these roles see it. Empty for every member

max items: 100

viewerUUIDsstring[]

Members, besides the project's manager, who see the applications

max items: 100

certificationTypeUUIDsstring[]

Certifications applicants should hold. Applicants without them are flagged, not refused

max items: 30

Resposta

Devolve CrewVacancy sob data.

Erros

Bem como os erros comuns:

PROJECT_NOT_FOUND 404

CERTIFICATION_TYPE_NOT_FOUND 422

CREW_ROLE_NOT_FOUND 422

ROLE_NOT_FOUND 422

VIEWER_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/create" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectUUID":"string","name":"string"}'

Change a crew vacancy

POST
Simulação
/api/v1/org/{organisationUUID}/crew-vacancies/update

Changes a vacancy. Fields that are omitted are left unchanged. Set open to false to stop taking applications.

Necessita da permissão PROJECT_CREW.RECRUIT.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the vacancy

min length: 1 · max length: 64

namestring

The role, for example 'Stage crew'

min length: 1 · max length: 500

crewRoleUUIDstring | null

UUID of the crew role it recruits for, whose description it shows alongside its own. Null for none

descriptionstring | null

What the role involves, in Markdown

personSpecificationstring | null

What you're looking for in an applicant, in Markdown

deadlinestring (date-time) | null

When applications close. Null for no deadline

slotsinteger

How many people are needed. Defaults to 1

min: 1 · max: 500

openboolean

Whether it's taking applications. Defaults to true

showPublicboolean

List it on the organisation's public site. Ignored while it's limited to roles. Defaults to false

firstComeFirstServedboolean

Accept applicants as they apply until every place is filled. Defaults to false

allowFileUploadsboolean

Let applicants attach files, such as a CV. Defaults to true

collectPhoneboolean

Ask applicants for a phone number. Defaults to false

privateToManagerboolean

Only the project's manager and the viewers listed see the applications. Defaults to true

questionsVacancyQuestion[]

Questions applicants answer

max items: 30

roleUUIDsstring[]

Only members of these roles see it. Empty for every member

max items: 100

viewerUUIDsstring[]

Members, besides the project's manager, who see the applications

max items: 100

certificationTypeUUIDsstring[]

Certifications applicants should hold. Applicants without them are flagged, not refused

max items: 30

Resposta

Devolve CrewVacancy sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

CERTIFICATION_TYPE_NOT_FOUND 422

CREW_ROLE_NOT_FOUND 422

ROLE_NOT_FOUND 422

VIEWER_NOT_FOUND 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/update" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Delete a crew vacancy

POST
Destrutivo
Simulação
/api/v1/org/{organisationUUID}/crew-vacancies/delete

Deletes a vacancy and its applications. People already put on the crew from it stay there.

Necessita da permissão PROJECT_CREW.RECRUIT.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the vacancy

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
uuidstring

UUID of the vacancy that was deleted

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-vacancies/delete" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Crew applications

List a vacancy's applications

GET
POST
/api/v1/org/{organisationUUID}/crew-applications/list

Returns the applications for a vacancy, with each applicant's answers, files and whether they hold the certifications the vacancy asks for. Only the project's manager and the vacancy's listed viewers see them, unless the vacancy isn't private, when recruiters do too.

Necessita da permissão PROJECT_CREW.VIEW.

Entrada

CampoTipoDescrição
vacancyUUID
Obrigatório
string

UUID of the vacancy

min length: 1 · max length: 64

Resposta

CampoTipoDescrição
applicationsCrewApplication[]

The vacancy's applications, oldest first

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/list" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vacancyUUID":"string"}'

List your applications

GET
POST
/api/v1/org/{organisationUUID}/crew-applications/mine

Returns the caller's own applications for crew vacancies, newest first, with where each is up to.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
vacancyUUIDstring

Only applications for this vacancy

min length: 1 · max length: 64

cursorstring

`nextCursor` or `previousCursor` from an earlier call, for that page. Omit for the first page. A cursor continues the listing it came from, so `sort` and `direction` are ignored when one is given

max length: 1024

limitinteger

Number of applications per page, at most 100

default: 50 · min: 1 · max: 100

sort"createdAt"

Field to sort applications by. Defaults to `createdAt`

default: "createdAt"

direction"asc" | "desc"

Sort direction: `asc` or `desc`. Defaults to `desc`

default: "desc"

Resposta

CampoTipoDescrição
applicationsCrewApplication[]

The caller's applications on this page, newest first

totalinteger

Total number of applications across all pages

nextCursorstring | null

Pass as `cursor` for the next page. Null on the last page

previousCursorstring | null

Pass as `cursor` for the previous page. Null on the first page

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/mine" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Apply for a crew vacancy

POST
/api/v1/org/{organisationUUID}/crew-applications/apply

Applies for a vacancy as the caller, with their answers to its questions. On a first come, first served vacancy the application is accepted straight away and the caller joins the crew. The project's manager is emailed. Files, such as a CV, are attached afterwards with crew-applications.start-file-upload.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
vacancyUUID
Obrigatório
string

UUID of the vacancy

min length: 1 · max length: 64

phonestring | null

A phone number. Required when the vacancy asks for one

commentstring | null

Why you're applying, or anything else to say

answersobject[]

Answers to the vacancy's questions, by question. Answers to questions it doesn't ask are ignored

max items: 30

answers[].name
Obrigatório
string

The question

max length: 500

answers[].value
Obrigatório
string

The answer

max length: 10000

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_APPLIED 409

CLOSED 409

MEMBER_NOT_FOUND 422

PHONE_REQUIRED 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/apply" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vacancyUUID":"string"}'

Withdraw your application

POST
/api/v1/org/{organisationUUID}/crew-applications/withdraw

Withdraws one of the caller's own applications. If it had been accepted, the caller comes off the crew and the place is free again.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the application

min length: 1 · max length: 64

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

ALREADY_WITHDRAWN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/withdraw" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Accept an application

POST
Simulação
/api/v1/org/{organisationUUID}/crew-applications/accept

Accepts an application, putting the applicant on the project's crew with the vacancy's role. Refused once every place is filled. The applicant is emailed.

Necessita da permissão PROJECT_CREW.RECRUIT.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the application

min length: 1 · max length: 64

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

FULL 409

UNCHANGED 409

WITHDRAWN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/accept" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Reject an application

POST
Simulação
/api/v1/org/{organisationUUID}/crew-applications/reject

Rejects an application. If it had been accepted, the applicant comes off the crew. The applicant is emailed.

Necessita da permissão PROJECT_CREW.RECRUIT.

Entrada

CampoTipoDescrição
uuid
Obrigatório
string

UUID of the application

min length: 1 · max length: 64

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

PLAN_LIMIT_REACHED 402

NOT_FOUND 404

FULL 409

UNCHANGED 409

WITHDRAWN 409

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/reject" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"string"}'

Start attaching a file to your application

POST
/api/v1/org/{organisationUUID}/crew-applications/start-file-upload

Returns a short-lived link to PUT a file to, such as a CV, for one of the caller's own applications on a vacancy that takes files. Finish with crew-applications.finish-file-upload.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
applicationUUID
Obrigatório
string

UUID of the caller's own application

min length: 1 · max length: 64

fileName
Obrigatório
string

The file's name

min length: 1 · max length: 255

contentType
Obrigatório
"application/pdf" | "image/jpeg" | "image/png" | "image/webp" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document"

The file's type: a PDF, an image or a Word document

sizeBytes
Obrigatório
integer

The file's size in bytes, up to 25 MB

min: 1 · max: 26214400

Resposta

CampoTipoDescrição
uploadTokenstring

Pass to finish-file-upload

uploadUrlstring

Where to PUT the file's bytes

expiresAtstring

When the upload link stops working

Erros

Bem como os erros comuns:

NOT_ALLOWED 403

NOT_FOUND 404

FILE_TOO_LARGE 422

PLAN_LIMIT_REACHED 422

TOO_MANY_FILES 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/start-file-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"applicationUUID":"string","fileName":"string","contentType":"string","sizeBytes":1}'

Finish attaching a file

POST
/api/v1/org/{organisationUUID}/crew-applications/finish-file-upload

Attaches the uploaded file to the application.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
uploadToken
Obrigatório
string

The token start-file-upload returned

min length: 1 · max length: 200

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

NOT_ALLOWED 403

NOT_FOUND 404

UPLOAD_NOT_FOUND 404

UPLOAD_INCOMPLETE 409

PLAN_LIMIT_REACHED 422

TOO_MANY_FILES 422

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/finish-file-upload" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uploadToken":"string"}'

Remove a file from your application

POST
Simulação
/api/v1/org/{organisationUUID}/crew-applications/remove-file

Takes a file off one of the caller's own applications and moves it to the trash.

Necessita da permissão PROJECT_CREW.APPLY.

Entrada

CampoTipoDescrição
fileUUID
Obrigatório
string

UUID of the file to remove

min length: 1 · max length: 64

Resposta

Devolve CrewApplication sob data.

Erros

Bem como os erros comuns:

NOT_FOUND 404

Exemplo

curl -X POST "https://adam-rms.com/api/v1/org/$ORGANISATION_UUID/crew-applications/remove-file" \
  -H "Authorization: Bearer $ADAMRMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileUUID":"string"}'

Modelos

Accessories

An asset type's accessories: the other asset types that go out with it, such as the clamp, safety bond and colour frame with a lantern

CampoTipoDescrição
assetTypeUUIDstring

UUID of the asset type

accessoriesAccessory[]

The asset types that go out with this one, in order. Empty if it has none. Deleted asset types are left out

accessoryOfobject[]

The asset types this one is an accessory of, by name

accessoryOf[].assetTypeUUIDstring

UUID of the asset type

accessoryOf[].assetTypeNamestring

Name of the asset type

Accessory

One accessory of an asset type

CampoTipoDescrição
assetTypeUUIDstring

UUID of the accessory's asset type

assetTypeNamestring

Name of the accessory's asset type

tracking"INDIVIDUAL" | "BULK"

Whether the accessory is tracked as individual units or in bulk lots

thumbnailUUIDstring | null

The accessory type's main thumbnail, or null

hasAccessoriesboolean

True if the accessory has accessories of its own

quantityinteger

How many of the accessory go out with one of the asset type

mode"MANDATORY" | "DEFAULT" | "OPTIONAL"

How the accessory goes out with the asset type: MANDATORY (always, and it can't be left out), DEFAULT (unless it is taken out of the booking) or OPTIONAL (only if it is added, as an extra)

App

An App: code the organisation runs in the platform

CampoTipoDescrição
uuidstring

Unique identifier of the App

keystring

Stable identifier, e.g. `xero-sync`

namestring

Display name

descriptionstring | null

What the App does

listingUUIDstring | null

The marketplace listing the App was added from, or null for the organisation's own App. An App from the marketplace gets new versions only from there

latestVersionobject | null

The newest version, or null if none has been created

installationAppInstallation | null

The installation, or null if the App is not installed

createdAtstring (date-time)

When the App was created

updatedAtstring (date-time)

When the App last changed

AppDetail

An App with all its versions

CampoTipoDescrição
uuidstring

Unique identifier of the App

keystring

Stable identifier, e.g. `xero-sync`

namestring

Display name

descriptionstring | null

What the App does

listingUUIDstring | null

The marketplace listing the App was added from, or null for the organisation's own App. An App from the marketplace gets new versions only from there

latestVersionobject | null

The newest version, or null if none has been created

installationAppInstallation | null

The installation, or null if the App is not installed

createdAtstring (date-time)

When the App was created

updatedAtstring (date-time)

When the App last changed

versionsAppVersionSummary[]

Every version, newest first

submissionsAppSubmission[]

Versions submitted to the marketplace, newest first. Empty if the App has never been published

AppInstallation

An App installed in the organisation

CampoTipoDescrição
uuidstring

Unique identifier of the installation

appUUIDstring

UUID of the installed App

versionUUIDstring

UUID of the version it runs

versionstring

Label of the version it runs

botUserUuidstring

UUID of the installation's bot member, which the audit trail records as the actor for everything the App does

approvedobject

What an administrator approved for the installation

approved.permissionsstring[]

Permissions the bot holds

approved.functionsstring[]

Functions the App may call

approved.egressstring[]

Hosts the App may fetch

approved.hooksobject[]

Hooks the App reacts to

approved.hooks[].onstring

Function key, or `<function>:<point>`, it hooks

approved.hooks[].phase"before" | "after"

When the handler runs

approved.hooks[].handlerstring

The handler it runs

approved.hooks[].onFailure"reject" | "allow"

For before hooks: what happens to the call when the handler fails

approved.webhooksobject[]

Webhooks the App can be triggered by

approved.webhooks[].namestring

Name of the webhook, unique in the manifest, e.g. `stripe`. It is the last part of its URL

approved.webhooks[].handlerstring

Name of the exported function to run

min length: 1 · max length: 100

approved.webhooks[].verifyany

How the platform checks each request came from the service, before any App code runs. Requests that fail are answered 401

approved.webhooks[].mode"async" | "sync"

`async`: the request is answered 202 at once and the handler runs in the background. `sync`: the handler runs in the request, within 5 seconds, and returns the response as `{ status, headers, body }` (only `content-type` and `x-` headers are sent; a string body is sent as-is, anything else as JSON), for services such as Slack that need a computed reply

default: "async"

approved.webhooks[].deliveryIdHeaderstring

A header naming each delivery, e.g. `x-github-delivery`. A delivery that comes again is not run again

approved.webhooks[].urlstring

The URL to give the service, which it POSTs to

approved.schedulesobject[]

Handlers the App runs on a timer

approved.schedules[].handlerstring

Name of the exported function to run

min length: 1 · max length: 100

approved.schedules[].everyMinutesinteger

How often to run it, in minutes: 5 to 10080 (a week). The first run is one interval after installing

min: 5 · max: 10080

approved.schedules[].nextRunAtstring (date-time)

When it next runs

approved.uiobject[]

Panels the App adds to pages

approved.ui[].slot"asset.panel" | "client.panel" | "project-finance.panel"

Where the panel appears: `asset.panel`, A panel on each asset's page. The event's `record.uuid` is the asset's UUID; `client.panel`, A panel on each client's page. The event's `record.uuid` is the client's UUID; `project-finance.panel`, A panel on each project's Finance tab, beside its quotes, invoices and payments. The event's `record.uuid` is the project's UUID. At most one panel per slot

approved.ui[].titlestring

Heading shown above the panel

min length: 1 · max length: 60

approved.ui[].handlerstring

The handler that returns the panel, called with `{ id, type: "ui-render", slot, record: { uuid }, actor: { userUuid } }`. It returns a component (see AppUiNode), or null to show nothing. It has 5 seconds and can only call functions that read

min length: 1 · max length: 100

approved.ui[].actionsstring[]

Handlers the panel's buttons and forms may run, each called with `{ id, type: "ui-action", slot, record: { uuid }, action, input, values, actor: { userUuid } }`, where `input` is the button's `input` and `values` the form's values. It has 15 seconds, may return `{ message: "..." }` to show the member, and the panel is shown again afterwards

default: [] · max items: 20

approved.ui[].permission"AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH"

A permission the viewer needs, as well as the slot's own, to see the panel and use its buttons and forms

approved.providesobject[]

Organisation functions the App adds

approved.provides[].namestring

Name of the function, unique in the manifest, e.g. `sync-now`. Its key is `app.<App key>.<name>`, which is also its HTTP path and how AdamRMS AI calls it. Renaming it breaks its callers

approved.provides[].summarystring

One line saying what it does, shown in AdamRMS AI and to people approving an AI's request

min length: 1 · max length: 200

approved.provides[].descriptionstring

A fuller explanation, for AdamRMS AI and API users

max length: 2000

approved.provides[].kind"read" | "write" | "destructive"

`read`: changes nothing, and its handler can only call functions that read. `write`: creates or changes data. `destructive`: deletes data or is hard to undo, which is pointed out to anyone approving an AI's request to call it

approved.provides[].handlerstring

The exported handler that does it, called with `{ id, type: "function", function, input, actor: { userUuid } }`, where `input` has been checked against `input`. What it returns is the function's result. It has 15 seconds, and a thrown error is returned to the caller as APP_FAILED with its message

min length: 1 · max length: 100

approved.provides[].inputobject

JSON Schema of the input: `{ type: "object", properties: { ... }, required: [...] }`, where every property has a `description`. Properties not listed are dropped

default: {"type":"object","properties":{}}

approved.provides[].outputobject

JSON Schema of what it returns. If the handler returns something else, the call fails. Without one, any JSON is returned

approved.provides[].permission"AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH"

The permission a caller needs, organisation-wide, to call it, e.g. `CLIENTS.VIEW`. The handler itself runs as the App's bot member, with the App's own permissions

approved.provides[].keystring

The function's key, e.g. `app.xero-sync.sync-now`: its HTTP path with dots as slashes

settingsobject

The installation's setting values

secretsobject[]

The secrets the version declares. Values are write-only and never returned

secrets[].namestring

Secret name

secrets[].isSetboolean

Whether a value has been set

secrets[].updatedAtstring (date-time) | null

When it was last set, or null if never

installedByUserUuidstring

UUID of the member who installed it

hookOrderinteger

Where its before hooks run among other Apps' on the same function: lower first, then the earliest installed

pausedAtstring (date-time) | null

When it was paused, after its hook, webhook and schedule runs failed too many times in a row, or null if it is running. While paused those triggers do not run. Resume it with apps.resume

pausedReasonstring | null

Why it was paused, or null

createdAtstring (date-time)

When it was installed

updatedAtstring (date-time)

When it last changed

AppListing

An App in the marketplace

CampoTipoDescrição
uuidstring

Unique identifier of the listing

keystring

The App's stable identifier

namestring

Display name

descriptionstring | null

What the App does

publisherstring

Name of the organisation publishing it

latestVersionobject

The newest version listed

latestVersion.uuidstring

UUID of the newest listed version

latestVersion.versionstring

Its label

appUUIDstring | null

UUID of the App this organisation added from the listing, or null if it has not added it

createdAtstring (date-time)

When it was first published

AppListingDetail

An App in the marketplace, with its listed versions

CampoTipoDescrição
uuidstring

Unique identifier of the listing

keystring

The App's stable identifier

namestring

Display name

descriptionstring | null

What the App does

publisherstring

Name of the organisation publishing it

latestVersionobject

The newest version listed

latestVersion.uuidstring

UUID of the newest listed version

latestVersion.versionstring

Its label

appUUIDstring | null

UUID of the App this organisation added from the listing, or null if it has not added it

createdAtstring (date-time)

When it was first published

versionsobject[]

Every listed version, newest first, with what it asks for. Installing one shows an administrator exactly this

versions[].uuidstring

UUID of the listed version

versions[].versionstring

Its label

versions[].manifestAppManifest

versions[].handlersstring[]

Functions the code exports

versions[].codeHashstring

SHA-256 of the code, hex

versions[].listedAtstring (date-time)

When it was approved

AppManifest

What an App version asks to be allowed to do. Installing it shows an administrator exactly this to approve

CampoTipoDescrição
permissions("AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH")[]

Permissions the App's bot member holds once installed. Each function the App calls needs its permission here

default: [] · max items: 100

functionsstring[]

Organisation function keys the App may call, e.g. `clients.list`. Every `adamrms.*` call in the code must be listed

default: [] · max items: 200

egressstring[]

Hosts the App may fetch over HTTPS. Requests to anything else are refused

default: [] · max items: 20

secretsstring[]

Secrets an administrator sets on the installation. The code never sees them: it writes `{{secret.NAME}}` in a request's URL, headers or body and the platform fills it in on the way out

default: [] · max items: 20

settingsobject

Settings an administrator fills in on the installation, by name. The code reads them as `ctx.settings.<name>`

default: {}

hooksany[]

Handlers to run when organisation functions are called. An `after` hook gets `{ id, type: "after", function, input, output, actor, occurredAt }` once the call has succeeded: `input` is what the function was called with and `output` what it returned, exactly as the HTTP API documents them. A `before` hook gets `{ id, type: "before", function, point, input, payload, actor, occurredAt }` before the call takes effect, and returns nothing to let it through, `{ reject: "why" }` to refuse it, or `{ change: { ... } }` to change fields of the input (or, at a hook point, of its payload). Hooks do not fire for the App's own calls

default: [] · max items: 50

webhooksobject[]

Handlers third-party services can trigger by POSTing to the installation's URL for each, `/api/v1/apps/webhooks/{organisationUUID}/{installationUUID}/{name}`. Each gets an event `{ id, type: "webhook", webhook, method, headers, query, body, receivedAt }`, where `body` is the raw request body as text and `headers` have lower case names

default: [] · max items: 20

webhooks[].namestring

Name of the webhook, unique in the manifest, e.g. `stripe`. It is the last part of its URL

webhooks[].handlerstring

Name of the exported function to run

min length: 1 · max length: 100

webhooks[].verifyany

How the platform checks each request came from the service, before any App code runs. Requests that fail are answered 401

webhooks[].mode"async" | "sync"

`async`: the request is answered 202 at once and the handler runs in the background. `sync`: the handler runs in the request, within 5 seconds, and returns the response as `{ status, headers, body }` (only `content-type` and `x-` headers are sent; a string body is sent as-is, anything else as JSON), for services such as Slack that need a computed reply

default: "async"

webhooks[].deliveryIdHeaderstring

A header naming each delivery, e.g. `x-github-delivery`. A delivery that comes again is not run again

schedulesobject[]

Handlers to run on a timer, at most one schedule per handler. Each gets an event `{ id, type: "schedule", everyMinutes, scheduledFor, occurredAt }`. A run missed while the App was paused is skipped, not caught up

default: [] · max items: 20

schedules[].handlerstring

Name of the exported function to run

min length: 1 · max length: 100

schedules[].everyMinutesinteger

How often to run it, in minutes: 5 to 10080 (a week). The first run is one interval after installing

min: 5 · max: 10080

uiobject[]

Panels the App adds to pages. Their handlers return components the platform renders, never HTML or script. Anyone who can see the page (and holds the panel's `permission`, if it names one) sees the panel and can use its buttons and forms, which run as the App's bot member

default: [] · max items: 10

ui[].slot"asset.panel" | "client.panel" | "project-finance.panel"

Where the panel appears: `asset.panel`, A panel on each asset's page. The event's `record.uuid` is the asset's UUID; `client.panel`, A panel on each client's page. The event's `record.uuid` is the client's UUID; `project-finance.panel`, A panel on each project's Finance tab, beside its quotes, invoices and payments. The event's `record.uuid` is the project's UUID. At most one panel per slot

ui[].titlestring

Heading shown above the panel

min length: 1 · max length: 60

ui[].handlerstring

The handler that returns the panel, called with `{ id, type: "ui-render", slot, record: { uuid }, actor: { userUuid } }`. It returns a component (see AppUiNode), or null to show nothing. It has 5 seconds and can only call functions that read

min length: 1 · max length: 100

ui[].actionsstring[]

Handlers the panel's buttons and forms may run, each called with `{ id, type: "ui-action", slot, record: { uuid }, action, input, values, actor: { userUuid } }`, where `input` is the button's `input` and `values` the form's values. It has 15 seconds, may return `{ message: "..." }` to show the member, and the panel is shown again afterwards

default: [] · max items: 20

ui[].permission"AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH"

A permission the viewer needs, as well as the slot's own, to see the panel and use its buttons and forms

providesobject[]

Organisation functions the App adds, each `app.<App key>.<name>`. Once installed they can be called like built-in functions: through the HTTP API, by AdamRMS AI, and from the App's panels, by anyone holding the function's `permission`. They are not in the OpenAPI document, since each organisation's differ. Other Apps cannot call them

default: [] · max items: 50

provides[].namestring

Name of the function, unique in the manifest, e.g. `sync-now`. Its key is `app.<App key>.<name>`, which is also its HTTP path and how AdamRMS AI calls it. Renaming it breaks its callers

provides[].summarystring

One line saying what it does, shown in AdamRMS AI and to people approving an AI's request

min length: 1 · max length: 200

provides[].descriptionstring

A fuller explanation, for AdamRMS AI and API users

max length: 2000

provides[].kind"read" | "write" | "destructive"

`read`: changes nothing, and its handler can only call functions that read. `write`: creates or changes data. `destructive`: deletes data or is hard to undo, which is pointed out to anyone approving an AI's request to call it

provides[].handlerstring

The exported handler that does it, called with `{ id, type: "function", function, input, actor: { userUuid } }`, where `input` has been checked against `input`. What it returns is the function's result. It has 15 seconds, and a thrown error is returned to the caller as APP_FAILED with its message

min length: 1 · max length: 100

provides[].inputobject

JSON Schema of the input: `{ type: "object", properties: { ... }, required: [...] }`, where every property has a `description`. Properties not listed are dropped

default: {"type":"object","properties":{}}

provides[].outputobject

JSON Schema of what it returns. If the handler returns something else, the call fails. Without one, any JSON is returned

provides[].permission"AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH"

The permission a caller needs, organisation-wide, to call it, e.g. `CLIENTS.VIEW`. The handler itself runs as the App's bot member, with the App's own permissions

AppRun

One run of an App's handler, with its input, output and log

CampoTipoDescrição
uuidstring

Unique identifier of the run

installationUUIDstring

UUID of the installation

versionUUIDstring

UUID of the version that ran

versionstring

Label of the version that ran

handlerstring

The handler that ran

trigger"MANUAL" | "HOOK" | "WEBHOOK" | "SCHEDULE" | "UI" | "FUNCTION"

What started it. `MANUAL`: a member ran it by hand. `HOOK`: an organisation function it hooks finished. `WEBHOOK`: a service called one of its webhooks. `SCHEDULE`: one of its schedules came round. `UI`: a member opened a page showing one of its panels, or used a button or form in one. `FUNCTION`: someone called one of the functions it adds

triggeredByUserUuidstring | null

UUID of the member who started it, for hooks whoever called the function, and null for webhooks and schedules

eventIdstring | null

For hook, webhook and schedule runs, the event's id, also given to the handler as `event.id`. Null for manual runs

eventFunctionstring | null

For hook runs, the function whose call fired it. Null for manual runs

hookPhase"before" | "after" | null

For hook runs, whether it checked the call before it took effect or reacted after it finished. Null for other runs

status"RUNNING" | "COMPLETED" | "FAILED"

Where the run is

errorstring | null

Why it failed, or null if it did not

functionCallsinteger

How many organisation functions it called

requestCountinteger

How many outbound requests it made or tried to make

createdAtstring (date-time)

When it started

finishedAtstring (date-time) | null

When it finished, or null while running

inputany

The event the handler was given

resultany

What the handler returned

logsstring[]

Console output, in order

requestsobject[]

Outbound requests, in order. Bodies are never recorded, nor secrets

requests[].methodstring

HTTP method

requests[].hoststring

Host the request was for

requests[].statusinteger | null

Response status, or null if it was refused or failed

requests[].durationMsnumber

How long it took

requests[].blockedstring | null

Why the platform refused it, or null if it was sent

AppRunSummary

One run of an App's handler

CampoTipoDescrição
uuidstring

Unique identifier of the run

installationUUIDstring

UUID of the installation

versionUUIDstring

UUID of the version that ran

versionstring

Label of the version that ran

handlerstring

The handler that ran

trigger"MANUAL" | "HOOK" | "WEBHOOK" | "SCHEDULE" | "UI" | "FUNCTION"

What started it. `MANUAL`: a member ran it by hand. `HOOK`: an organisation function it hooks finished. `WEBHOOK`: a service called one of its webhooks. `SCHEDULE`: one of its schedules came round. `UI`: a member opened a page showing one of its panels, or used a button or form in one. `FUNCTION`: someone called one of the functions it adds

triggeredByUserUuidstring | null

UUID of the member who started it, for hooks whoever called the function, and null for webhooks and schedules

eventIdstring | null

For hook, webhook and schedule runs, the event's id, also given to the handler as `event.id`. Null for manual runs

eventFunctionstring | null

For hook runs, the function whose call fired it. Null for manual runs

hookPhase"before" | "after" | null

For hook runs, whether it checked the call before it took effect or reacted after it finished. Null for other runs

status"RUNNING" | "COMPLETED" | "FAILED"

Where the run is

errorstring | null

Why it failed, or null if it did not

functionCallsinteger

How many organisation functions it called

requestCountinteger

How many outbound requests it made or tried to make

createdAtstring (date-time)

When it started

finishedAtstring (date-time) | null

When it finished, or null while running

AppSubmission

A version of an App submitted to the marketplace

CampoTipoDescrição
uuidstring

Unique identifier of the submission

listingUUIDstring

UUID of the App's marketplace listing

versionUUIDstring

UUID of the version submitted

versionstring

Label of the version submitted

status"PENDING" | "APPROVED" | "REJECTED"

`PENDING`: waiting for AdamRMS to review it. `APPROVED`: listed in the marketplace. `REJECTED`: refused at review, or taken down since

reviewNotesstring | null

What the reviewer said, or null

submittedAtstring (date-time)

When it was submitted

reviewedAtstring (date-time) | null

When it was last reviewed, or null while pending

AppUiNode

CampoTipoDescrição

AppUiPanel

One App's panel on a page

CampoTipoDescrição
installationUUIDstring

UUID of the installation the panel comes from

appNamestring

Name of the App

titlestring

Heading of the panel

treeAppUiNode | null

The panel's components, or null if it failed

errorstring | null

Why the panel could not be shown, or null

runUUIDstring

UUID of the run that rendered it

AppVersion

An immutable version of an App, with its code

CampoTipoDescrição
uuidstring

Unique identifier of the version

versionstring

The author's label for it, e.g. `1.2.0`

manifestAppManifest

handlersstring[]

Functions the code exports, which can be run

codeHashstring

SHA-256 of the code, hex

apiVersioninteger

Version of the function API the App was written against

createdByUserUuidstring | null

UUID of the member who created it

createdAtstring (date-time)

When it was created

appUUIDstring

UUID of the App

codestring

The App's ES module

AppVersionSummary

An immutable version of an App

CampoTipoDescrição
uuidstring

Unique identifier of the version

versionstring

The author's label for it, e.g. `1.2.0`

manifestAppManifest

handlersstring[]

Functions the code exports, which can be run

codeHashstring

SHA-256 of the code, hex

apiVersioninteger

Version of the function API the App was written against

createdByUserUuidstring | null

UUID of the member who created it

createdAtstring (date-time)

When it was created

Asset

An asset: one individually tracked unit, or one bulk lot

CampoTipoDescrição
uuidstring

Unique identifier of the asset

primaryIDstring

The asset's primary asset ID

identifiersAssetIdentifier[]

Every live asset ID of the asset, primary first

assetTypeUUIDstring

UUID of the asset type

assetTypeNamestring

Name of the asset type

assetTypeThumbnailUUIDstring | null

UUID of the asset type's thumbnail, or null if it has none. The image is at /{locale}/org/{organisationSlug}/thumbnails/{assetTypeThumbnailUUID}

categoryUUIDstring

UUID of the type's category

categoryNamestring

Name of the type's category

manufacturerNamestring | null

Name of the type's manufacturer, or null

tracking"INDIVIDUAL" | "BULK"

From the type: `INDIVIDUAL` (this is one unit) or `BULK` (this is a lot of `quantity` items)

usage"RENTAL" | "CONSUMABLE"

From the type: `RENTAL` or `CONSUMABLE`

quantityinteger

1 for a unit; the number of items in a lot

massMginteger | null

Mass of one item in milligrams: the asset's own, else the type's, else null

massnumber | null

The asset's own mass in `massUnit`, or null if it uses the type's

massUnit"g" | "kg" | "t" | "oz" | "lb" | null

The unit the asset's own mass was entered in

valueinteger | null

Replacement value of one item: the asset's own, else the type's, else null

valueOverrideinteger | null

The asset's own replacement value, or null if it uses the type's

rateinteger | null

Hire rate of one item: the asset's own, else the type's, else null (not for hire)

rateOverrideinteger | null

The asset's own rate, or null if it uses the type's

priceStructureUUIDstring | null

UUID of the price structure that applies: the asset's own, else the type's, else null for the organisation default

priceStructureOverrideUUIDstring | null

UUID of the asset's own price structure, or null

parentUUIDstring | null

UUID of the asset it is kept in, or null

parentPrimaryIDstring | null

Primary asset ID of the asset it is kept in, or null

linkKind"PERMANENT" | "DEFAULT" | null

How it goes with its case, or null if it isn't in one

storageLocationUUIDstring | null

UUID of the location it is kept at, or null

storageLocationNamestring | null

Name of the location it is kept at, or null

customFieldsobject

Custom field values that apply to the asset, by field UUID: its own, or its type's where it has none. Fields with no value are left out

archivedAtstring (date-time) | null

When the asset was archived (sold, lost, retired), or null

archiveReasonstring | null

Why it was archived, or null

deletedAtstring (date-time) | null

When the asset was soft-deleted, or null if it is live

createdAtstring (date-time)

When the asset was created

updatedAtstring (date-time)

When the asset last changed

AssetCategory

An asset category

CampoTipoDescrição
uuidstring

Unique identifier of the category

namestring

Display name

descriptionstring | null

Optional explanation of what belongs in the category

iconstring | null

The category's icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:bulb`), or `custom:<uuid>` for one the organisation uploaded. Null for none

parentUUIDstring | null

UUID of the parent category, or null for a top-level category

sortOrderinteger

Position among siblings, 0-based

deletedAtstring (date-time) | null

When the category was soft-deleted, or null if it is live

createdAtstring (date-time)

When the category was created

updatedAtstring (date-time)

When the category last changed

AssetCategoryTreeNode

An asset category with its children

CampoTipoDescrição
uuidstring

Unique identifier of the category

namestring

Display name

descriptionstring | null

Optional explanation of what belongs in the category

iconstring | null

The category's icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:bulb`), or `custom:<uuid>` for one the organisation uploaded. Null for none

parentUUIDstring | null

UUID of the parent category, or null for a top-level category

sortOrderinteger

Position among siblings, 0-based

deletedAtstring (date-time) | null

When the category was soft-deleted, or null if it is live

createdAtstring (date-time)

When the category was created

updatedAtstring (date-time)

When the category last changed

childrenAssetCategoryTreeNode[]

Child categories, in sort order

AssetDetail

An asset with its cases, contents and totals

CampoTipoDescrição
uuidstring

Unique identifier of the asset

primaryIDstring

The asset's primary asset ID

identifiersAssetIdentifier[]

Every live asset ID of the asset, primary first

assetTypeUUIDstring

UUID of the asset type

assetTypeNamestring

Name of the asset type

assetTypeThumbnailUUIDstring | null

UUID of the asset type's thumbnail, or null if it has none. The image is at /{locale}/org/{organisationSlug}/thumbnails/{assetTypeThumbnailUUID}

categoryUUIDstring

UUID of the type's category

categoryNamestring

Name of the type's category

manufacturerNamestring | null

Name of the type's manufacturer, or null

tracking"INDIVIDUAL" | "BULK"

From the type: `INDIVIDUAL` (this is one unit) or `BULK` (this is a lot of `quantity` items)

usage"RENTAL" | "CONSUMABLE"

From the type: `RENTAL` or `CONSUMABLE`

quantityinteger

1 for a unit; the number of items in a lot

massMginteger | null

Mass of one item in milligrams: the asset's own, else the type's, else null

massnumber | null

The asset's own mass in `massUnit`, or null if it uses the type's

massUnit"g" | "kg" | "t" | "oz" | "lb" | null

The unit the asset's own mass was entered in

valueinteger | null

Replacement value of one item: the asset's own, else the type's, else null

valueOverrideinteger | null

The asset's own replacement value, or null if it uses the type's

rateinteger | null

Hire rate of one item: the asset's own, else the type's, else null (not for hire)

rateOverrideinteger | null

The asset's own rate, or null if it uses the type's

priceStructureUUIDstring | null

UUID of the price structure that applies: the asset's own, else the type's, else null for the organisation default

priceStructureOverrideUUIDstring | null

UUID of the asset's own price structure, or null

parentUUIDstring | null

UUID of the asset it is kept in, or null

parentPrimaryIDstring | null

Primary asset ID of the asset it is kept in, or null

linkKind"PERMANENT" | "DEFAULT" | null

How it goes with its case, or null if it isn't in one

storageLocationUUIDstring | null

UUID of the location it is kept at, or null

storageLocationNamestring | null

Name of the location it is kept at, or null

customFieldsobject

Custom field values that apply to the asset, by field UUID: its own, or its type's where it has none. Fields with no value are left out

archivedAtstring (date-time) | null

When the asset was archived (sold, lost, retired), or null

archiveReasonstring | null

Why it was archived, or null

deletedAtstring (date-time) | null

When the asset was soft-deleted, or null if it is live

createdAtstring (date-time)

When the asset was created

updatedAtstring (date-time)

When the asset last changed

pathobject[]

The cases it is in, outermost first

path[].uuidstring

UUID of the case

path[].primaryIDstring

Primary asset ID of the case

path[].assetTypeNamestring

Asset type of the case

contentsAsset[]

Live assets kept directly in this one

totalMassMginteger

Mass of this asset (times its quantity) and everything in it, in milligrams. Items with no mass count as 0

totalValueinteger

Replacement value of this asset (times its quantity) and everything in it. Items with no value count as 0

AssetGroup

A named list of assets, such as the rig for one tour. An asset can be in several groups

CampoTipoDescrição
uuidstring

Unique identifier of the asset group

namestring

Display name, such as 'Touring rig A'

descriptionstring | null

What the group is for, or null

personalboolean

True for a personal group, which only the member who made it can see. False for a group shared with the organisation

assetCountinteger

How many assets are in the group, not counting deleted ones

watchingboolean

True if the caller watches the group, and is emailed when assets are added to it or taken out

createdAtstring (date-time)

When the group was created

updatedAtstring (date-time)

When the group last changed

AssetIdentifier

An asset ID: a value printed on the asset and scanned

CampoTipoDescrição
uuidstring

Unique identifier of the asset ID record

valuestring

The ID as printed or scanned

symbology"QR_CODE" | "CODE_128" | "CODE_39" | "CODE_93" | "EAN_8" | "EAN_13" | null

What the ID is printed as, or null if not a barcode

isPrimaryboolean

The ID shown in lists, on labels and on documents

notesstring | null

Notes on the ID

createdAtstring (date-time)

When the ID was added

AssetImportIssue

CampoTipoDescrição
fieldstring

The column: a row field such as `category`, `customFields.<uuid>`, or empty for the whole row

code"ASSET_TYPE_REQUIRED" | "ASSET_TYPE_NOT_FOUND" | "ASSET_TYPE_AMBIGUOUS" | "CATEGORY_REQUIRED" | "CATEGORY_NOT_FOUND" | "CATEGORY_AMBIGUOUS" | "CATEGORY_HAS_SUBCATEGORIES" | "CATEGORY_TOO_DEEP" | "MANUFACTURER_NOT_FOUND" | "LOCATION_NOT_FOUND" | "LOCATION_AMBIGUOUS" | "NOT_A_NUMBER" | "NEGATIVE" | "TOO_LARGE" | "NOT_WHOLE" | "TOO_LONG" | "INVALID_LINK" | "INVALID_TRACKING" | "QUANTITY_NOT_ALLOWED" | "DUPLICATE_ID" | "OTHER_TYPE" | "CANT_CREATE" | "CANT_UPDATE" | "FIELD_UNKNOWN" | "FIELD_NOT_ON_TYPE" | "FIELD_REQUIRED" | "FIELD_WRONG_VALUE" | "FIELD_NOT_AN_OPTION" | "FIELD_TOO_LONG" | "FIELD_OUT_OF_RANGE" | "FIELD_NOT_IMPORTABLE" | "FAILED"

What is wrong

messagestring

What is wrong, in words

valuestring | null

The cell's text or the name involved

namestring | null

The custom field's name, or what can't be created

limitnumber | null

The limit or row number the message refers to

detailstring | null

FAILED: why the function that writes the row refused it

AssetSettings

How the organisation's new asset IDs are numbered

CampoTipoDescrição
idPrefixstring

What new asset IDs start with, e.g. `A-` gives A-0001. May be empty

idPadLengthinteger

How many digits new asset IDs' numbers are padded to, e.g. 4 gives A-0001

idNextNumberinteger

The number the next generated asset ID gets. Numbers already used are skipped

AssetType

An asset type: a catalogue entry whose stock are assets

CampoTipoDescrição
uuidstring

Unique identifier of the asset type

namestring

Display name

descriptionstring | null

A description of the type

productLinkstring | null

Link to the manufacturer's product page. A bare domain is saved with https://

categoryUUIDstring

UUID of the asset category

categoryNamestring

Name of the asset category

manufacturerUUIDstring | null

UUID of the manufacturer, or null

manufacturerNamestring | null

Name of the manufacturer, or null

tracking"INDIVIDUAL" | "BULK"

`INDIVIDUAL`: each unit is its own asset with its own asset IDs (fixtures, desks, radios). `BULK`: stock is held as lots with a quantity (cables, clamps, bulbs)

usage"RENTAL" | "CONSUMABLE"

`RENTAL`: hired out and returned. `CONSUMABLE`: used up on projects and sold (tape, batteries). Consumables must be tracked in BULK

massMginteger | null

Mass of one unit in milligrams, or null if not recorded

massnumber | null

Mass of one unit in `massUnit`, or null

massUnit"g" | "kg" | "t" | "oz" | "lb" | null

The unit the mass was entered in

rateinteger | null

Hire rate of one unit in the smallest currency unit, or null if not for hire

priceStructureUUIDstring | null

UUID of the price structure the type chose, or null for the organisation's default

taxRateUUIDstring | null

UUID of the tax rate it's charged at, or null for the organisation's default rate

valueinteger | null

Replacement value of one unit in the smallest currency unit, or null

turnaroundHoursinteger

Hours a unit stays unavailable after a project ends, while it's checked, cleaned or recharged, such as 24 for a hazer. A unit back from one project can't go out on the next until then. 0 for none. At most 720

thumbnailUUIDstring | null

UUID of the type's main thumbnail, or null if it has none. The image is at /{locale}/org/{organisationSlug}/thumbnails/{thumbnailUUID}

thumbnailUUIDsstring[]

UUIDs of all the type's thumbnails, the main one first. Each image is at /{locale}/org/{organisationSlug}/thumbnails/{UUID}

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows its category. Defaults to true

customFieldsobject

Values of the custom fields set on the type, by field UUID. Fields with no value are left out

deletedAtstring (date-time) | null

When the type was soft-deleted, or null if it is live

createdAtstring (date-time)

When the type was created

updatedAtstring (date-time)

When the type last changed

AttachedFile

A file or link attached to a record

CampoTipoDescrição
uuidstring

Unique identifier of the file

namestring

Display name, without the extension

originalNamestring | null

Name of the file as uploaded, or null for a link

extensionstring

File extension, e.g. `pdf`, or `link` for a link

mimeTypestring | null

Content type, if known

sizeBytesinteger

Size in bytes; 0 for a link

isLinkboolean

Whether this is a link to a URL rather than a stored file

linkUrlstring | null

The URL, for a link

folderUUIDstring | null

UUID of the folder it is in, or null at the top level

uploadedByUserUuidstring | null

UUID of the user who added it

createdAtstring (date-time)

When it was added

updatedAtstring (date-time)

When it last changed

AttachmentFolder

A folder of files attached to a record

CampoTipoDescrição
uuidstring

Unique identifier of the folder

namestring

Display name

parentUUIDstring | null

UUID of the folder it sits in, or null at the top level

createdAtstring (date-time)

When the folder was created

updatedAtstring (date-time)

When the folder last changed

AuditEvent

One entry in the organisation's audit log

CampoTipoDescrição
uuidstring

Unique identifier of the event

occurredAtstring (date-time)

When it happened

actorUserUuidstring | null

User UUID of whoever did it, or null for AdamRMS itself

actorDisplaystring | null

Name of whoever did it, as it was at the time

actorTypestring

What did it, such as `USER`, `APP` or `SYSTEM`

impersonatorDisplaystring | null

Set when AdamRMS support acted as the member: who from AdamRMS support

actionstring

What happened, such as `organisation.asset.updated`

outcomestring

`SUCCESS`, or `DENIED` for something that was refused

severitystring

How serious the event is

reportableEntityTypestring

The kind of record the event is about

detailShortstring

One-line summary

detailFullstring

Full description

changedFieldsobject[] | null

The fields a change changed, with their values before and after. Secrets are never recorded

Billing

Who it's made out to. Copied from the project's client while it's a draft, and frozen when it's issued

CampoTipoDescrição
clientUUIDstring | null

UUID of the client

clientNamestring | null

The client's name

contactNamestring | null

The project's contact at the client

addressstring | null

The client's address

CalendarEvent

A project on a calendar, with the dates that apply to it (a sub-project's own, else its parent's)

CampoTipoDescrição
projectobject

The project

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

parentobject | null

The project this is a sub-project of, or null

statusobject

Where the project is up to

status.uuidstring

UUID of the status

status.namestring

Name of the status

status.stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

The status's stage, which the calendar colours it by: `ENQUIRY`, `PROVISIONAL`, `CONFIRMED` or `FINISHED`. Lost projects aren't on calendars

clientobject | null

Who it's for, or null

venueobject | null

Where it happens, or null

startstring (date-time)

When it starts on the calendar: the event start, or the out start if there are no event dates

endstring (date-time)

When it ends on the calendar: the event end, or the out end if there are no event dates

outStartstring (date-time) | null

When the assets leave, or null

outEndstring (date-time) | null

When the assets are back, or null

eventStartstring (date-time) | null

When the event starts, or null

eventEndstring (date-time) | null

When the event ends, or null

updatedAtstring (date-time)

When the project last changed

CalendarFeed

The caller's private calendar feed. Its address is only shown when it's made

CampoTipoDescrição
uuidstring

UUID of the feed

scope"MINE" | "ALL"

`MINE` for the caller's own projects, or `ALL` for every project on the organisation's calendar

lastUsedAtstring (date-time) | null

When a calendar app last fetched it, to the hour, or null if none has

createdAtstring (date-time)

When the feed's address was made

CalendarSettings

How the organisation's calendar looks

CampoTipoDescrição
showStatusboolean

Show each project's status after its name

showSubProjectsboolean

Show sub-projects with dates of their own as entries of their own. Sub-projects using their parent's dates are always left out

defaultView"month" | "week" | "list"

How the calendar opens: `month`, `week`, or `list` for the month's projects as a list

useWeekLabelsboolean

Show the week labels in place of week numbers

weekLabelsCalendarWeekLabel[]

Names for weeks, earliest first

max items: 1000

CalendarWeekLabel

A name for one week, shown in place of its week number

CampoTipoDescrição
datestring (date)

Any date in the week, such as its Monday: `2027-09-06`. If two dates fall in the same week, the later one wins

labelstring

What the week is called, such as `Term 1 week 3`

min length: 1 · max length: 50

CertificationType

Something a member can hold, such as a qualification, licence or card

CampoTipoDescrição
uuidstring

Unique identifier of the certification type

namestring

What it is called, such as 'IPAF 3a'

descriptionstring | null

What it covers, or null

validityMonthsinteger | null

How many months a certification of this type lasts once gained, or null if it never expires

holdersinteger

Number of members who hold a verified, unrevoked and unexpired certification of this type

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

Client

A client: a business or person the organisation hires to. The people to contact there are its contacts

CampoTipoDescrição
uuidstring

Unique identifier of the client

namestring

Name of the business or person

parentUUIDstring | null

UUID of the client this one sits under (e.g. a company within a group), or null for a top-level client

websitestring | null

Website address

clientPricingUUIDstring | null

UUID of the client pricing its new projects use, or null for catalogue prices. Set with clients.set-pricing

addressstring | null

Postal address; lines are separated by newlines

notesstring | null

Free-text notes about the client

taxExemptboolean

Projects for this client charge no tax, such as for a charity with relief or a client abroad

isSupplierboolean

The organisation also hires from this client, so it can be picked as a sub-hire supplier

archivedAtstring (date-time) | null

When the client was archived, or null if it is active. Archived clients can't be picked for new work

deletedAtstring (date-time) | null

When the client was soft-deleted, or null if it is live

createdAtstring (date-time)

When the client was created

updatedAtstring (date-time)

When the client last changed

ClientContact

A person at a client

CampoTipoDescrição
uuidstring

Unique identifier of the contact

clientUUIDstring

UUID of the client the contact is at

namestring

The person's name

jobTitlestring | null

Their job title or role, e.g. 'Production Manager'

emailstring | null

Their email address

phonestring | null

Their phone number

notesstring | null

Free-text notes about them

createdAtstring (date-time)

When the contact was added

updatedAtstring (date-time)

When the contact last changed

ClientFinance

A client's money, over their projects

CampoTipoDescrição
clientUUIDstring

UUID of the client

projectsinteger

How many of the client's projects are counted

grossinteger

What's on those projects, with tax

invoicedinteger

Issued invoices on them, less credit notes, with tax

paidinteger | null

Payments received on them less refunds. Null if you can't see payments

balanceinteger | null

What the client still owes: gross less paid. Negative when they've paid more. Null if you can't see payments

ClientPricing

Client pricing: named alternative prices, such as 'Trade' or 'Dry hire', that a client's projects can use

CampoTipoDescrição
uuidstring

Unique identifier of the client pricing

namestring

Display name, e.g. 'Trade'

descriptionstring | null

What the list is for

adjustmentPercentnumber | null

Percentage added to the catalogue rate of anything the list has no entry for: -15 is 15% off, 10 is 10% more. Null charges catalogue prices for those

validFromstring | null

First date (YYYY-MM-DD) the list may be used on, for seasonal lists. Checked against the start of a project's charge period

validTostring | null

Last date (YYYY-MM-DD) the list may be used on

entryCountinteger

How many entries the list has

createdAtstring (date-time)

When the list was created

updatedAtstring (date-time)

When the list last changed

ClientPricingDetail

Client pricing with its entries

CampoTipoDescrição
uuidstring

Unique identifier of the client pricing

namestring

Display name, e.g. 'Trade'

descriptionstring | null

What the list is for

adjustmentPercentnumber | null

Percentage added to the catalogue rate of anything the list has no entry for: -15 is 15% off, 10 is 10% more. Null charges catalogue prices for those

validFromstring | null

First date (YYYY-MM-DD) the list may be used on, for seasonal lists. Checked against the start of a project's charge period

validTostring | null

Last date (YYYY-MM-DD) the list may be used on

entryCountinteger

How many entries the list has

createdAtstring (date-time)

When the list was created

updatedAtstring (date-time)

When the list last changed

entriesClientPricingEntry[]

Every entry, categories first, then asset types, by name

ClientPricingEntry

Client pricing's price for one asset type, or for every type in a category. An entry with no rate, percentage or structure charges catalogue prices, ignoring the list's own percentage

CampoTipoDescrição
uuidstring

Unique identifier of the entry

assetTypeUUIDstring | null

UUID of the asset type it prices, or null for a category

assetTypeNamestring | null

Name of that asset type

categoryUUIDstring | null

UUID of the category it prices (with its subcategories), or null for an asset type

categoryNamestring | null

Name of that category

rateinteger | null

A fixed rate in the smallest currency unit, replacing the catalogue's (including an asset's own rate). Asset type entries only

adjustmentPercentnumber | null

Percentage added to the catalogue rate: -20 is 20% off. Not with `rate`

priceStructureUUIDstring | null

UUID of a price structure to charge with instead of the catalogue's, e.g. a 3-day week for dry hire

priceStructureNamestring | null

Name of that price structure

ClientStatement

A client's statement: what they've been invoiced and paid across their projects, with a running balance, in the smallest currency unit

CampoTipoDescrição
clientobject

Who the statement is for

client.uuidstring

UUID of the client

client.namestring

The client's name

client.addressstring | null

The client's address

currencystring

ISO 4217 currency code of the amounts

fromstring (date-time) | null

Start of the statement, or null from the first invoice

tostring (date-time) | null

End of the statement, or null for up to now

openingBalanceinteger

What the client owed before the first entry: everything before `from`, and any entries left out over the limit

entriesStatementEntry[]

Invoices, credit notes, payments and refunds, oldest first, each with the balance after it. At most 1000: the latest are kept

earlierEntriesinteger

How many entries in the period were left out over the limit, and added into the opening balance

invoicedinteger

Invoices less credit notes in the period, with tax

paidinteger

Payments less refunds in the period

closingBalanceinteger

What the client owes at the end: invoiced less paid. Negative when they've paid more. Work not yet invoiced isn't in it

overdueinteger

What's still to pay on invoices past their due date, as of now

unpaidInvoicesUnpaidInvoice[]

Issued invoices with something still to pay as of now, oldest due first. At most 1000

ClientTimelineEntry

CampoTipoDescrição
kind"PROJECT_CREATED" | "QUOTE_ISSUED" | "QUOTE_ACCEPTED" | "QUOTE_DECLINED" | "INVOICE_ISSUED" | "CREDIT_NOTE_ISSUED" | "PAYMENT" | "REFUND" | "DOCUMENT_EMAILED" | "COMMENT"

What happened: a project made for the client, a quote issued or answered, an invoice or credit note issued, a payment or refund, a document emailed to the client, or a comment on the client

atstring (date-time)

When it happened

uuidstring

UUID of the record it's about: the project, quote, invoice, payment, document file or comment

projectClientTimelineProject | null

The project it belongs to, or null for a comment

titlestring

A short label, such as the quote or invoice number, the document's file name or the start of the comment

amountinteger | null

The amount in the smallest currency unit, for quotes, invoices, credit notes, payments and refunds

byUUIDstring | null

UUID of the member who did it, if known

byNamestring | null

Name of the member who did it, if known

ClientTimelineProject

CampoTipoDescrição
uuidstring

UUID of the project

numberinteger

The project's number

namestring

The project's name

Comment

A comment on a record

CampoTipoDescrição
uuidstring

Unique identifier of the comment

recordobject

The record the comment is on

record.type"asset-category" | "asset" | "asset-type" | "client" | "client-contact" | "location" | "maintenance-job" | "project" | "manufacturer"

The kind of record: `asset-category` (an asset category), `asset` (an asset (one unit, or one bulk lot)), `asset-type` (an asset type (a catalogue entry)), `client` (a client), `client-contact` (a person at a client), `location` (a location), `maintenance-job` (a maintenance job (a fault or piece of work on assets)), `project` (a project (an event, show or hire)), `manufacturer` (a manufacturer of assets)

record.uuidstring

UUID of the record

record.titlestring | null

What the record is called, or null if it no longer exists

record.deletedboolean

Whether the record has been deleted since

bodystring

The comment, in Markdown. Mentions are links of the form `[@Name](mention:<user uuid>)`

authorCommentPerson

assigneeCommentPerson | null

Who the comment is assigned to as a task, or null

mentionsCommentPerson[]

People mentioned in the comment

attachmentsCommentAttachment[]

Files attached to the comment

resolvedAtstring (date-time) | null

When the comment was marked resolved, or null if it is open

resolvedByCommentPerson | null

Who marked it resolved, or null if it is open

archivedAtstring (date-time) | null

When the comment was archived, or null

editedAtstring (date-time) | null

When the text was last edited, or null if never

createdAtstring (date-time)

When the comment was written

updatedAtstring (date-time)

When the comment last changed

CommentAttachment

A file attached to a comment

CampoTipoDescrição
uuidstring

UUID of the file

filenamestring

Display name of the file

extensionstring

File extension, e.g. `pdf`

mimeTypestring | null

MIME type, if known

sizeBytesinteger

Size in bytes

CommentPerson

A member of the organisation

CampoTipoDescrição
uuidstring

The user's UUID

namestring | null

The user's name, or null if they are no longer known

CrewApplication

An application for a crew vacancy

CampoTipoDescrição
uuidstring

Unique identifier of the application

vacancyUUIDstring

UUID of the vacancy

vacancyNamestring

The vacancy's role

projectCrewProjectRef

applicantUUIDstring

UUID of the member who applied

applicantNamestring

The applicant's name

phonestring | null

The phone number given, or null

commentstring | null

What the applicant wrote, or null

answersobject[]

Answers to the vacancy's questions

answers[].namestring

The question

max length: 500

answers[].valuestring

The answer

max length: 10000

status"PENDING" | "ACCEPTED" | "REJECTED" | "WITHDRAWN"

Where it's up to

decidedAtstring (date-time) | null

When it was accepted or rejected, or null

certificationsobject[]

The vacancy's certifications, and whether the applicant holds each

certifications[].typeUUIDstring

UUID of the certification type

certifications[].namestring

The certification type's name

certifications[].result"VALID" | "EXPIRED" | "UNVERIFIED" | "MISSING"

Whether the applicant holds it

filesobject[]

Files attached, such as a CV

files[].uuidstring

UUID of the file

files[].namestring

The file's name

files[].sizeBytesinteger

Size in bytes

createdAtstring (date-time)

When it was submitted

updatedAtstring (date-time)

When it last changed

CrewProjectRef

The project, with the dates its crew work

CampoTipoDescrição
uuidstring

UUID of the project

numberinteger

The project's number

namestring

The project's name

ancestorsobject[]

The projects above this one, the top-level project first. Empty for a top-level project

ancestors[].uuidstring

UUID of the project

ancestors[].numberinteger

The project's number

ancestors[].namestring

The project's name

statusNamestring

The project's status

stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

The stage of the project's status

managerUUIDstring | null

UUID of the project's manager, or null

clientNamestring | null

The project's client, or null

startstring (date-time) | null

When the crew are needed from: the project's event start, or its out start if it has no event dates. Sub-projects use their parent's dates when they have none

endstring (date-time) | null

When the crew are needed until, worked out the same way

CrewRole

A role the organisation recruits crew for again and again, such as a lighting designer, with what it involves

CampoTipoDescrição
uuidstring

Unique identifier of the crew role

namestring

The role, such as 'Lighting designer' or 'Sound No.1'

descriptionstring | null

What the role involves, with links to more about it, in Markdown. Shown on every vacancy for it, or null

createdAtstring (date-time)

When the crew role was created

updatedAtstring (date-time)

When the crew role last changed

CrewVacancy

A role on a project that members can apply for

CampoTipoDescrição
uuidstring

Unique identifier of the vacancy

projectCrewProjectRef

namestring

The role, such as 'Stage crew'. Accepted applicants join the crew with this role

crewRoleobject | null

The crew role it recruits for, whose description applies to every vacancy for it. Null for none, or if the crew role was deleted

descriptionstring | null

What the role involves on this project

personSpecificationstring | null

What the organisation is looking for in an applicant

deadlinestring (date-time) | null

When applications close, or null for no deadline

slotsinteger

How many people are needed

slotsFilledinteger

How many places accepted applications have filled

openboolean

Whether it's taking applications

acceptingApplicationsboolean

Whether a member can apply now: it's open, the deadline hasn't passed and places are left

showPublicboolean

Whether it's listed on the organisation's public site. A vacancy limited to roles never is

firstComeFirstServedboolean

Whether applicants are accepted as they apply, until every place is filled

allowFileUploadsboolean

Whether applicants can attach files, such as a CV

collectPhoneboolean

Whether applicants must give a phone number

privateToManagerboolean

Whether only the project's manager and the listed viewers see the applications

questionsVacancyQuestion[]

Questions applicants answer

roleUUIDsstring[]

UUIDs of the roles whose members see it. Empty means every member

viewerUUIDsstring[]

UUIDs of members, besides the project's manager, who see the applications

certificationTypesobject[]

Certifications applicants should hold. Applicants without them are flagged, not refused

certificationTypes[].uuidstring

UUID of the certification type

certificationTypes[].namestring

The certification type's name

applicationCountinteger | null

How many live applications it has, or null if the caller can't see them

canSeeApplicationsboolean

Whether the caller can see its applications

myApplicationobject | null

The caller's own latest application, or null

createdAtstring (date-time)

When it was advertised

updatedAtstring (date-time)

When it last changed

CustomField

A custom field definition

CampoTipoDescrição
uuidstring

Unique identifier of the field

recordType"asset"

The kind of record the field belongs to

namestring

Label shown on the form

descriptionstring | null

Help text shown under the field

type"TEXT" | "RICH_TEXT" | "NUMBER" | "BOOLEAN" | "DATE" | "SELECT" | "URL" | "FILE" | "IMAGE"

What kind of value it holds

setOn"TYPE" | "RECORD" | "BOTH"

Where the value is set: TYPE (on the asset type, shared by its assets), RECORD (on each asset) or BOTH (on the asset type, and optionally on an asset to override it)

showOnLabelsboolean

Whether the value is printed on asset labels

showOnDocumentsboolean

Whether the asset type's value is printed under its lines on quotes and invoices

showInListsboolean

Whether the asset's value is shown beside its asset ID in the list of assets and on its page

requirement"OPTIONAL" | "REQUIRED" | "REQUIRED_FOR_CATEGORIES"

OPTIONAL, REQUIRED on every record, or REQUIRED_FOR_CATEGORIES (required for records in `requiredCategoryUUIDs` or their subcategories)

requiredCategoryUUIDsstring[]

Asset categories the field is required for, when the requirement is REQUIRED_FOR_CATEGORIES. Empty otherwise

appliesTo"ALL" | "TYPES"

ALL: on every asset type and its assets. TYPES: only on the asset types in `assetTypeUUIDs` and their assets

assetTypeUUIDsstring[]

Asset types the field is used by, when `appliesTo` is TYPES. Empty otherwise

maxLengthinteger | null

TEXT and RICH_TEXT: maximum characters

decimalPlacesinteger | null

NUMBER: decimal places allowed (0 for whole numbers)

minimumnumber | null

NUMBER: smallest value allowed

maximumnumber | null

NUMBER: largest value allowed

unitstring | null

NUMBER: unit shown after the value

optionsstring[] | null

SELECT: the choices, in order

sortOrderinteger

Position on the form, 0-based

deletedAtstring (date-time) | null

When the field was deleted, or null if it is live

createdAtstring (date-time)

When the field was created

updatedAtstring (date-time)

When the field last changed

CustomFieldValue

CampoTipoDescrição

Dashboard

The caller's dashboard: the widgets they can see, which they've hidden, and what the shown ones hold

CampoTipoDescrição
available("my-calendar" | "projects-today" | "project-shortages" | "my-maintenance" | "maintenance-open" | "inspections-due" | "inventory-total" | "inventory-value" | "members" | "storage")[]

The widgets the caller can see, whether shown or hidden, in the order they show

hidden("my-calendar" | "projects-today" | "project-shortages" | "my-maintenance" | "maintenance-open" | "inspections-due" | "inventory-total" | "inventory-value" | "members" | "storage")[]

The widgets the caller has chosen to hide

myCalendarobject | null

The `my-calendar` widget, or null if it isn't shown

projectsTodayobject | null

The `projects-today` widget, or null if it isn't shown. Today is in the organisation's timezone. Sub-projects with their own out dates count on their own; lost projects don't count

projectShortagesobject | null

The `project-shortages` widget, or null if it isn't shown. Only enquiry, provisional and confirmed projects count

myMaintenanceobject | null

The `my-maintenance` widget, or null if it isn't shown

maintenanceOpenobject | null

The `maintenance-open` widget, or null if it isn't shown

inspectionsDueobject | null

The `inspections-due` widget, or null if it isn't shown

inventoryTotalobject | null

The `inventory-total` widget, or null if it isn't shown. Archived and deleted assets aren't counted

inventoryValueobject | null

The `inventory-value` widget, or null if it isn't shown. An asset counts from when it was added until it was archived

membersobject | null

The `members` widget, or null if it isn't shown

storageobject | null

The `storage` widget, or null if it isn't shown

DocumentBatch

Documents being made in the background, one for each record. Each is kept on its record as documents.create keeps it. Batches are kept for 30 days

CampoTipoDescrição
uuidstring

Unique identifier of the batch

kind"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

templateUUIDstring | null

UUID of the template used, or null for the kind's default

status"RUNNING" | "FINISHED"

RUNNING while documents are still being made, FINISHED once every record has a document or a failure

totalinteger

How many documents the batch makes

madeinteger

How many have been made so far

failedinteger

How many couldn't be made

itemsobject[]

Each record, in the order asked for

items[].recordUUIDstring

UUID of what it's about

items[].documentGeneratedDocument | null

The document, once it's made, or null

items[].errorCodestring | null

Why it couldn't be made, such as RECORD_NOT_FOUND or PERMISSION_DENIED, or null

createdAtstring (date-time)

When the batch was started

finishedAtstring (date-time) | null

When it finished, or null while it's running

DocumentDetail

A custom field marked "Show on client documents", with the asset type's value

CampoTipoDescrição
namestring

The field's name, such as Power

type"TEXT" | "RICH_TEXT" | "NUMBER" | "BOOLEAN" | "DATE" | "SELECT" | "URL" | "FILE" | "IMAGE"

The field's type, for how to show the value

valuestring | number | boolean

The asset type's value: text (rich text as plain text), a number, a date as YYYY-MM-DD, or true/false

unitstring | null

For a NUMBER, the unit the value is in, or null

DocumentSettings

Settings for every document the organisation makes

CampoTipoDescrição
showAdamRMSFooterboolean

Whether every document has a line at the foot of each page saying it was made with AdamRMS

DocumentTemplate

How one kind of document looks. A kind with no templates uses its built-in layout

CampoTipoDescrição
uuidstring

Unique identifier of the template

kind"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

namestring

Display name, such as 'PAT certificate'

isDefaultboolean

Used for this kind when a document is made without naming a template

paperSize"A4" | "LETTER"

Paper size: `A4` (210 × 297 mm) or `LETTER` (8.5 × 11 in)

settingsDocumentTemplateSettings

htmlstring | null

The template's own Liquid HTML, or null if it uses the kind's built-in layout

createdAtstring (date-time)

When the template was created

updatedAtstring (date-time)

When the template last changed

DocumentTemplateSettings

Settings that adjust a template's layout. Custom HTML can read them as `settings`

CampoTipoDescrição
titlestring | null

The title printed on the document, such as 'Tax invoice'. Null uses the kind's own title

introTextstring | null

Text printed under the title, or null for none

footerTextstring | null

Text printed at the end, such as terms or payment details, or null for none

accentColourstring

Colour for headings and lines, as #rrggbb

font"SANS" | "SERIF" | "MONO"

Font: `SANS` (Arial), `SERIF` (Georgia) or `MONO` (Courier New)

showLogoboolean

Print the organisation's logo at the top

EmailDomain

An email domain whose users can join the organisation once they have verified their email address

CampoTipoDescrição
domainstring

The email domain, e.g. `example.com`

roleUUIDstring

UUID of the role people who join this way are given

roleNamestring | null

Name of that role, or null if it no longer exists

activeboolean

Whether people with this domain can currently join

createdAtstring (date-time)

When the domain was added

FinanceSettings

How quotes, invoices and credit notes are numbered, and the organisation's payment terms

CampoTipoDescrição
invoicePrefixstring

Put before invoice numbers, such as 'INV-' for INV-0001. Deposit invoices share the sequence

nextInvoiceNumberinteger

The number the next invoice gets. It can't go back to a number already used

lowestNextInvoiceNumberinteger

The lowest the next invoice number can be set to: one more than the highest used

creditNotePrefixstring

Put before credit note numbers, such as 'CN-' for CN-0001

nextCreditNoteNumberinteger

The number the next credit note gets. It can't go back to a number already used

lowestNextCreditNoteNumberinteger

The lowest the next credit note number can be set to: one more than the highest used

quotePrefixstring

Put before quote numbers, such as 'QUO-' for QUO-0001

nextQuoteNumberinteger

The number the next quote gets. It can't go back to a number already used

lowestNextQuoteNumberinteger

The lowest the next quote number can be set to: one more than the highest used

numberDigitsinteger

How many digits numbers are padded to with leading zeros, such as 4 for 0001

paymentTermsDaysinteger

Days from issuing an invoice to when it's due, such as 30. 0 makes invoices due on issue

quoteValidDaysinteger

Days a quote is valid for after it's issued, such as 30. 0 for quotes with no expiry

depositBpinteger

The deposit a deposit invoice asks for by default, as a share of the project's total in basis points (2500 is 25%). 0 for none

linkedDiscountBpinteger

The discount on assets that go out because they're in a case that was added to a project, in basis points (10000 is 100%, so they're free). Applies to assets added from now on, not those already on projects

GeneratedDocument

A PDF document AdamRMS made from a template

CampoTipoDescrição
fileUUIDstring

UUID of the PDF, an ordinary file in the organisation's files

filenamestring

The file's name, such as 'PAT certificate A0042.pdf'

sizeBytesinteger

Size of the PDF in bytes

kind"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

templateUUIDstring | null

UUID of the template used, or null for the built-in layout

recordUUIDstring

UUID of what the document is about

createdAtstring (date-time)

When the document was made

Icon

An icon uploaded by the organisation

CampoTipoDescrição
uuidstring

Unique identifier of the icon. Choose it for a category with the icon `custom:<uuid>`

namestring

Display name

contentType"image/svg+xml" | "image/png" | "image/webp"

Image format

sizeBytesinteger

Size of the image in bytes

createdAtstring (date-time)

When the icon was uploaded

InspectionResult

An inspection result

CampoTipoDescrição
uuidstring

Unique identifier of the result

templateobject

The inspection done

template.uuidstring

UUID of the template

template.namestring

Name of the template

assetobject

The asset inspected

asset.uuidstring

UUID of the asset

asset.primaryIDstring | null

The asset's primary asset ID

asset.assetTypeNamestring

Name of the asset's type

passedboolean

The asset passed

overriddenboolean

A line failed, but the tester passed the asset anyway

overrideNotestring | null

Why the tester passed it anyway, or null

testedAtstring (date-time)

When it was tested

testerobject

Who tested it

tester.userUUIDstring | null

UUID of the member who tested it, or null for someone from outside

tester.namestring | null

Name of the tester from outside, or null

tester.companystring | null

Company of the tester from outside, or null

certificateNumberstring | null

The certificate or report number, or null

testEquipmentstring | null

The test equipment used, such as the tester's serial number, or null

notesstring | null

Notes, or null

answersobject[]

The checklist answers, in the template's order

answers[].itemUUIDstring

UUID of the checklist line

answers[].labelstring

The line's label

answers[].type"TEXT" | "NUMBER" | "BOOLEAN" | "SELECT"

The line's type

answers[].unitstring | null

NUMBER: the reading's unit

answers[].valuestring | null

The answer as entered: text, a number, `true`/`false`, or the chosen option. Null if left blank

answers[].passedboolean | null

Whether the answer passes. Null for lines that can't fail

scanUUIDstring | null

UUID of the scan it was recorded with, whose photos go with it

maintenanceJobUUIDstring | null

UUID of the maintenance job the failure opened, or null

maintenanceJobNumberinteger | null

Number of that job, or null

nextDueAtstring (date-time)

When the asset is next due this inspection after this result. A failed result is due again straight away

recordedByUUIDstring | null

UUID of the member who recorded the result

createdAtstring (date-time)

When the result was recorded

InspectionTemplate

An inspection template, such as PAT or LOLER

CampoTipoDescrição
uuidstring

Unique identifier of the template

namestring

Display name, for example 'PAT'

descriptionstring | null

What the inspection is, or null

intervalValueinteger

How often it's due, with `intervalUnit`: for example 12

intervalUnit"DAYS" | "WEEKS" | "MONTHS" | "YEARS"

`DAYS`, `WEEKS`, `MONTHS` or `YEARS`

whenOverdue"BLOCK" | "FLAG"

`BLOCK`: an overdue or failed asset can't be booked onto projects. `FLAG`: it only shows a warning

passNewAssetsboolean

New assets count as passed, so they're first due one interval after they're added. Otherwise they're due straight away

checkOnReturnboolean

Check each asset when it comes back from a project: it's due from the moment it's marked back, until it's inspected again

itemsobject[]

The checklist, in order

items[].uuidstring

Unique identifier of the line

items[].labelstring

What to check, for example 'Earth continuity'

items[].helpstring | null

How to check it, shown to the tester, or null

items[].type"TEXT" | "NUMBER" | "BOOLEAN" | "SELECT"

`TEXT` (a note), `NUMBER` (a reading), `BOOLEAN` (yes or no) or `SELECT` (one of a list)

items[].requiredboolean

The tester must answer it

items[].minnumber | null

NUMBER: a reading below this fails the line, or null

items[].maxnumber | null

NUMBER: a reading above this fails the line, or null

items[].unitstring | null

NUMBER: what the reading is in, for example 'Ω', or null

items[].expectedboolean | null

BOOLEAN: the answer that passes. Null for a yes or no that never fails

items[].optionsobject[] | null

SELECT: the choices, and which fail the line

assetTypeUUIDsstring[]

UUIDs of the asset types it applies to

createdAtstring (date-time)

When the template was created

updatedAtstring (date-time)

When the template last changed

Invitation

A pending invitation to join the organisation

CampoTipoDescrição
uuidstring

Unique identifier of the invitation

emailstring

Email address the invitation was sent to

roleUUIDstring

UUID of the role the invitee will be given when they join

roleNamestring

Name of that role

invitedByUserUuidstring

UUID of the user who sent the invitation

createdAtstring (date-time)

When the invitation was created

lastSentAtstring (date-time)

When the invitation email was last sent

expiresAtstring (date-time)

When the link in the latest email stops working

expiredboolean

Whether the invitation has expired

canResendboolean

Whether the email can be sent again. Each invitation can be sent at most 3 times

Invoice

An invoice, deposit invoice or credit note for a project. Amounts are in the smallest currency unit; a credit note's are negative

CampoTipoDescrição
uuidstring

Unique identifier of the invoice

kind"INVOICE" | "DEPOSIT" | "CREDIT_NOTE"

INVOICE for what's on the project, DEPOSIT for a share of it asked for up front, CREDIT_NOTE to cancel an issued invoice

status"DRAFT" | "ISSUED"

DRAFT can change. ISSUED is numbered and never changes

state"DRAFT" | "UNPAID" | "PART_PAID" | "PAID" | "OVERDUE" | "CREDITED"

Where it's up to: DRAFT, UNPAID, PART_PAID, PAID, OVERDUE (past its due date and not paid) or CREDITED (cancelled by a full credit note). Credit notes are always PAID

numberstring | null

Its number, such as INV-0001. Null while it's a draft

projectobject

The project or sub-project it invoices, with its sub-projects

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

clientobject | null

The project's client now

billingBilling | null

creditsobject | null

For a credit note: the invoice it cancels or credits part of

creditedByobject | null

The credit note that cancelled it, if any. Partial credit notes aren't this

depositBpinteger | null

For a deposit invoice: the share of the project it asks for, in basis points. Null for a fixed amount

issuedAtstring (date-time) | null

When it was issued

dueAtstring (date-time) | null

When it's due to be paid

referencestring | null

The client's purchase order or reference

notesstring | null

Printed on the invoice

netinteger

Total before tax

taxinteger

Total tax

grossinteger

Total with tax

taxByRateTaxTotal[]

Tax for each rate

paidinteger

Payments against it, less refunds. For a credit note, refunds

partialboolean

For a credit note: true if it credits only some of the invoice, which stays live

partlyCreditedinteger

What partial credit notes have taken off it, with tax, as a positive amount

dueinteger

What's still to pay: gross less partly credited, less paid

createdAtstring (date-time)

When it was drafted

updatedAtstring (date-time)

When it last changed

InvoiceDetail

An invoice with its lines

CampoTipoDescrição
uuidstring

Unique identifier of the invoice

kind"INVOICE" | "DEPOSIT" | "CREDIT_NOTE"

INVOICE for what's on the project, DEPOSIT for a share of it asked for up front, CREDIT_NOTE to cancel an issued invoice

status"DRAFT" | "ISSUED"

DRAFT can change. ISSUED is numbered and never changes

state"DRAFT" | "UNPAID" | "PART_PAID" | "PAID" | "OVERDUE" | "CREDITED"

Where it's up to: DRAFT, UNPAID, PART_PAID, PAID, OVERDUE (past its due date and not paid) or CREDITED (cancelled by a full credit note). Credit notes are always PAID

numberstring | null

Its number, such as INV-0001. Null while it's a draft

projectobject

The project or sub-project it invoices, with its sub-projects

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

clientobject | null

The project's client now

billingBilling | null

creditsobject | null

For a credit note: the invoice it cancels or credits part of

creditedByobject | null

The credit note that cancelled it, if any. Partial credit notes aren't this

depositBpinteger | null

For a deposit invoice: the share of the project it asks for, in basis points. Null for a fixed amount

issuedAtstring (date-time) | null

When it was issued

dueAtstring (date-time) | null

When it's due to be paid

referencestring | null

The client's purchase order or reference

notesstring | null

Printed on the invoice

netinteger

Total before tax

taxinteger

Total tax

grossinteger

Total with tax

taxByRateTaxTotal[]

Tax for each rate

paidinteger

Payments against it, less refunds. For a credit note, refunds

partialboolean

For a credit note: true if it credits only some of the invoice, which stays live

partlyCreditedinteger

What partial credit notes have taken off it, with tax, as a positive amount

dueinteger

What's still to pay: gross less partly credited, less paid

createdAtstring (date-time)

When it was drafted

updatedAtstring (date-time)

When it last changed

linesobject[]

Its lines, in order

lines[].uuidstring

Unique identifier of the invoice line

lines[].kind"LINE" | "ADJUSTMENT" | "DEPOSIT" | "DEPOSIT_DEDUCTION"

LINE is a project line invoiced for the first time. ADJUSTMENT is what a project line changed by since it was last invoiced. DEPOSIT is part of the project's total at one tax rate. DEPOSIT_DEDUCTION takes an earlier deposit invoice off

lines[].projectLineUUIDstring | null

UUID of the project line it invoices

lines[].depositInvoiceobject | null

For DEPOSIT_DEDUCTION: the deposit invoice it takes off

lines[].projectNamestring

The project or sub-project it's on, for grouping

lines[].descriptionstring

What it's for. Empty for deposits and deductions

lines[].commentstring | null

The line's comment, or null

lines[].quantityinteger

How many

lines[].depthinteger

0 for a line, 1 for an accessory under it, and so on

lines[].unitsnumber

Chargeable units, such as days

lines[].rateinteger | null

Rate of one in the smallest currency unit, or null

lines[].discountBpinteger

Discount in basis points (1000 is 10%)

lines[].netinteger

Amount before tax

lines[].taxRateUUIDstring | null

UUID of the tax rate

lines[].taxRateNamestring

The tax rate's name, or empty

lines[].taxRateBpinteger

Tax rate in basis points

lines[].taxinteger

Tax on the line

lines[].detailsDocumentDetail[]

Custom field values printed under the line, such as a lantern's power, as they were when the line was drafted

lines[].creditableinteger

Net still to credit on this line with invoices.credit `lines`. 0 if it can't be credited on its own

currencystring

ISO 4217 currency code

taxNamestring

What tax is called, such as VAT

JoinCode

A code anyone can use to join the organisation, with a set role

CampoTipoDescrição
codestring

The code (lower case). Its link is `/{lang}/join-business/{code}`

roleUUIDstring

UUID of the role people who join with it are given

roleNamestring | null

Name of that role, or null if it no longer exists

activeboolean

Whether the code can be used to join

createdAtstring (date-time)

When the code was created

jobTitlestring | null

Job title given to everyone who joins with it, or null

notesstring | null

Notes for administrators, such as where it was shared

usesinteger

How many people have joined with it, including any since removed

LabelElement

One thing drawn on the label

CampoTipoDescrição

LabelSheet

For labels on sheets, such as A4 sticker sheets: how they are laid out. Null for labels on a roll or tape, printed one at a time

CampoTipoDescrição
paper"A4" | "LETTER"

The sheet's paper size

columnsinteger

Labels across

min: 1 · max: 20

rowsinteger

Labels down

min: 1 · max: 40

marginTopnumber

Space above the first row, in millimetres

min: 0 · max: 300

marginLeftnumber

Space left of the first column, in millimetres

min: 0 · max: 300

gapXnumber

Space between columns, in millimetres

min: 0 · max: 300

gapYnumber

Space between rows, in millimetres

min: 0 · max: 300

LabelTemplate

How a label looks: its size, whether it's on a sheet or a roll, and where the barcode, text, logo and colour bands go

CampoTipoDescrição
uuidstring

Unique identifier of the template

namestring

Display name, such as 'Asset label 62mm'

descriptionstring | null

What it's for, or null

subject"ASSET" | "LOCATION"

Whether the labels are for assets or locations

widthnumber

Width of one label, in millimetres

heightnumber

Height of one label, in millimetres

sheetLabelSheet | null

elementsLabelElement[]

What's drawn on each label, from the bottom layer up

createdAtstring (date-time)

When the template was created

updatedAtstring (date-time)

When the template last changed

LegacyImportRun

One import from the previous version of AdamRMS

CampoTipoDescrição
uuidstring

Unique identifier of the run

status"RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED"

RUNNING, COMPLETED, FAILED (stopped by an error) or CANCELLED

startedByUserUuidstring

UUID of the member who started the run, and whom it acts as

startedAtstring (date-time)

When the run started

finishedAtstring (date-time) | null

When the run ended, or null while it is running

currentEntitystring | null

The kind of record the run is working on, or null once it has ended

countsobject

What the run did, by kind of record, e.g. `manufacturers` or `assets`

issueCountinteger

How many records couldn't be imported. At most 1,000 are listed

Licence

One of the organisation's licences. Each member needs one

CampoTipoDescrição
uuidstring

The licence's UUID

bundledboolean

Whether the licence comes with the plan. Otherwise it is an extra licence, bought on top

memberobject | null

Who holds the licence, or null if it is free to assign

assignedAtstring (date-time) | null

When it was given to its member, or null if it is free

reassignableAtstring (date-time) | null

A licence can't be taken back for a day after it is given. Until this time, it can't be unassigned

LocalisationSettingsWithLock

The organisation's currency, timezone, language and units, and whether the currency can still change

CampoTipoDescrição
currency"GBP" | "USD" | "EUR" | "AUD" | "CAD" | "CHF" | "CNY" | "JPY" | "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BWP" | "BYN" | "BZD" | "CDF" | "CLP" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ETB" | "FJD" | "FKP" | "GEL" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "ISK" | "JMD" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SEK" | "SGD" | "SHP" | "SLE" | "SOS" | "SRD" | "STD" | "SZL" | "THB" | "TJS" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW"

ISO 4217 code of the currency the organisation hires in, e.g. `GBP`. Rates and values are stored in its smallest unit (pence, cents)

timezonestring

IANA name of the organisation's timezone, e.g. `Europe/London`. Dates on projects and documents are in this timezone

documentLanguage"en" | "fr" | "es" | "de" | "it" | "pt" | "nl"

Language of documents written for clients, such as quotes and invoices: one of `en`, `fr`, `es`, `de`, `it`, `pt`, `nl`

unitSystem"METRIC" | "IMPERIAL_UK" | "IMPERIAL_US"

How masses are shown: `METRIC` (g, kg, t), `IMPERIAL_UK` (oz, lb, 2,240 lb ton) or `IMPERIAL_US` (oz, lb, 2,000 lb ton)

currencyLockedboolean

Whether the currency can no longer change, because projects have prices, quotes, invoices or payments in it

Location

A location: a venue, a warehouse, a shelf in a warehouse, ...

CampoTipoDescrição
uuidstring

Unique identifier of the location

namestring

Display name

addressstring | null

Postal address, if any

notesstring | null

Free-text notes, if any

parentUUIDstring | null

UUID of the location it is inside, or null for a top-level location

clientUUIDstring | null

UUID of the client this location belongs to (e.g. a client's venue), or null

archivedAtstring (date-time) | null

When the location was archived, or null if it is in use

deletedAtstring (date-time) | null

When the location was soft-deleted, or null if it is live

createdAtstring (date-time)

When the location was created

updatedAtstring (date-time)

When the location last changed

LocationBarcode

An extra barcode on a location. Every location also answers to its own UUID

CampoTipoDescrição
uuidstring

Unique identifier of the barcode record

valuestring

The barcode as printed or scanned

symbology"QR_CODE" | "CODE_128" | "CODE_39" | "CODE_93" | "EAN_8" | "EAN_13" | null

What it is printed as, or null if not known

notesstring | null

Notes on the barcode

createdAtstring (date-time)

When it was added

LocationTreeNode

A location with the locations inside it

CampoTipoDescrição
uuidstring

Unique identifier of the location

namestring

Display name

addressstring | null

Postal address, if any

notesstring | null

Free-text notes, if any

parentUUIDstring | null

UUID of the location it is inside, or null for a top-level location

clientUUIDstring | null

UUID of the client this location belongs to (e.g. a client's venue), or null

archivedAtstring (date-time) | null

When the location was archived, or null if it is in use

deletedAtstring (date-time) | null

When the location was soft-deleted, or null if it is live

createdAtstring (date-time)

When the location was created

updatedAtstring (date-time)

When the location last changed

childrenLocationTreeNode[]

Locations inside this one, by name

MaintenanceJob

A maintenance job

CampoTipoDescrição
uuidstring

Unique identifier of the job

numberinteger

The job's number in the organisation, for example 42

titlestring

Short summary of the fault or work

descriptionstring | null

What's wrong, in more detail

statusobject

Where the job is up to

status.uuidstring

Unique identifier of the status

status.namestring

Display name, for example 'Received'

status.isOpenboolean

Whether a job in this status is still open. Jobs in a closed status leave the main list, and their flags and blocks stop applying

priorityobject

How urgent it is

priority.uuidstring

Unique identifier of the priority

priority.namestring

Display name, for example 'Urgent'

priority.colour"red" | "yellow" | "green" | "blue" | "gray"

Colour of the priority's badge

assigneeUUIDstring | null

UUID of the member it's assigned to, or null

dueAtstring (date-time) | null

When it should be done by, or null

flagAssetsboolean

While the job is open, its assets show a warning wherever they appear

blockAssetsboolean

While the job is open, its assets can't be booked onto projects

costinteger | null

What the work cost, in the smallest unit of the organisation's currency (pence for GBP), or null

supplierstring | null

Who did the work if it went out, or null

outcome"REPAIRED" | "NO_FAULT_FOUND" | "BEYOND_REPAIR" | null

How it ended: `REPAIRED`, `NO_FAULT_FOUND` or `BEYOND_REPAIR`. Null if not given

closedAtstring (date-time) | null

When the job moved into a closed status, or null if open

createdByUUIDstring | null

UUID of the member who created the job, or null

assetsobject[]

The assets the job covers

assets[].assetUUIDstring

UUID of the asset

assets[].primaryIDstring | null

The asset's primary asset ID, or null if it has none

assets[].assetTypeUUIDstring

UUID of the asset's type

assets[].assetTypeNamestring

Name of the asset's type

assets[].quantityinteger

How many of it the job covers: 1 for an individually tracked unit, up to the lot's quantity for a bulk lot

assets[].releasedboolean

The job's flag and block were lifted from this asset early, such as once it was fixed

assets[].archivedboolean

The asset has since been archived

watcherUUIDsstring[]

UUIDs of the members watching the job

costsobject[]

What it cost, item by item: parts, labour and anything else. When there are items, `cost` is their total

costs[].uuidstring

Unique identifier of the item

costs[].kind"PART" | "LABOUR" | "OTHER"

`PART`, `LABOUR` (quantity is hours) or `OTHER`

costs[].descriptionstring

What it was, such as 'Replacement fan'

costs[].quantityinteger

How many, or hours of labour

costs[].unitCostinteger

Each, in the smallest unit of the organisation's currency

chargeobject | null

The line charging the client for the work, such as a repair after a hire, or null

deletedAtstring (date-time) | null

When the job was deleted, or null if it is live

createdAtstring (date-time)

When the job was created

updatedAtstring (date-time)

When the job last changed

MaintenancePriority

A maintenance job priority

CampoTipoDescrição
uuidstring

Unique identifier of the priority

namestring

Display name, for example 'Urgent'

colour"red" | "yellow" | "green" | "blue" | "gray"

Colour of the priority's badge

isDefaultboolean

New jobs get this priority unless another is given

sortOrderinteger

Position in the list, 0-based. The most urgent comes first

createdAtstring (date-time)

When the priority was created

updatedAtstring (date-time)

When the priority last changed

MaintenanceStatus

A maintenance job status

CampoTipoDescrição
uuidstring

Unique identifier of the status

namestring

Display name, for example 'Received'

isOpenboolean

Whether a job in this status is still open. Jobs in a closed status leave the main list, and their flags and blocks stop applying

sortOrderinteger

Position in the list, 0-based

createdAtstring (date-time)

When the status was created

updatedAtstring (date-time)

When the status last changed

Manufacturer

A manufacturer of assets

CampoTipoDescrição
uuidstring

Unique identifier of the manufacturer

namestring

Display name

parentUUIDstring | null

UUID of the parent company (e.g. Harman for JBL), or null for a top-level manufacturer

websitestring | null

The manufacturer's website, or null if not recorded

notesstring | null

Free-text notes about the manufacturer, or null

deletedAtstring (date-time) | null

When the manufacturer was soft-deleted, or null if it is live

createdAtstring (date-time)

When the manufacturer was created

updatedAtstring (date-time)

When the manufacturer last changed

ManufacturerTreeNode

A manufacturer with the manufacturers it owns

CampoTipoDescrição
uuidstring

Unique identifier of the manufacturer

namestring

Display name

parentUUIDstring | null

UUID of the parent company (e.g. Harman for JBL), or null for a top-level manufacturer

websitestring | null

The manufacturer's website, or null if not recorded

notesstring | null

Free-text notes about the manufacturer, or null

deletedAtstring (date-time) | null

When the manufacturer was soft-deleted, or null if it is live

createdAtstring (date-time)

When the manufacturer was created

updatedAtstring (date-time)

When the manufacturer last changed

childrenManufacturerTreeNode[]

Manufacturers whose parent company this is, sorted the same way

Member

A member of the organisation

CampoTipoDescrição
uuidstring

The user's UUID

firstNamestring

First name

lastNamestring

Last name

emailstring

Email address

jobTitlestring | null

Job title, if set

roleUUIDstring

UUID of the member's role

roleNamestring

Name of the member's role

roleType"ADMINISTRATOR" | "EDITOR" | "VIEWER" | "CUSTOM"

Type of the member's role

removedboolean

Whether the member has been removed from the organisation

hasLicenceboolean

Whether the member holds a user licence. Without one they cannot use the organisation

removeAtstring (date-time) | null

When the member is set to be removed, such as the end of their contract, or null. From then on they can't use the organisation

MemberCertification

A certification a member holds

CampoTipoDescrição
uuidstring

Unique identifier of the certification

typeobject

The certification type it is

type.uuidstring

type.namestring

memberobject

Who holds it

member.uuidstring

UUID of the member

member.namestring

Their full name

gainedOnstring (date)

The day it was gained, YYYY-MM-DD

expiresOnstring (date) | null

The last day it is valid, YYYY-MM-DD, or null if it never expires

issuedBystring | null

Who issued it, such as 'IPAF' or a training company

referencestring | null

The card or certificate number

commentstring | null

Notes, or a sign-off comment

source"MANUAL" | "SELF" | "TRAINING"

MANUAL: recorded by someone allowed to. SELF: added by the member themselves. TRAINING: awarded by a training module

trainingModuleobject | null

The training module that awarded it, for TRAINING

recordedByobject | null

Who recorded it, or null

verifiedAtstring (date-time) | null

When it was verified, or null while unverified

verifiedByobject | null

Who verified it. Null while unverified, or when AdamRMS awarded it for finishing an online module

revokedAtstring (date-time) | null

When it was revoked, or null

revokedByobject | null

Who revoked it, or null

revokedReasonstring | null

Why it was revoked

status"VALID" | "EXPIRING" | "EXPIRED" | "UNVERIFIED" | "REVOKED"

VALID: verified and in date. EXPIRING: verified, but expires within 30 days. EXPIRED: past its expiry date. UNVERIFIED: added by the member and not checked yet. REVOKED: no longer counts

evidenceobject[]

Photos or PDFs of the card or certificate

evidence[].uuidstring

UUID of the file

evidence[].namestring

The file's name

evidence[].mimeTypestring | null

Its type, such as 'image/jpeg'

evidence[].sizeBytesinteger

Its size in bytes

createdAtstring (date-time)

When it was recorded

updatedAtstring (date-time)

When it last changed

MemberProfile

A member of the organisation, with details for their profile

CampoTipoDescrição
uuidstring

The user's UUID

firstNamestring

First name

lastNamestring

Last name

emailstring

Email address

jobTitlestring | null

Job title, if set

roleUUIDstring

UUID of the member's role

roleNamestring

Name of the member's role

roleType"ADMINISTRATOR" | "EDITOR" | "VIEWER" | "CUSTOM"

Type of the member's role

removedboolean

Whether the member has been removed from the organisation

hasLicenceboolean

Whether the member holds a user licence. Without one they cannot use the organisation

removeAtstring (date-time) | null

When the member is set to be removed, such as the end of their contract, or null. From then on they can't use the organisation

joinedAtstring (date-time) | null

When they first joined the organisation. Null for removed members

joinedViaCodestring | null

The join code they joined with. Null if they didn't, or the caller can't see join codes

MyCalendarEvent

A project on the caller's own calendar

CampoTipoDescrição
projectobject

The project

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

parentobject | null

The project this is a sub-project of, or null

statusobject

Where the project is up to

status.uuidstring

UUID of the status

status.namestring

Name of the status

status.stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

The status's stage, which the calendar colours it by: `ENQUIRY`, `PROVISIONAL`, `CONFIRMED` or `FINISHED`. Lost projects aren't on calendars

clientobject | null

Who it's for, or null

venueobject | null

Where it happens, or null

startstring (date-time)

When it starts on the calendar: the event start, or the out start if there are no event dates

endstring (date-time)

When it ends on the calendar: the event end, or the out end if there are no event dates

outStartstring (date-time) | null

When the assets leave, or null

outEndstring (date-time) | null

When the assets are back, or null

eventStartstring (date-time) | null

When the event starts, or null

eventEndstring (date-time) | null

When the event ends, or null

updatedAtstring (date-time)

When the project last changed

reasons("MANAGER" | "FOLLOWER" | "CREW")[]

Why it's on the caller's calendar: `MANAGER` (they manage it), `FOLLOWER` (they follow it) or `CREW` (they're on its crew)

OrganisationDetails

The organisation's name and contact details

CampoTipoDescrição
namestring

The organisation's name, shown to members and on documents for clients

supportContactInfostring | null

Who members should contact for help, shown when they lack a permission or a licence. Null for none

addressstring | null

Postal address, printed on documents for clients such as quotes and invoices. Null for none

phonestring | null

Phone number for clients. Null for none

emailstring | null

Email address for clients. Null for none

websitestring | null

Website address, such as `https://example.com`. Null for none

taxIdLabelstring | null

What the organisation's tax registration is called where it trades, such as 'VAT number', 'GST number' or 'ABN'. Printed on documents for clients. Null if not set

taxIdstring | null

The tax registration number. Null for none

companyIdLabelstring | null

What the organisation's company registration is called, such as 'Company number' or 'ACN'. Printed on documents for clients. Null if not set

companyIdstring | null

The company registration number. Null for none

hasEmailHeaderboolean

Whether the organisation has an email header: the image at the top of emails sent about it

hasLogoboolean

Whether the organisation has a logo: shown in the navigation, on documents for clients and on labels

OrganisationFile

A file or link in the organisation's files

CampoTipoDescrição
uuidstring

Unique identifier of the file or link

namestring

Display name

category"INVOICES" | "DOCUMENTS" | "ASSET_THUMBNAILS" | "RECEIPTS" | "PROJECT_FILES" | "ATTACHMENTS" | "COMMENT_ATTACHMENTS" | "SCAN_MEDIA" | "CERTIFICATION_EVIDENCE" | "CREW_APPLICATIONS" | "AI_IMPORTS" | "GENERATED_DOCUMENTS" | "ISSUED_DOCUMENTS" | "DATABASE_BACKUPS"

The file's category: where it lives in the organisation's files, such as `DOCUMENTS` or `PROJECT_FILES`

extensionstring

File extension, such as `pdf`, or `link` for a link

mimeTypestring | null

Content type, if known

sizeBytesinteger

Size in bytes. 0 for a link

isLinkboolean

Whether this is a link to a URL rather than a stored file

linkUrlstring | null

The URL, for a link

recordTypestring | null

The kind of record the file is attached to, such as `location`, or null if it only lives in its category

recordUuidstring | null

UUID of the record it is attached to, if any

uploadedByUserUuidstring | null

User UUID of the member who added it

deletedboolean

Whether it is in the trash. Files in the trash are deleted for good after 30 days

deletedAtstring (date-time) | null

When it was moved to the trash

createdAtstring (date-time)

When it was added

updatedAtstring (date-time)

When it last changed

OrganisationUrl

One of the organisation's URLs, current or former

CampoTipoDescrição
slugstring

The URL slug - the organisation is at `/{lang}/org/{slug}`

activeboolean

Whether this is the current URL. Former URLs redirect to the current one

createdAtstring (date-time)

When the URL was first used

Package

A bundle of asset types hired out together at one price, such as a small PA package, with what is in it

CampoTipoDescrição
uuidstring

Unique identifier of the package

namestring

Display name, such as 'Small PA package'

descriptionstring | null

What the package is for, or null

rateinteger | null

Hire rate of the whole package in the smallest currency unit (such as pence). How the hire's length multiplies it is set by the price structure. Null if it has no rate

priceStructureUUIDstring | null

UUID of the price structure that sets how the length of a hire multiplies the rate. Null for the organisation's default

taxRateUUIDstring | null

UUID of the tax rate it's charged at, or null for the organisation's default rate

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows packages. Defaults to true

contentCountinteger

How many asset types are in the package, not counting deleted ones

createdAtstring (date-time)

When the package was created

updatedAtstring (date-time)

When the package last changed

contentsPackageContent[]

The asset types in the package, in order. Deleted asset types are left out

valueinteger

Replacement value of everything that always goes out in the package, in the smallest currency unit. Optional extras and types with no value aren't counted

PackageContent

One asset type in a package

CampoTipoDescrição
assetTypeUUIDstring

UUID of the asset type

assetTypeNamestring

Name of the asset type

tracking"INDIVIDUAL" | "BULK"

Whether the asset type is tracked as individual units or in bulk lots

thumbnailUUIDstring | null

The asset type's main thumbnail, or null

quantityinteger

How many of the asset type go out with one package

mode"MANDATORY" | "DEFAULT" | "OPTIONAL"

How the asset type goes out with the package: MANDATORY (always, and it can't be left out), DEFAULT (unless it is taken out of the booking) or OPTIONAL (only if it is added, as an extra)

PackageSummary

A bundle of asset types hired out together at one price, such as a small PA package

CampoTipoDescrição
uuidstring

Unique identifier of the package

namestring

Display name, such as 'Small PA package'

descriptionstring | null

What the package is for, or null

rateinteger | null

Hire rate of the whole package in the smallest currency unit (such as pence). How the hire's length multiplies it is set by the price structure. Null if it has no rate

priceStructureUUIDstring | null

UUID of the price structure that sets how the length of a hire multiplies the rate. Null for the organisation's default

taxRateUUIDstring | null

UUID of the tax rate it's charged at, or null for the organisation's default rate

showOnPublicSiteboolean

Whether the public site's catalogue lists it, when the catalogue shows packages. Defaults to true

contentCountinteger

How many asset types are in the package, not counting deleted ones

createdAtstring (date-time)

When the package was created

updatedAtstring (date-time)

When the package last changed

Payment

Money in or out on a project

CampoTipoDescrição
uuidstring

Unique identifier of the payment

kind"PAYMENT" | "REFUND" | "DEPOSIT_TAKEN" | "DEPOSIT_RETURNED" | "DEPOSIT_RETAINED"

PAYMENT is money received from the client. REFUND is money paid back. DEPOSIT_TAKEN is a damage or security deposit received and held, which isn't income. DEPOSIT_RETURNED is a held deposit paid back. DEPOSIT_RETAINED is a held deposit kept, which comes with a charge on the project and a PAYMENT for it

amountinteger

How much, in the smallest currency unit (such as pence). Always positive: the kind says which way it went

datestring (date-time)

When the money was paid, as an ISO 8601 date and time

methodobject | null

How it was paid

referencestring | null

A reference, such as the bank transfer's reference, or null

commentstring | null

A note about the payment, or null

projectobject

The project it was paid on

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

clientobject | null

The project's client

invoiceobject | null

The invoice it pays or refunds, or null

chargeLineUUIDstring | null

For a retained deposit, and its payment: the line it became on the project

linkedPaymentUUIDstring | null

For a retained deposit: its PAYMENT. For that PAYMENT: the DEPOSIT_RETAINED it came from

recordedByUUIDstring | null

UUID of the member who recorded it

createdAtstring (date-time)

When it was recorded

fileCountinteger

How many files, such as receipts, are attached to it. List them with attachments.list, record type `payment`

PaymentMethod

How money was paid, such as 'Bank transfer' or 'Card'

CampoTipoDescrição
uuidstring

Unique identifier of the payment method

namestring

Display name, such as 'Bank transfer' or 'Card'

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

PriceStructure

A price structure: how the length of a hire becomes a multiple of an item's rate

CampoTipoDescrição
uuidstring

Unique identifier of the price structure

namestring

Display name, e.g. '3-day week'

descriptionstring | null

What the structure is for, or null

unit"HOUR" | "DAY" | "WEEK" | "MONTH" | "NONE"

What one unit of an item's rate pays for: `HOUR`, `DAY`, `WEEK`, `MONTH`, or `NONE` (charged once per project however long it is, also used for sales of consumables)

factorsnumber[]

Cumulative multipliers of the rate for 1, 2, 3... units: the total charged for that many units, not the extra for each. E.g. `[1, 2, 3, 3, 3, 3, 3]` is a 3-day week: 3 days cost 3x the day rate, and 4 to 7 days cost the same

beyond"REPEAT" | "EXTEND" | "HOLD"

What happens after the last factor: `REPEAT` (start the table again, adding to the total so far - a weekly table charges every week the same), `EXTEND` (add `extendFactor` for each extra unit) or `HOLD` (stay at the last factor)

extendFactornumber

With `beyond: EXTEND`, the multiplier of the rate added for each unit after the last factor, e.g. 1 to charge every extra day in full, 0.5 for half price

minimumUnitsinteger

A hire shorter than this many units is charged as this many, e.g. 4 for a four-hour minimum

dayCounting"CALENDAR" | "ELAPSED"

How days are counted from a hire's dates: `CALENDAR` (every calendar day it touches, start and end included) or `ELAPSED` (every started 24 hours, after `leewayMinutes`)

leewayMinutesinteger

With `ELAPSED` counting (and for hourly structures), how many minutes a hire can overrun before another unit is charged

chargeableWeekdays("MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN")[]

The weekdays that are charged with `CALENDAR` counting, e.g. Monday to Friday for a five-day week. Defaults to every day

isDefaultboolean

Whether this is the organisation's default structure, used for items that don't choose one. Exactly one structure is the default

createdAtstring (date-time)

When the structure was created

updatedAtstring (date-time)

When the structure last changed

Project

A project

CampoTipoDescrição
uuidstring

Unique identifier of the project

numberinteger

The project's number in the organisation, for example 1042

namestring

The project's name

descriptionstring | null

What the project is, in more detail, or null

statusobject

Where the project is up to

status.uuidstring

Unique identifier of the status

status.namestring

Display name, for example 'Quote sent'

status.stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

What the status does: `ENQUIRY` (no effect on stock), `PROVISIONAL` (on hold, doesn't take stock), `CONFIRMED` (takes stock), `FINISHED` (done, frees stock) or `LOST` (cancelled or lost, frees stock and leaves calendars)

typeobject

The project's type, and the sections it turns on

type.uuidstring

UUID of the type

type.namestring

Name of the type

type.sectionsProjectSections

parentobject | null

The project this is a sub-project of, or null

ancestorsobject[]

The projects above this one, the top-level project first. Empty for a top-level project

ancestors[].uuidstring

UUID of the project

ancestors[].numberinteger

The project's number

ancestors[].namestring

The project's name

subProjectsobject[]

The project's live sub-projects, in number order

subProjects[].uuidstring

UUID of the project

subProjects[].numberinteger

The project's number

subProjects[].namestring

The project's name

subProjects[].statusobject

subProjects[].status.uuidstring

Unique identifier of the status

subProjects[].status.namestring

Display name, for example 'Quote sent'

subProjects[].status.stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

What the status does: `ENQUIRY` (no effect on stock), `PROVISIONAL` (on hold, doesn't take stock), `CONFIRMED` (takes stock), `FINISHED` (done, frees stock) or `LOST` (cancelled or lost, frees stock and leaves calendars)

subProjects[].followParentStatusboolean

Its status follows this project's

followParentStatusboolean

This sub-project's status is kept the same as its parent's. Always false for a top-level project

folderobject | null

The folder the project is in, or null. Always null for a sub-project, which goes where its parent goes

managerUUIDstring | null

UUID of the member managing the project, or null

clientobject | null

Who the project is for, or null

clientContactobject | null

The person at the client the project is with, or null

venueobject | null

Where the project happens, or null

datesProjectDates

The project's own dates. A sub-project's are null where it uses its parent's

effectiveDatesProjectDates

The dates that apply: the project's own, else its parent's. The charge period falls back to the out period

pricingobject

How the project's lines are priced

pricing.clientPricingobject | null

The client pricing new lines are priced through, or null for catalogue prices. Starts as the client's

pricing.defaultDiscountBpinteger

The discount new lines get, in basis points: 1000 is 10%

pricing.unitsOverrideinteger | null

Chargeable units for every line, such as 3 days for a week-long hire, instead of working them out from the dates. 0 is free. Null works them out

pricing.taxRateOverrideobject | null

Every line is taxed at this rate instead of its own, or null

invoiceNotesstring | null

Printed on the project's quotes and invoices, or null

deliveryNotesstring | null

Printed on the project's delivery notes, or null

followerUUIDsstring[]

UUIDs of the members following the project. They're emailed when its status changes or it gets a comment

createdByUUIDstring | null

UUID of the member who created the project, or null

deletedAtstring (date-time) | null

When the project was moved to trash, or null if it is live

createdAtstring (date-time)

When the project was created

updatedAtstring (date-time)

When the project last changed

ProjectAllocation

Stock allocated to a line: a unit, or some of a lot

CampoTipoDescrição
uuidstring

Unique identifier of the allocation

assetUUIDstring

UUID of the asset

assetIdstring | null

The asset's primary asset ID, such as its barcode, or null

quantityinteger

How many: 1 for an individual unit, some of a lot for bulk

linkedFromAllocationUUIDstring | null

The allocation of the case it came with, or null if it was allocated itself

preppedAtstring (date-time) | null

When it was prepped, or null

dispatchedAtstring (date-time) | null

When it went out, or null

returnedAtstring (date-time) | null

When it came back, or null

returnedQuantityinteger | null

How many of a lot came back, or null

missingQuantityinteger | null

How many of a lot are missing, or null

ProjectCrewMember

Someone on a project's crew

CampoTipoDescrição
uuidstring

Unique identifier of this place on the crew

projectCrewProjectRef

memberUUIDstring | null

UUID of the member, or null for a named person

personNamestring | null

Name of someone who isn't a member, or null for a member

personEmailstring | null

Email address of someone who isn't a member, or null for a member or someone with none

namestring

The member's name, or the named person's: whoever this is

rolestring

Their role, such as 'Lighting designer'

commentstring | null

A note about them, or null

sortOrderinteger

Position in the crew list

vacancyUUIDstring | null

UUID of the vacancy whose accepted application put them here, or null

serviceobject | null

The service they're charged as, such as 'Lighting technician day', or null

lineUUIDstring | null

UUID of the project line charging for them, or null. Change its quantity or price as any other line

clashesobject[]

Other live projects this member is crewed on at the same time. Empty for named people

clashes[].projectUUIDstring

UUID of the other project

clashes[].projectNumberinteger

The other project's number

clashes[].projectNamestring

The other project's name

clashes[].rolestring

Their role on the other project

certificationsobject[]

Certifications the place needs, from the service they're charged as and the vacancy they filled, and whether the member holds each. Anything but VALID is a warning; it never stops them being crewed. Empty for named people

certifications[].typeUUIDstring

UUID of the certification type

certifications[].namestring

The certification type's name

certifications[].result"VALID" | "EXPIRED" | "UNVERIFIED" | "MISSING"

Whether the member holds it until the project ends: `VALID`, `EXPIRED` (it runs out first), `UNVERIFIED` or `MISSING`

createdAtstring (date-time)

When they were added

updatedAtstring (date-time)

When this place last changed

ProjectDates

A project's dates

CampoTipoDescrição
outStartstring (date-time) | null

When the assets leave. Bookings hold stock from here, or null

outEndstring (date-time) | null

When the assets are back. Bookings hold stock until here, or null

eventStartstring (date-time) | null

When the event starts, or null

eventEndstring (date-time) | null

When the event ends, or null

chargeStartstring (date-time) | null

Start of the period hire is charged for, or null for the out period

chargeEndstring (date-time) | null

End of the period hire is charged for, or null for the out period

ProjectDocument

A PDF document kept on a project

CampoTipoDescrição
fileUUIDstring

UUID of the PDF, an ordinary file in the organisation's files

filenamestring

The file's name, such as 'PAT certificate A0042.pdf'

sizeBytesinteger

Size of the PDF in bytes

kind"INSPECTION_CERTIFICATE" | "INVOICE" | "QUOTE" | "DELIVERY_NOTE" | "PICKING_LIST" | "RETURN_NOTE" | "CREW_CALL_SHEET" | "PROJECT_NOTES" | "CLIENT_STATEMENT"

What the document is: `INSPECTION_CERTIFICATE` (a certificate for one inspection result, such as a PAT test or LOLER examination. Made for the result's UUID), `INVOICE` (an invoice, deposit invoice or credit note, with its lines and tax by rate. Made for the invoice's UUID (from invoices.list). An issued invoice's PDF is kept and can't be deleted), `QUOTE` (a quote, with its lines and totals as they were when it was issued. Made for the quote's UUID (from quotes.list)), `DELIVERY_NOTE` (a delivery note: what goes out on a project, with the asset IDs allocated, the project's delivery notes and space for a signature, without prices. Made for the project's UUID), `PICKING_LIST` (a picking list: what goes out on a project, with a tick box for each line and asset ID, for prepping it in the warehouse. Made for the project's UUID), `RETURN_NOTE` (a return note: what went out on a project and what has come back so far, with a tick box for each asset ID still out and space for signatures, without prices. Made for the project's UUID), `CREW_CALL_SHEET` (a crew call sheet: the project's dates and venue, and each crew member's role, name and notes. Made for the project's UUID), `PROJECT_NOTES` (the project's notes, oldest first, with the project's details. Made for the project's UUID), `CLIENT_STATEMENT` (a client's statement: their invoices, credit notes and payments with a running balance, and what's still to pay on each unpaid invoice. Made for the client's UUID, and kept with the client's files)

templateUUIDstring | null

UUID of the template used, or null for the built-in layout

recordUUIDstring

UUID of what the document is about

createdAtstring (date-time)

When the document was made

projectUUIDstring

UUID of the project or sub-project the document is kept on

madeByUUIDstring | null

UUID of the member who made it, or null

lastEmailedAtstring (date-time) | null

When it was last emailed to the client with documents.email, or null if it never was

ProjectFinance

A project's money, with its sub-projects: what's on it, invoiced and paid, in the smallest currency unit

CampoTipoDescrição
currencystring

ISO 4217 currency code

taxNamestring

What tax is called, such as VAT

netinteger

What's on the project, before tax

taxinteger

Tax on what's on the project

grossinteger

What's on the project, with tax

invoicedinteger

Issued invoices, less credit notes, with tax

uninvoicedinteger

What's on the project and not yet invoiced: gross less invoiced. Negative when more has been invoiced than is on it now

paidinteger | null

Payments received less refunds. Null if you can't see payments

balanceinteger | null

What the client still owes for the project: gross less paid. Null if you can't see payments

depositsHeldinteger | null

Damage deposits taken and not yet returned or kept. Null if you can't see payments

defaultDepositBpinteger

The organisation's default deposit, in basis points, for deposit invoices

quoteValidDaysinteger

Days a new quote is valid for by default. 0 for quotes with no expiry

ProjectFolder

A folder that projects are organised in

CampoTipoDescrição
uuidstring

Unique identifier of the folder

namestring

The folder's name, for example 'Weddings'

parentUUIDstring | null

UUID of the folder it's in, or null for a top-level folder

projectCountinteger

How many projects are in the folder itself, not counting those in folders inside it or in trash

createdAtstring (date-time)

When the folder was created

updatedAtstring (date-time)

When the folder last changed

ProjectLine

One line on a project's quote

CampoTipoDescrição
uuidstring

Unique identifier of the line

projectUUIDstring

UUID of the project or sub-project it's on

parentLineUUIDstring | null

The line it goes out with: an accessory's asset type, a package's contents or a case's contents. Null at the top

kind"ASSET_TYPE" | "PACKAGE" | "PACKAGE_CONTENT" | "ACCESSORY" | "SERVICE" | "CHARGE" | "SUB_HIRE"

ASSET_TYPE (some of an asset type, such as 12 LED pars), PACKAGE (a package at its own price), PACKAGE_CONTENT (an asset type in a package, under it), ACCESSORY (an accessory, under the asset type it goes out with), SERVICE (a service, such as delivery), CHARGE (a one-off line) or SUB_HIRE (stock hired in from a supplier)

assetTypeUUIDstring | null

Its asset type, or null

packageUUIDstring | null

Its package, or null

serviceUUIDstring | null

Its service, or null

descriptionstring

What it is, as it shows on the quote

quantityinteger

How many

sortOrderinteger

Position among the lines next to it, from 0

commentstring | null

A note on the line, or null

chargedboolean

False when it goes out free, as accessories and package contents do unless charged

startstring (date-time) | null

When this line alone goes out, or null for the project's dates

endstring (date-time) | null

When this line alone comes back, or null for the project's dates

pricesProjectLinePrices | null

The line's prices, or null if you can't see prices

allocationsProjectAllocation[]

The assets allocated to it

subHiresSubHire[]

What's hired in to fill it

availabilityProjectLineAvailability | null

How much of its asset type is free, or null if it takes no stock

ProjectLineAvailability

How much of a line's asset type is free over its period

CampoTipoDescrição
totalinteger

Stock of the asset type

bookedinteger

On other confirmed projects over the line's period

heldinteger

On other provisional projects over the line's period. Not taken away

blockedinteger

Can't be booked because of maintenance or an overdue inspection

availableinteger

What's left for this line, after other projects and the lines above it on this project

shortageinteger

How many more the line needs than are available. 0 when there are enough, or the project has no dates

ProjectLineCounts

How far a project's assets have got, across all its lines

CampoTipoDescrição
linesinteger

Top-level lines

neededinteger

Assets the lines need from the organisation's own stock, after what's hired in

allocatedinteger

Of those, how many are allocated

preppedinteger

Allocated assets prepped

dispatchedinteger

Allocated assets sent out

returnedinteger

Allocated assets back

shortLinesinteger

Lines that need more than is free

shortByinteger

How many more those lines need than are free

toAllocateLinesinteger

Lines that need more assets allocated

toAllocateinteger

How many more assets need allocating

subHireLinesinteger

Lines with stock hired in

ProjectLineGroup

A group of a project's lines, such as one asset category

CampoTipoDescrição
keystring

Identifies the group, to pass back in `groups`

kind"ALL" | "CATEGORY" | "NO_CATEGORY" | "PACKAGES" | "SERVICES" | "PROJECT"

ALL (every line), CATEGORY (one asset category), NO_CATEGORY (asset types with no category), PACKAGES, SERVICES (services, charges and sub-hire) or PROJECT (one project or sub-project)

namestring | null

The category's or project's name. Null for the other kinds

recordUUIDstring | null

UUID of the category or project, or null

linesinteger

Top-level lines in the group

matchinginteger

Top-level lines that match the search and filter, or have a line under them that does. The same as `lines` without either

totalinteger | null

What the group's charged lines come to before tax, or null if you can't see prices

shortLinesinteger

Lines that need more than is free

toAllocateLinesinteger

Lines that need more assets allocated

subHireLinesinteger

Lines with stock hired in

lineUUIDsstring[]

UUIDs of the group's top-level lines that are in `lines`, in quote order. Empty for a group not asked for

ProjectLinePrices

A line's prices, all in the smallest currency unit

CampoTipoDescrição
rateinteger | null

The rate of one, in the smallest currency unit, as copied when it was priced. Null if it has none

priceStructureNamestring | null

The price structure it was priced with, or null for a one-off price

clientPricingNamestring | null

The client pricing it was priced through, or null

unitsnumber

Chargeable units, such as days, worked out from the dates or set on the line

unitsOverrideinteger | null

Chargeable units set on this line, or null to work them out

discountBpinteger

Discount in basis points: 1000 is 10%

customPriceinteger | null

A price for the whole line that replaces the calculated one, or null

hirePriceinteger

Rate × units × quantity, before discount

lineTotalinteger

What the line charges, after discount, before tax

taxRateUUIDstring | null

UUID of the tax rate, or null when no tax applies

taxRateBpinteger

The tax rate it was priced at, in basis points

lineTaxinteger

Tax on the line total

costinteger | null

What one costs the organisation, or null

ProjectNote

A note on a project

CampoTipoDescrição
uuidstring

Unique identifier of the note

projectUUIDstring

UUID of the project it's on

titlestring

The note's title

bodystring

The note, in Markdown

authorUUIDstring | null

UUID of the member who wrote it, or null

createdAtstring (date-time)

When the note was written

updatedAtstring (date-time)

When the note last changed

ProjectSections

Which sections projects of a type show

CampoTipoDescrição
assetsboolean

Projects of this type can book assets

crewboolean

Projects of this type have crew

financeboolean

Projects of this type show prices, invoices and payments

filesboolean

Projects of this type have files

notesboolean

Projects of this type have notes

clientboolean

Projects of this type have a client

venueboolean

Projects of this type have a venue

ProjectStatus

A project status

CampoTipoDescrição
uuidstring

Unique identifier of the status

namestring

Display name, for example 'Quote sent'

descriptionstring | null

What the status means, for the people picking it, or null

stage"ENQUIRY" | "PROVISIONAL" | "CONFIRMED" | "FINISHED" | "LOST"

What the status does: `ENQUIRY` (no effect on stock), `PROVISIONAL` (on hold, doesn't take stock), `CONFIRMED` (takes stock), `FINISHED` (done, frees stock) or `LOST` (cancelled or lost, frees stock and leaves calendars)

isDefaultboolean

New projects get this status unless another is given

sortOrderinteger

Position in the list, 0-based

createdAtstring (date-time)

When the status was created

updatedAtstring (date-time)

When the status last changed

ProjectTemplate

A project saved to start others from: its lines, crew roles and notes

CampoTipoDescrição
uuidstring

Unique identifier of the template

namestring

The template's name, such as 'Wedding: small PA and lighting'

descriptionstring | null

What the template is for, shown when choosing one, or null

typeobject | null

The type projects started from it get unless another is chosen, or null for the default type

linesProjectTemplateLine[]

The lines it adds, in quote order

crewRolesobject[]

Crew roles it needs. Each becomes a vacancy on the new project, not yet taking applications

crewRoles[].rolestring

The role, such as 'Stage crew'

crewRoles[].countinteger

How many people it needs

notesobject[]

Notes it copies onto the new project

notes[].titlestring

The note's title

notes[].bodystring

The note, in Markdown

currencystring

The organisation's currency, which charges' rates are in

createdAtstring (date-time)

When the template was saved

updatedAtstring (date-time)

When the template last changed

ProjectTemplateLine

A line the template adds to a project

CampoTipoDescrição
kind"ASSET_TYPE" | "PACKAGE" | "SERVICE" | "CHARGE"

ASSET_TYPE (some of an asset type, with its accessories), PACKAGE (a package, with its contents), SERVICE or CHARGE (a one-off line)

itemUUIDstring | null

UUID of the asset type, package or service. Null for a charge

descriptionstring

What the line shows as: the item's name, or a charge's own text

quantityinteger

How many

rateinteger | null

A charge's rate of one, in the smallest currency unit. Null for catalogue items, which are priced when the project is started

costinteger | null

A charge's cost of one, or null

commentstring | null

A note on the line, or null

availableboolean

False if the item has been deleted since: the line is left out of new projects

ProjectTotals

A project's totals, including its sub-projects, all in the smallest currency unit

CampoTipoDescrição
hireSubtotalinteger

What the charged lines come to before discounts

discountsinteger

Discounts and custom prices, as one amount taken off

netinteger

Total before tax

taxinteger

Total tax

grossinteger

Total with tax

taxByRateTaxTotal[]

Tax for each rate

costinteger

What it costs the organisation, including sub-hire

valueinteger

Replacement value of the stock on it

massMginteger

Mass of the stock on it, in milligrams

ProjectType

A project type

CampoTipoDescrição
uuidstring

Unique identifier of the type

namestring

Display name, for example 'Dry hire'

sectionsProjectSections

isDefaultboolean

New projects get this type unless another is given

createdAtstring (date-time)

When the type was created

updatedAtstring (date-time)

When the type last changed

PublicSiteSettings

What the organisation's public site shows

CampoTipoDescrição
enabledboolean

Whether the public site is on. While it's off, every public page says it isn't available

introductionstring | null

A few sentences shown at the top of the public site, such as what you hire out and where

catalogueboolean

Show a catalogue of the asset types you hire out, for visitors to browse

showPricesboolean

Show each asset type's hire rate in the catalogue

categoryUUIDsstring[]

UUIDs of the categories the catalogue shows, with their subcategories. Empty for every category

packagesboolean

Show packages in the catalogue too, with what's in each. Only packages set to show on the public site are listed

enquiriesboolean

Let visitors send an enquiry from the catalogue. Each one becomes a new project

enquiryStatusUUIDstring | null

UUID of the status enquiry projects get, or null for the first status at the provisional stage

enquiryManagerUUIDstring | null

UUID of the member who manages enquiry projects and is emailed about each one, or null for nobody

vacanciesboolean

Show the crew vacancies you've chosen to advertise publicly

vacancyClientsboolean

Show the client of each vacancy's project

colourScheme"AUTO" | "LIGHT" | "DARK"

`AUTO` follows each visitor's light or dark setting. `LIGHT` or `DARK` always uses that one, such as to match your own website

accentColourstring | null

Colour of buttons and links, as a hex colour such as #1864ab, or null for AdamRMS pink

frameHeaderboolean

Show your logo and name at the top when the public site is in a frame on your own website. It's always shown on its own page

Quote

A quote sent for a project: its lines and totals frozen when it was issued. Amounts are in the smallest currency unit

CampoTipoDescrição
uuidstring

Unique identifier of the quote

numberstring

Its number, such as QUO-0001

versioninteger

1 for the project's first quote, 2 for the next, and so on

status"ISSUED" | "ACCEPTED" | "DECLINED"

ISSUED, or ACCEPTED or DECLINED once the client answered

state"ISSUED" | "ACCEPTED" | "DECLINED" | "EXPIRED" | "SUPERSEDED"

Where it's up to: as its status, or EXPIRED (past its valid date with no answer) or SUPERSEDED (a later version was issued with no answer to this one)

projectobject

The project or sub-project it quotes for

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

billingBilling

issuedAtstring (date-time)

When it was issued

validUntilstring (date-time) | null

When it stops being valid, or null for no expiry

decidedAtstring (date-time) | null

When the client accepted or declined it

decidedByNamestring | null

Who at the client accepted or declined it

notesstring | null

Printed on the quote

totalsQuoteTotals

changedSinceboolean

True when the project's total now differs from this quote's, so it may need quoting again

issuedByUUIDstring | null

UUID of the member who issued it

decidedOnlineboolean

True if the client answered through the quote's link, rather than a member recording it

decisionCommentstring | null

What the client wrote when they answered through the link

linkSharedboolean

True if the quote has a link the client can open to see and answer it. Get it with quotes.share

QuoteDetail

A quote with its lines

CampoTipoDescrição
uuidstring

Unique identifier of the quote

numberstring

Its number, such as QUO-0001

versioninteger

1 for the project's first quote, 2 for the next, and so on

status"ISSUED" | "ACCEPTED" | "DECLINED"

ISSUED, or ACCEPTED or DECLINED once the client answered

state"ISSUED" | "ACCEPTED" | "DECLINED" | "EXPIRED" | "SUPERSEDED"

Where it's up to: as its status, or EXPIRED (past its valid date with no answer) or SUPERSEDED (a later version was issued with no answer to this one)

projectobject

The project or sub-project it quotes for

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

billingBilling

issuedAtstring (date-time)

When it was issued

validUntilstring (date-time) | null

When it stops being valid, or null for no expiry

decidedAtstring (date-time) | null

When the client accepted or declined it

decidedByNamestring | null

Who at the client accepted or declined it

notesstring | null

Printed on the quote

totalsQuoteTotals

changedSinceboolean

True when the project's total now differs from this quote's, so it may need quoting again

issuedByUUIDstring | null

UUID of the member who issued it

decidedOnlineboolean

True if the client answered through the quote's link, rather than a member recording it

decisionCommentstring | null

What the client wrote when they answered through the link

linkSharedboolean

True if the quote has a link the client can open to see and answer it. Get it with quotes.share

linesQuoteLine[]

Its lines, in order

currencystring

ISO 4217 currency code

taxNamestring

What tax is called, such as VAT

QuoteLine

A line on a quote, as it was when the quote was issued

CampoTipoDescrição
projectNamestring

The project or sub-project it's on, for grouping

descriptionstring

What it's for

commentstring | null

The line's comment, or null

quantityinteger

How many

depthinteger

0 for a line, 1 for an accessory under it, and so on

unitsnumber

Chargeable units, such as days

rateinteger | null

Rate of one in the smallest currency unit, or null

discountBpinteger

Discount in basis points (1000 is 10%)

taxRateBpinteger

Tax rate in basis points

netinteger

Amount before tax

detailsDocumentDetail[]

Custom field values printed under the line, such as a lantern's power. Empty for quotes issued before they were printed

QuoteTotals

A quote's totals, as they were when it was issued

CampoTipoDescrição
hireSubtotalinteger

Before discounts

discountsinteger

Discounts, as one amount

netinteger

Total before tax

taxinteger

Total tax

grossinteger

Total with tax

taxByRateTaxTotal[]

Tax for each rate

Role

A role: a named set of permissions members can be given

CampoTipoDescrição
uuidstring

Unique identifier of the role

namestring

Display name

descriptionstring | null

Optional description

type"ADMINISTRATOR" | "EDITOR" | "VIEWER" | "CUSTOM"

`CUSTOM` roles are the organisation's own; the others are built in and cannot be changed

permissions("AUDIT_LOGS.VIEW" | "AI_USAGE.VIEW" | "ORGANISATIONS_USERS.VIEW" | "ORGANISATIONS_USERS.CREATE" | "ORGANISATIONS_USERS.UPDATE" | "ORGANISATIONS_USERS.DELETE" | "ORGANISATIONS_USERS.VIEW_DELETED" | "ORGANISATIONS_USERS.RESTORE" | "ORGANISATIONS_USERS.SEND" | "ORGANISATIONS_PERMISSIONS.VIEW" | "ORGANISATIONS_PERMISSIONS.CREATE" | "ORGANISATIONS_PERMISSIONS.UPDATE" | "ORGANISATIONS_PERMISSIONS.DELETE" | "ORGANISATIONS_PERMISSIONS.VIEW_DELETED" | "ORGANISATIONS_PERMISSIONS.RESTORE" | "ORGANISATIONS_LICENCES.VIEW" | "ORGANISATIONS_LICENCES.UPDATE" | "ORGANISATIONS_JOIN_METHODS.VIEW" | "ORGANISATIONS_JOIN_METHODS.CREATE" | "ORGANISATIONS_JOIN_METHODS.UPDATE" | "ORGANISATIONS_JOIN_METHODS.DELETE" | "WEBHOOKS.VIEW" | "WEBHOOKS.CREATE" | "WEBHOOKS.UPDATE" | "WEBHOOKS.DELETE" | "ORGANISATIONS_SUBSCRIPTION.VIEW" | "ORGANISATIONS_SUBSCRIPTION.UPDATE" | "ORGANISATION_FILES.VIEW" | "ORGANISATION_FILES.CREATE" | "ORGANISATION_FILES.UPDATE" | "ORGANISATION_FILES.DELETE" | "ORGANISATIONS_SETTINGS.VIEW" | "ORGANISATIONS_SETTINGS.UPDATE" | "ASSET_CATEGORIES.VIEW" | "ASSET_CATEGORIES.COMMENT" | "ASSET_CATEGORIES.CREATE" | "ASSET_CATEGORIES.UPDATE" | "ASSET_CATEGORIES.DELETE" | "ASSET_CATEGORIES.VIEW_DELETED" | "ASSET_CATEGORIES.RESTORE" | "CLIENTS.VIEW" | "CLIENTS.COMMENT" | "CLIENTS.CREATE" | "CLIENTS.UPDATE" | "CLIENTS.DELETE" | "CLIENTS.VIEW_DELETED" | "LOCATIONS.VIEW" | "LOCATIONS.COMMENT" | "LOCATIONS.CREATE" | "LOCATIONS.UPDATE" | "LOCATIONS.DELETE" | "LOCATIONS.VIEW_DELETED" | "MANUFACTURERS.VIEW" | "MANUFACTURERS.COMMENT" | "MANUFACTURERS.CREATE" | "MANUFACTURERS.UPDATE" | "MANUFACTURERS.DELETE" | "MANUFACTURERS.VIEW_DELETED" | "ASSET_TYPES.VIEW" | "ASSET_TYPES.COMMENT" | "ASSET_TYPES.CREATE" | "ASSET_TYPES.UPDATE" | "ASSET_TYPES.DELETE" | "ASSET_TYPES.VIEW_DELETED" | "ASSETS.VIEW" | "ASSETS.COMMENT" | "ASSETS.CREATE" | "ASSETS.UPDATE" | "ASSETS.ARCHIVE" | "ASSETS.MANAGE_IDS" | "ASSETS.EDIT_PRICING" | "ASSETS.ADJUST_STOCK" | "ASSETS.SCAN" | "ASSETS.IMPORT" | "ASSETS.DELETE" | "ASSETS.VIEW_DELETED" | "ASSETS.RESTORE" | "MAINTENANCE_JOBS.VIEW" | "MAINTENANCE_JOBS.COMMENT" | "MAINTENANCE_JOBS.CREATE" | "MAINTENANCE_JOBS.UPDATE" | "MAINTENANCE_JOBS.FLAG_AND_BLOCK" | "MAINTENANCE_JOBS.DELETE" | "PROJECTS.VIEW" | "PROJECTS.COMMENT" | "PROJECTS.CREATE" | "PROJECTS.UPDATE" | "PROJECTS.DELETE" | "PROJECTS.VIEW_DELETED" | "PROJECTS.RESTORE" | "PROJECT_TEMPLATES.VIEW" | "PROJECT_TEMPLATES.CREATE" | "PROJECT_TEMPLATES.UPDATE" | "PROJECT_TEMPLATES.DELETE" | "CALENDAR.VIEW" | "DASHBOARD.VIEW" | "PROJECT_ASSETS.VIEW" | "PROJECT_ASSETS.UPDATE" | "PROJECT_ASSETS.PRICES" | "QUOTES.VIEW" | "QUOTES.ISSUE" | "QUOTES.UPDATE" | "INVOICES.VIEW" | "INVOICES.CREATE" | "INVOICES.ISSUE" | "INVOICES.CREDIT" | "PAYMENTS.VIEW" | "PAYMENTS.RECORD" | "PAYMENTS.DELETE" | "PROJECT_CREW.VIEW" | "PROJECT_CREW.UPDATE" | "PROJECT_CREW.EMAIL" | "PROJECT_CREW.RECRUIT" | "PROJECT_CREW.APPLY" | "INSPECTIONS.VIEW" | "INSPECTIONS.RECORD" | "INSPECTIONS.DELETE" | "DOCUMENT_TEMPLATES.VIEW" | "DOCUMENT_TEMPLATES.CREATE" | "DOCUMENT_TEMPLATES.UPDATE" | "DOCUMENT_TEMPLATES.DELETE" | "DOCUMENT_TEMPLATES.EMAIL_CLIENTS" | "ASSET_GROUPS.VIEW" | "ASSET_GROUPS.CREATE" | "ASSET_GROUPS.UPDATE" | "ASSET_GROUPS.DELETE" | "WIKI_PAGES.VIEW" | "WIKI_PAGES.CREATE" | "WIKI_PAGES.UPDATE" | "WIKI_PAGES.DELETE" | "WIKI_PAGES.VIEW_STATS" | "WIKI_PAGES.SET_DASHBOARDS" | "TRAINING_MODULES.VIEW" | "TRAINING_MODULES.CREATE" | "TRAINING_MODULES.UPDATE" | "TRAINING_MODULES.DELETE" | "TRAINING_MODULES.VIEW_PROGRESS" | "CERTIFICATION_TYPES.VIEW" | "CERTIFICATION_TYPES.CREATE" | "CERTIFICATION_TYPES.UPDATE" | "CERTIFICATION_TYPES.DELETE" | "MEMBER_CERTIFICATIONS.VIEW" | "MEMBER_CERTIFICATIONS.CREATE" | "MEMBER_CERTIFICATIONS.UPDATE" | "MEMBER_CERTIFICATIONS.REVOKE" | "LABEL_TEMPLATES.VIEW" | "LABEL_TEMPLATES.CREATE" | "LABEL_TEMPLATES.UPDATE" | "LABEL_TEMPLATES.DELETE" | "PACKAGES.VIEW" | "PACKAGES.CREATE" | "PACKAGES.UPDATE" | "PACKAGES.DELETE" | "PRICE_STRUCTURES.VIEW" | "PRICE_STRUCTURES.CREATE" | "PRICE_STRUCTURES.UPDATE" | "PRICE_STRUCTURES.DELETE" | "CLIENT_PRICING.VIEW" | "CLIENT_PRICING.CREATE" | "CLIENT_PRICING.UPDATE" | "CLIENT_PRICING.DELETE" | "CUSTOM_FIELDS.VIEW" | "CUSTOM_FIELDS.CREATE" | "CUSTOM_FIELDS.UPDATE" | "CUSTOM_FIELDS.DELETE" | "COMMENTS.VIEW" | "COMMENTS.UPDATE" | "SEARCH.VIEW" | "APPS.VIEW" | "APPS.CREATE" | "APPS.UPDATE" | "APPS.DELETE" | "APPS.INSTALL" | "APPS.RUN" | "APPS.PUBLISH")[]

Everything members with this role can do

memberCountinteger

How many current members have this role

positioninteger

Where a custom role is listed, lowest first. Built-in roles always come first

Scan

A sighting of an asset

CampoTipoDescrição
uuidstring

Unique identifier of the scan

sessionUUIDstring | null

UUID of the session it was made in, or null if it was imported from the previous version of AdamRMS

assetScannedAsset

valuestring

What was read or typed

quantityinteger

How many were seen: 1 for a unit, up to the lot's size

method"CAMERA" | "SCANNER" | "TYPED" | "SCANNED"

`CAMERA`, `SCANNER` (a handheld or Bluetooth scanner), `TYPED`, or `SCANNED` for an imported scan where the device isn't known

locationobject | null

Where it was seen, or null

caseobject | null

The case it was scanned into, or null

customLocationstring | null

A location typed as text in the previous version of AdamRMS

locationVerifiedboolean

The location was proved by scanning its barcode in the same session

movedboolean

The scan changed the asset's location or case

latitudenumber | null

Device latitude, or null

longitudenumber | null

Device longitude, or null

accuracyMetresnumber | null

How accurate the position was, in metres, or null

condition"GOOD" | "WORN" | "DAMAGED" | null

`GOOD`, `WORN` or `DAMAGED`, or null if not rated

conditionNotestring | null

A note on its condition

photosScanPhoto[]

Condition photos

videoFileUUIDstring | null

UUID of the footage of the scan, or null if there is none or it has expired

videoExpiresAtstring (date-time) | null

When the footage will be deleted, or null to keep it forever

scannedByUserUuidstring | null

UUID of the member who scanned it

scannedByNamestring | null

Name of the member who scanned it, or null if not known

scannedAtstring (date-time)

When it was scanned

ScannedAsset

The parts of an asset the scanner shows

CampoTipoDescrição
uuidstring

UUID of the asset

primaryIDstring

The asset's primary asset ID

assetTypeUUIDstring

UUID of its asset type

assetTypeNamestring

Name of its asset type

assetTypeThumbnailUUIDstring | null

UUID of the asset type's thumbnail, or null

categoryUUIDstring

UUID of its category

tracking"INDIVIDUAL" | "BULK"

`INDIVIDUAL` for one unit, `BULK` for a lot

quantityinteger

1 for a unit; the items in a lot

storageLocationUUIDstring | null

UUID of the location it is kept at, or null

storageLocationNamestring | null

Name of the location it is kept at, or null

parentUUIDstring | null

UUID of the case it is kept in, or null

parentPrimaryIDstring | null

Primary asset ID of the case it is kept in, or null

archivedboolean

The asset is archived

ScanPhoto

A condition photo taken with a scan

CampoTipoDescrição
uuidstring

UUID of the photo

fileUUIDstring

UUID of the image file, at /{locale}/org/{organisationSlug}/files/view/{fileUUID}

createdAtstring (date-time)

When it was taken

ScanPreset

A saved way to start the scanner

CampoTipoDescrição
uuidstring

Unique identifier of the preset

namestring

Display name

targetKind"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

What it scans into

locationUUIDstring | null

UUID of the target location, or null

locationNamestring | null

Name of the target location, or null

caseUUIDstring | null

UUID of the target case, or null

casePrimaryIDstring | null

Primary asset ID of the target case, or null

mode"RECORD" | "MOVE"

`RECORD` or `MOVE`

includeSubLocationsboolean

Stock checks only: include locations inside the target

filmingboolean

Film scans

photosRequiredboolean

Require a condition photo

inspectionTemplateobject | null

Each asset scanned is inspected with this template, such as PAT testing a batch, or null

createdAtstring (date-time)

When it was saved

ScanSession

A run of the scanner, with what it scans into

CampoTipoDescrição
uuidstring

Unique identifier of the session

targetScanTarget

mode"RECORD" | "MOVE"

`RECORD` only records where assets were seen. `MOVE` also sets each asset's storage location (and takes it out of any case) or puts it in the case

includeSubLocationsboolean

Stock checks only: assets stored in locations inside the target are expected too

targetVerifiedboolean

The target was proved by scanning its barcode, rather than picked from a list

filmingboolean

Scans in this session are filmed, where the device can

photosRequiredboolean

Every scan in this session needs a condition photo

inspectionTemplateobject | null

Each asset scanned is inspected with this template, such as PAT testing a batch, or null

startedByUserUuidstring | null

UUID of the member who started it

scanCountinteger

How many scans were recorded

startedAtstring (date-time)

When it started

endedAtstring (date-time) | null

When it was ended, or null while it is open

ScanSettings

How the organisation's scanner films and photographs scans

CampoTipoDescrição
filming"OFF" | "DEFAULT_ON" | "REQUIRED"

Filming scans: `OFF` (off unless turned on), `DEFAULT_ON` (on unless turned off) or `REQUIRED`

photos"OFF" | "DEFAULT_ON" | "REQUIRED"

Condition photos with every scan: `OFF`, `DEFAULT_ON` or `REQUIRED`

footageRetentionDaysinteger

How many days footage is kept for, or 0 to keep it forever

ScanTarget

What a scan session scans into

CampoTipoDescrição
kind"LOCATION" | "CASE" | "STOCK_CHECK" | "NONE" | "PROJECT"

`LOCATION`, `CASE` (scanning into an asset such as a flight case), `STOCK_CHECK` (checking a location against what should be there), `NONE` (just recording sightings) or `PROJECT` (prepping, sending out or checking back a project's assets)

locationobject | null

The location, for LOCATION and STOCK_CHECK

locationPathobject[]

The locations the target location is inside, outermost first

locationPath[].uuidstring

UUID of the location

locationPath[].namestring

Name of the location

caseScannedAsset | null

The case, for CASE

projectobject | null

The project, for PROJECT

SearchResult

CampoTipoDescrição
kind"asset-type" | "asset" | "project" | "client" | "location" | "wiki-page" | "member"

What the record is. Apart from `member`, its key is also the record type used for comments and files

uuidstring

The record's UUID

titlestring

The record's name. For an asset, its primary tag (or another identifier if it has no primary one)

numberinteger | null

The project's number, or null for other kinds

detailstring | null

For an asset, the name of its asset type. For a member, their job title. Null otherwise

snippetstring | null

A short extract of the record's text around what matched, such as a client's notes or a wiki page's content. Null if it has none

archivedboolean

Whether the record is archived

SecuritySettings

Which roles must use two-factor authentication, and when idle members are signed out

CampoTipoDescrição
idleTimeoutMinutes15 | 30 | 60 | 120 | 240 | 480 | null

Sign members out after this many minutes without using the organisation, such as on a shared warehouse computer: one of 15, 30, 60, 120, 240, 480, or null for never. Using the dashboard or another organisation doesn't count as using this one

mfaRequiredRoleUUIDsstring[]

UUIDs of the roles whose members must use two-factor authentication. Members with these roles who haven't set it up can't use the organisation until they do. Empty for none

Service

Something the organisation charges for that isn't stock, such as delivery or a technician day

CampoTipoDescrição
uuidstring

Unique identifier of the service

namestring

Display name, such as 'Delivery' or 'Technician day'

descriptionstring | null

What the service is, shown on quotes, or null

rateinteger | null

Rate of one in the smallest currency unit (such as pence). How a project's length multiplies it is set by the price structure. Null if it's priced on each project

priceStructureUUIDstring | null

UUID of the price structure that sets how the length of a project multiplies the rate. Null for the organisation's default

taxRateUUIDstring | null

UUID of the tax rate it's charged at. Null for the organisation's default rate

costinteger | null

What one costs the organisation, in the smallest currency unit, for working out margin, or null

certificationTypesobject[]

Certifications crew charged as it need, such as IPAF for a rigger. Empty for none

certificationTypes[].uuidstring

UUID of the certification type

certificationTypes[].namestring

The certification type's name

createdAtstring (date-time)

When the service was created

updatedAtstring (date-time)

When the service last changed

SingleSignOn

The organisation's SAML single sign-on

CampoTipoDescrição
enabledboolean

Whether members can sign in through the identity provider

requiredboolean

Whether members at a verified domain must sign in through the identity provider to use the organisation. Administrators can still sign in another way

idpEntityIdstring | null

The identity provider's entity ID (its issuer)

idpSignOnUrlstring | null

The identity provider's single sign-on URL, for the HTTP-Redirect binding

idpCertificatesobject[]

Certificates the identity provider signs responses with

idpCertificates[].pemstring

The certificate, PEM encoded

idpCertificates[].subjectstring

Who the certificate names

idpCertificates[].validTostring (date-time)

When the certificate expires. Sign-in stops working after it

newMemberRoleUUIDstring | null

UUID of the role people get when they first sign in through single sign-on and aren't yet members

serviceProviderobject

What to enter in the identity provider

serviceProvider.entityIdstring

AdamRMS's entity ID, for the identity provider

serviceProvider.acsUrlstring

The assertion consumer service (reply) URL, for the identity provider

serviceProvider.metadataUrlstring

AdamRMS's SAML metadata

serviceProvider.signInUrlstring

A link that starts signing in through single sign-on

domainsSingleSignOnDomain[]

The organisation's email domains for single sign-on

SingleSignOnDomain

An email domain for single sign-on

CampoTipoDescrição
domainstring

The email domain, such as `example.com`

verifiedboolean

Whether the organisation has proved it owns the domain. Single sign-on only signs in addresses at verified domains

verifiedAtstring (date-time) | null

When the domain was verified, or null if it isn't yet

txtRecordNamestring

The DNS name the TXT record goes on to verify the domain

txtRecordValuestring

The value the TXT record must hold to verify the domain

StatementEntry

One line of a client's statement

CampoTipoDescrição
kind"INVOICE" | "DEPOSIT" | "CREDIT_NOTE" | "PAYMENT" | "REFUND"

INVOICE and DEPOSIT are issued invoices and deposit invoices, CREDIT_NOTE an issued credit note, PAYMENT money received and REFUND money paid back

uuidstring

UUID of the invoice, credit note or payment

datestring (date-time)

When the invoice was issued, or the payment made

numberstring | null

The invoice or credit note's number. Null for payments

referencestring | null

The client's reference on an invoice, such as a purchase order, or the payment's reference

dueAtstring (date-time) | null

When an invoice or deposit invoice is due to be paid

invoiceobject | null

For a payment or refund, the invoice it pays or refunds. For a credit note, the invoice it credits

projectobject

The project it's on

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

amountinteger

What it changes the balance by, with tax. Positive adds to what the client owes (invoices, refunds), negative takes it off (credit notes, payments)

balanceinteger

What the client owes after this entry

StockMovement

One change to a lot's quantity

CampoTipoDescrição
uuidstring

Unique identifier of the movement

deltainteger

How many items were added (or taken, if negative)

reason"OPENING_BALANCE" | "PURCHASE" | "FOUND" | "WRITE_OFF" | "CONSUMED" | "COUNT_CORRECTION" | "SPLIT" | "MERGE" | "IMPORT"

Why the stock changed

notestring | null

A note on the change, or null

byUserUUIDstring | null

UUID of the user who recorded it, or null

createdAtstring (date-time)

When it was recorded

SubHire

Stock hired in from a supplier to fill a line

CampoTipoDescrição
uuidstring

Unique identifier of the sub-hire

supplierClientUUIDstring | null

UUID of the supplier, a client, or null

supplierClientNamestring | null

The supplier client's name, or null

supplierNamestring | null

The supplier's name when it isn't a client, or null

referencestring | null

The supplier's reference, such as their order number

quantityinteger

How many are hired in. They count as stock for this line only

costinteger | null

What the whole sub-hire costs, in the smallest currency unit. Null if unknown, or if you can't see prices

startstring (date-time) | null

When it arrives, or null

endstring (date-time) | null

When it goes back, or null

TaxRate

A tax rate

CampoTipoDescrição
uuidstring

Unique identifier of the tax rate

namestring

Display name, for example 'Standard'

rateBpinteger

The rate in basis points: 2000 is 20%. 0 unless `STANDARD`

kind"STANDARD" | "ZERO" | "EXEMPT" | "REVERSE_CHARGE"

`STANDARD` (a percentage), `ZERO` (zero-rated), `EXEMPT` (no tax applies) or `REVERSE_CHARGE` (the client accounts for the tax)

codestring | null

Its code in accounting software, such as Xero's 'OUTPUT2', or null

isDefaultboolean

Anything with no rate of its own is taxed at this one

sortOrderinteger

Position in the list, 0-based

createdAtstring (date-time)

When the rate was created

updatedAtstring (date-time)

When the rate last changed

TaxSettings

Tax settings

CampoTipoDescrição
taxNamestring

What tax is called on documents, such as 'VAT', 'GST' or 'Sales tax'

TaxTotal

One tax rate's share of a project's total

CampoTipoDescrição
taxRateUUIDstring | null

UUID of the tax rate, or null for lines with no tax

namestring

The rate's name, or empty for lines with no tax

rateBpinteger

The rate in basis points

netinteger

Net of the lines at this rate

taxinteger

Tax at this rate

TrainingModule

A training module

CampoTipoDescrição
uuidstring

Unique identifier of the module

namestring

What it is called

descriptionstring | null

What it is about, or null

learningObjectivesstring | null

What members will be able to do once they finish, in Markdown

iconstring | null

Icon reference: `tabler:<name>` or `custom:<uuid>`

type"ONLINE" | "HYBRID" | "IN_PERSON"

ONLINE: members work through the steps, and finishing them awards the certification. HYBRID: members work through the steps, then someone signs them off. IN_PERSON: there are no steps to finish; someone signs members off after training them

publishedboolean

Whether members can see it. Drafts are only seen by editors

certificationTypeobject | null

The certification it awards, or null

visibleToRolesobject[]

Roles that may see it. Empty for every member

visibleToRoles[].uuidstring

visibleToRoles[].namestring

stepCountinteger

Number of published steps

estimatedMinutesinteger

Total estimated minutes of its published steps

authorobject | null

Who created it, or null

myProgressobject | null

How far the caller has got, or null if they haven't started

myCertificationobject | null

The caller's best certification of the type this module awards, or null

createdAtstring (date-time)

When it was created

updatedAtstring (date-time)

When it last changed

TrainingStep

One step of a training module

CampoTipoDescrição
uuidstring

Unique identifier of the step

namestring

The step's title

type"TEXT" | "VIDEO"

TEXT or VIDEO

contentstring

Markdown: the step's text, or for a video what shows under it. Images are `![name](file:<uuid>)`, files of the module

videoIdstring | null

The YouTube video's ID, for a VIDEO step

estimatedMinutesinteger

Roughly how long it takes

internalNotesstring | null

Notes only editors see. Null for everyone else

publishedboolean

Whether members see it. Unpublished steps are only seen by editors

completedboolean

Whether the caller has done it

UnpaidInvoice

An issued invoice with something still to pay

CampoTipoDescrição
uuidstring

UUID of the invoice

kind"INVOICE" | "DEPOSIT"

Invoice or deposit invoice

numberstring | null

The invoice's number

issuedAtstring (date-time) | null

When it was issued

dueAtstring (date-time) | null

When it's due to be paid

overdueboolean

True once its due date has passed

grossinteger

Its total, with tax

dueinteger

What's still to pay on it, less partial credit notes

projectobject

The project it's on

project.uuidstring

UUID of the project

project.numberinteger

The project's number

project.namestring

The project's name

VacancyQuestion

A question applicants answer

CampoTipoDescrição
namestring

The question, such as 'Have you used a GrandMA3?'

min length: 1 · max length: 500

notesstring | null

Help shown under the question, or null

default: null

type"text" | "textarea"

text for a one-line answer, textarea for a longer one

default: "text"

placeholderstring | null

Example text shown in the empty answer box, or null

default: null

Webhook

An address AdamRMS sends signed events to when things change

CampoTipoDescrição
uuidstring

The webhook's UUID

urlstring

The HTTPS address events are sent to

descriptionstring | null

What the webhook is for, such as the system it feeds

eventsstring[]

The event types it is sent: function keys such as `clients.create`, or a whole feature such as `clients.*`

activeboolean

Whether it is sent events. Turned off by hand, or automatically when the receiver answers 410 Gone

disabledReasonstring | null

Why AdamRMS turned it off, if it did

ownerUserUuidstring

UUID of the member who made it. It is only sent events about records they can see

createdAtstring (date-time)

When it was made

lastDeliveryobject | null

The latest event sent to it, or null if none has been

WebhookDelivery

One event sent to a webhook, with its latest attempt

CampoTipoDescrição
uuidstring

The event's ID, sent as the `webhook-id` header

eventTypestring

The function whose call made the event, such as `clients.create`

status"PENDING" | "SUCCEEDED" | "FAILED" | "SKIPPED"

PENDING while it is waiting to be sent or retried, SUCCEEDED once the receiver answered with a 2xx status, FAILED when every attempt failed, SKIPPED when it wasn't sent

attemptsinteger

How many times it has been sent

lastStatusCodeinteger | null

The HTTP status of the latest attempt, or null if it got none

lastErrorstring | null

What went wrong with the latest attempt, if anything

nextAttemptAtstring (date-time) | null

When it will next be sent, while it is pending

lastAttemptAtstring (date-time) | null

When it was last sent

createdAtstring (date-time)

When the event happened

WikiCard

One box of content on a wiki page

CampoTipoDescrição
titlestring | null

Heading shown at the top of the card, or null for none

default: null

colour"DEFAULT" | "BLUE" | "CYAN" | "TEAL" | "GREEN" | "LIME" | "YELLOW" | "ORANGE" | "RED" | "PINK" | "GRAPE" | "VIOLET" | "INDIGO" | "GRAY" | "DARK"

The card's colour. `DEFAULT` is the page's own background colour

default: "DEFAULT"

style"OUTLINE" | "FILLED"

`OUTLINE` draws a coloured border around the card. `FILLED` fills the card with a light shade of its colour

default: "OUTLINE"

width"FULL" | "THREE_QUARTERS" | "TWO_THIRDS" | "HALF" | "THIRD" | "QUARTER"

How much of the page's width the card takes on a wide screen. Cards sit side by side until a row is full. Phones show every card full width

default: "FULL"

contentstring

The card's text, in Markdown (GitHub flavoured: headings, lists, tables, links). Show an image attached to the page with `![description](file:<file uuid>)`. HTML is shown as plain text

default: "" · max length: 100000

WikiPage

A page in the organisation's wiki, such as a warehouse procedure. Its content is its newest revision

CampoTipoDescrição
uuidstring

Unique identifier of the page

namestring

The page's title, such as 'Loading the van'

descriptionstring | null

A sentence about what the page is for, or null

iconstring | null

The page's icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:book`), or `custom:<uuid>` for one the organisation uploaded. Null for none

parentUUIDstring | null

UUID of the page this is a sub-page of, or null for a top-level page

parentNamestring | null

Name of the parent page, or null for a top-level page

showInMenuboolean

True if the page is listed in the side menu, for the members who can see it

showSubPagesboolean

True if the page lists its sub-pages, under its cards

showFilesboolean

True if the page lists its files, under its cards

menuOrderinteger

Where the page comes in the side menu and among its sibling pages: lowest first

visibleToRolesobject[]

The roles whose members can see the page. Empty means every member can. Members who can edit pages see every page

visibleToRoles[].uuidstring

UUID of the role

visibleToRoles[].namestring

The role's name

revisioninteger

Number of the newest revision: the one the page shows

subPageCountinteger

How many live sub-pages it has that the caller can see

archivedboolean

True if the page is archived: kept, but left out of the menu and the list of pages

createdAtstring (date-time)

When the page was created

updatedAtstring (date-time)

When the page or its content last changed

WikiPageWithContent

A wiki page with the content of one of its revisions

CampoTipoDescrição
uuidstring

Unique identifier of the page

namestring

The page's title, such as 'Loading the van'

descriptionstring | null

A sentence about what the page is for, or null

iconstring | null

The page's icon: `tabler:<name>` for an icon from the Tabler library (https://tabler.io/icons, e.g. `tabler:book`), or `custom:<uuid>` for one the organisation uploaded. Null for none

parentUUIDstring | null

UUID of the page this is a sub-page of, or null for a top-level page

parentNamestring | null

Name of the parent page, or null for a top-level page

showInMenuboolean

True if the page is listed in the side menu, for the members who can see it

showSubPagesboolean

True if the page lists its sub-pages, under its cards

showFilesboolean

True if the page lists its files, under its cards

menuOrderinteger

Where the page comes in the side menu and among its sibling pages: lowest first

visibleToRolesobject[]

The roles whose members can see the page. Empty means every member can. Members who can edit pages see every page

visibleToRoles[].uuidstring

UUID of the role

visibleToRoles[].namestring

The role's name

revisioninteger

Number of the newest revision: the one the page shows

subPageCountinteger

How many live sub-pages it has that the caller can see

archivedboolean

True if the page is archived: kept, but left out of the menu and the list of pages

createdAtstring (date-time)

When the page was created

updatedAtstring (date-time)

When the page or its content last changed

contentobject | null

The revision asked for (the newest by default) with its cards, or null if the page has never been saved

WikiRevisionSummary

One saved version of a page, without its content

CampoTipoDescrição
revisioninteger

Revision number, counting up from 1

changelogstring | null

The editor's note about what changed, or null

authorUUIDstring | null

UUID of the member who saved it, or null if not known

authorNamestring | null

Name of the member who saved it, or null if not known

createdAtstring (date-time)

When it was saved