POST/order-types/{typeId}/effects
Adds an effect to an order type and returns its id. Conditions and outputs may reference only what the type places. Core conditions may test
name, declaredStatus (eq, in or changed, with order statuses) and the quoteUploaded, quoteChosen and invoiceUploaded events (eq true); a
document event notifies once per document. Needs Order.Configure at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| typeId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| index | integer | Optional | |
| rootLogic | string | Optional | |
| groups | CreateOrderTypeEffectRequestConditionGroup[] | Optional | |
| outputs | CreateOrderTypeEffectRequestOutput[] | Optional | |
CreateOrderTypeEffectRequestConditionGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| conditions | CreateOrderTypeEffectRequestCondition[]| null | |
CreateOrderTypeEffectRequestOutput
| Field | Type | Description |
|---|
| type | string| null | |
| subjectTemplate | string| null | |
| bodyTemplate | string| null | |
| recipients | CreateOrderTypeEffectRequestOutputRecipient[]| null | |
| roleDefinitionId | uuid| null | |
| targetAttributeId | uuid| null | |
| required | boolean| null | |
| isRequired | boolean| null | |
| isTaskTracked | boolean| null | |
| isTaskReviewRequired | boolean| null | |
| fillSource | string| null | |
| sourceQuestionId | uuid| null | |
| sourceRoleDefinitionId | uuid| null | |
| fillValue | string| null | |
CreateOrderTypeEffectRequestCondition
| Field | Type | Description |
|---|
| sourceKind | string| null | |
| sourceId | uuid| null | |
| sourcePath | string| null | |
| operator | string| null | |
| value | string| null | |
CreateOrderTypeEffectRequestOutputRecipient
| Field | Type | Description |
|---|
| crewId | uuid| null | |
| roleDefinitionId | uuid| null | |
| channel | string| null | |
Response
Type: uuid