POST/crew/types/{typeId}/effects
Organization crew (an organization token and an organization crew type id): Adds an effect to a crew type and returns its id. runsAt is Org (runs on the crew
record) or Event (runs on each event the crew member is on). An effect has a name, index, root logic (AND or OR), at least one condition group and at least one
output; it starts enabled. Conditions read Core (path name only), Attribute, Role or IntakeAnswer sources, each naming a definition placed on this type or a
question on its intake form. Outputs are those Crew_GetCrewTypeEffectTypes lists; any other output is refused. Crew recipients need a connected account.
Needs Crew.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 | CreateCrewTypeEffectRequestConditionGroup[] | Optional | |
| outputs | CreateCrewTypeEffectRequestOutput[] | Optional | |
CreateCrewTypeEffectRequestConditionGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| conditions | CreateCrewTypeEffectRequestCondition[]| null | |
CreateCrewTypeEffectRequestOutput
| Field | Type | Description |
|---|
| type | string| null | |
| subjectTemplate | string| null | |
| bodyTemplate | string| null | |
| recipients | CreateCrewTypeEffectRequestOutputRecipient[]| 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 | |
CreateCrewTypeEffectRequestCondition
| Field | Type | Description |
|---|
| sourceKind | string| null | |
| sourceId | uuid| null | |
| sourcePath | string| null | |
| operator | string| null | |
| value | string| null | |
CreateCrewTypeEffectRequestOutputRecipient
| Field | Type | Description |
|---|
| crewId | uuid| null | |
| roleDefinitionId | uuid| null | |
| channel | string| null | |
Response
Type: uuid