Docs
Create Order Type Document
POST /order-types/{typeId}/documents
POST
/order-types/{typeId}/documentsAttaches a document template to the order type with a source for each input; every required input needs one. Returns the new id. documentTemplateId from DynamicDocs_GetDocumentTemplates. Needs Order.Configure at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| documentTemplateId | uuid | Optional | |
| name | string | Optional | |
| inputs | CreateOrderTypeDocumentRequestInput[] | Optional |
CreateOrderTypeDocumentRequestInput
| Field | Type | Description |
|---|---|---|
| filterId | uuid | |
| sourceKind | string| null | |
| hostField | string| null | |
| eventAttributeId | uuid| null | |
| fixedValues | string[]| null |
Response
Type: uuid