Docs
Create Resource
POST /resources
POST
/resourcesCreates one inventory resource and returns its id; the variant's axis values are written onto it from the variant. The resourceTypeId and resourceVariantId (a live variant of the type) come from the Organization API's ResourceTypes_Get and ResourceTypes_GetVariants, and a rateCardId must be one of the type's own cards. For a Crew resource, crewId comes from Crew_GetCrew. A required Inventory-active attribute (not Checkbox) cannot be left blank in attributeValues. To create many units of one type and variant at once, use Resources_BulkCreateResources. Needs the resource inventory edit permission.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | Optional | |
| resourceTypeId | uuid | Optional | |
| resourceVariantId | uuid | Optional | |
| name | string | Optional | |
| label | string | Optional | |
| identifier | string | Optional | |
| quantity | integer | Optional | |
| crewId | uuid | Optional | |
| settlement | string | Optional | |
| rateCardId | uuid | Optional | |
| attributeValues | CreateResourceRequestAttributeValue[] | Optional |
CreateResourceRequestAttributeValue
| Field | Type | Description |
|---|---|---|
| resourceAttributeId | uuid | |
| value | string| null |
Response
Type: uuid