Docs

Create Procurement

POST /procurements

POST/procurements

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Creates a procurement, optionally with groups and needs in the same call.

Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay name.
descriptionstringOptionalDescription.
groupsarrayOptional`{ name, notes }`. Needs reference a group by its index in this list.
resourcesarrayOptionalInitial needs. Pass `[]` for none.
resources[].resourceTypeIdGuidRequiredThe resource type.
resources[].quantitydecimalRequiredQuantity.
resources[].areaIdGuid?OptionalArea context.
resources[].groupIndexint?OptionalIndex into `groups`. Null leaves the need ungrouped.
resources[].attributeValuesarrayOptional`{ resourceAttributeId, value }`: values for attributes placed on the type and active on Procurement. A `Select` value is the option id.

Response

201 Created with the new procurement's id as a bare Guid.