Asset categories

Grouping for fixed assets.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
namestring(255)Name of the asset category.
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
accumulateddepreciationglaccountidintegerReference to glaccounts, by id. Write either this or accumulateddepreciationglaccount.
accumulateddepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or accumulateddepreciationglaccountid, not both unless they agree.
assetglaccountidintegerReference to glaccounts, by id. Write either this or assetglaccount.
assetglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or assetglaccountid, not both unless they agree.
expenseglaccountidintegerReference to glaccounts, by id. Write either this or expenseglaccount.
expenseglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expenseglaccountid, not both unless they agree.
expensedepreciationglaccountidintegerReference to glaccounts, by id. Write either this or expensedepreciationglaccount.
expensedepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expensedepreciationglaccountid, not both unless they agree.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/assetcategories/batch 207

Create many.

Requires scope assets:write.

Parameters
NameInTypeNotes
Body array
FieldTypeDescription
idread-onlyintegerNolaPro id.
namestring(255)Name of the asset category.
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
accumulateddepreciationglaccountidintegerReference to glaccounts, by id. Write either this or accumulateddepreciationglaccount.
accumulateddepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or accumulateddepreciationglaccountid, not both unless they agree.
assetglaccountidintegerReference to glaccounts, by id. Write either this or assetglaccount.
assetglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or assetglaccountid, not both unless they agree.
expenseglaccountidintegerReference to glaccounts, by id. Write either this or expenseglaccount.
expenseglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expenseglaccountid, not both unless they agree.
expensedepreciationglaccountidintegerReference to glaccounts, by id. Write either this or expensedepreciationglaccount.
expensedepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expensedepreciationglaccountid, not both unless they agree.
externalidstring(100)Your own key. Scoped to your company.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/assetcategories/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "name": "Example name",
        "accumulateddepreciationglaccountid": 104,
        "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
        "assetglaccountid": 104,
        "assetglaccount": "Example assetglaccount",
        "expenseglaccountid": 104
    }
]'
GET/assetcategories 200403

List asset categories.

Requires scope assets:read.

Parameters
NameInTypeNotes
namequerystringPartial match, case insensitive.
cancelquerystringDefaults to false. Pass true or any.
externalidquerystringExact match on your own key.
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/assetcategories' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/assetcategories 201400

Create.

Requires scope assets:write.

Parameters
NameInTypeNotes
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
namestring(255)Name of the asset category.
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
accumulateddepreciationglaccountidintegerReference to glaccounts, by id. Write either this or accumulateddepreciationglaccount.
accumulateddepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or accumulateddepreciationglaccountid, not both unless they agree.
assetglaccountidintegerReference to glaccounts, by id. Write either this or assetglaccount.
assetglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or assetglaccountid, not both unless they agree.
expenseglaccountidintegerReference to glaccounts, by id. Write either this or expenseglaccount.
expenseglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expenseglaccountid, not both unless they agree.
expensedepreciationglaccountidintegerReference to glaccounts, by id. Write either this or expensedepreciationglaccount.
expensedepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expensedepreciationglaccountid, not both unless they agree.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
400invalid_requestA required field was missing.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/assetcategories' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}'
Response 201
{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}
GET/assetcategories/{id} 200404

Retrieve one record.

Requires scope assets: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/assetcategories/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}
PATCH/assetcategories/{id} 200404

Update.

Requires scope assets:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
namestring(255)Name of the asset category.
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
accumulateddepreciationglaccountidintegerReference to glaccounts, by id. Write either this or accumulateddepreciationglaccount.
accumulateddepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or accumulateddepreciationglaccountid, not both unless they agree.
assetglaccountidintegerReference to glaccounts, by id. Write either this or assetglaccount.
assetglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or assetglaccountid, not both unless they agree.
expenseglaccountidintegerReference to glaccounts, by id. Write either this or expenseglaccount.
expenseglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expenseglaccountid, not both unless they agree.
expensedepreciationglaccountidintegerReference to glaccounts, by id. Write either this or expensedepreciationglaccount.
expensedepreciationglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or expensedepreciationglaccountid, not both unless they agree.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X PATCH \
  'https://acme.nolapro.com/!/api/v2/assetcategories/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}'
Response 200
{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}
DELETE/assetcategories/{id} 200404

Cancel.

Requires scope assets:cancel.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X DELETE \
  'https://acme.nolapro.com/!/api/v2/assetcategories/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "name": "Example name",
    "accumulateddepreciationglaccountid": 104,
    "accumulateddepreciationglaccount": "Example accumulateddepreciationglaccount",
    "assetglaccountid": 104,
    "assetglaccount": "Example assetglaccount",
    "expenseglaccountid": 104
}