Skip to main content
POST
/
coa
/
api
/
fixed-asset-automation
/
cURL
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/fixed-asset-automation/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "account": 123,
  "amount_threshold": 0,
  "asset_class": 123,
  "needs_review": true,
  "forward_looking": true
}
'
{
  "id": 123,
  "name": "<string>",
  "account": 123,
  "account_name": "<string>",
  "amount_threshold": 0,
  "asset_class": 123,
  "asset_class_name": "<string>",
  "needs_review": true,
  "forward_looking": true,
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Serializer for automation rules

name
string
required

Descriptive name for this rule

Maximum length: 255
account
integer
required

Create assets when transactions are posted to this account

amount_threshold
number
required

Minimum transaction amount (materiality threshold)

Required range: -1000000000000000000 < x < 1000000000000000000
asset_class
integer
required

Asset class to use for created assets

needs_review
boolean

If true, queue assets for review before creation

forward_looking
boolean

Only apply to transactions created after this rule

Response

201 - application/json

Serializer for automation rules

id
integer
required
name
string
required

Descriptive name for this rule

Maximum length: 255
account
integer
required

Create assets when transactions are posted to this account

account_name
string
required
amount_threshold
number
required

Minimum transaction amount (materiality threshold)

Required range: -1000000000000000000 < x < 1000000000000000000
asset_class
integer
required

Asset class to use for created assets

asset_class_name
string
required
created_at
string<date-time>
required
last_modified_at
string<date-time>
required
needs_review
boolean

If true, queue assets for review before creation

forward_looking
boolean

Only apply to transactions created after this rule