Stage types

Read-only. A static table rebuilt on every NolaPro update.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
codestring(100)Short code of the stage type.
tablenamestring(100)Table the stage applies to (which document type carries this stage).
titlestring(255)Stage title shown on screens.
descriptiontextDescription. Stored as text, no practical length limit.
modaccessstring(150)Module whose access rights govern the stage (ap, ar).
modbitstring(20)Access bits string checked against the user’s module rights.

Endpoints#

GET/stagetypes 200403

List stage types.

Requires scope setup:read.

Parameters
NameInTypeNotes
descriptionquerystringdescription. Partial match, case-insensitive.
codequerystringcode. Partial match, case-insensitive.
titlequerystringtitle. Partial match, case-insensitive.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks read scope.
curl \
  'https://acme.nolapro.com/!/api/v2/stagetypes' \
  -H 'Authorization: Bearer $NP_TOKEN'
GET/stagetypes/{id} 200404

Retrieve one record.

Requires scope setup:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/stagetypes/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "code": "ACME-01",
    "tablename": "Example tablename",
    "title": "Example title",
    "description": "Example description",
    "modaccess": "Example modaccess",
    "modbit": "Example modbit"
}