Skip to main content
POST
/
cleemy-procurement
/
api
/
natures
Create a Nature
curl --request POST \
  --url https://{host}/cleemy-procurement/api/natures \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "costFamilyId": 123,
  "state": "Enabled",
  "accountingPlans": [
    {
      "id": 123,
      "chargeAccount": "<string>"
    }
  ]
}
'
{
  "id": 123,
  "name": "<string>",
  "costFamily": {
    "id": 123,
    "name": "<string>"
  },
  "state": "Enabled",
  "accountingPlans": [
    {
      "id": 123,
      "chargeAccount": "<string>"
    }
  ]
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Body

application/json

Nature to create.

A purchase nature (category).

name
string
costFamilyId
integer<int32> | null

Write-only. ID of the cost family.

state
enum<string>
Available options:
Enabled,
Disabled
accountingPlans
object[]

Accounting plans for this nature.

Response

201 - application/json

Created

A purchase nature (category).

id
integer<int32>
name
string
costFamily
object

Read-only. Cost family of this nature.

state
enum<string>
Available options:
Enabled,
Disabled
accountingPlans
object[]

Accounting plans for this nature.