POST/area-types/{typeId}/effects
Adds an effect to an area type and returns its id. Conditions and outputs may reference only what the type places; runsAt is Org or Event.
Needs Area.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 | |
| runsAt | string | Optional | |
| groups | CreateAreaTypeEffectRequestConditionGroup[] | Optional | |
| outputs | CreateAreaTypeEffectRequestOutput[] | Optional | |
CreateAreaTypeEffectRequestConditionGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| conditions | CreateAreaTypeEffectRequestCondition[]| null | |
CreateAreaTypeEffectRequestOutput
| Field | Type | Description |
|---|
| type | string| null | |
| subjectTemplate | string| null | |
| bodyTemplate | string| null | |
| recipients | CreateAreaTypeEffectRequestOutputRecipient[]| 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 | |
CreateAreaTypeEffectRequestCondition
| Field | Type | Description |
|---|
| sourceKind | string| null | |
| sourceId | uuid| null | |
| sourcePath | string| null | |
| operator | string| null | |
| value | string| null | |
CreateAreaTypeEffectRequestOutputRecipient
| Field | Type | Description |
|---|
| crewId | uuid| null | |
| roleDefinitionId | uuid| null | |
| channel | string| null | |
Response
Type: uuid