POST/collaborator-types/{typeId}/effects
Adds an effect to a collaborator type and returns its id. runsAt is Org (runs on the collaborator record) or Event (runs on each event the collaborator 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
CollaboratorDatabase_GetCollaboratorTypeEffectTypes lists; any other output is refused. Crew recipients need a connected account. Needs Collaborator.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 | CreateCollaboratorTypeEffectRequestConditionGroup[] | Optional | |
| outputs | CreateCollaboratorTypeEffectRequestOutput[] | Optional | |
CreateCollaboratorTypeEffectRequestConditionGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| conditions | CreateCollaboratorTypeEffectRequestCondition[]| null | |
CreateCollaboratorTypeEffectRequestOutput
| Field | Type | Description |
|---|
| type | string| null | |
| subjectTemplate | string| null | |
| bodyTemplate | string| null | |
| recipients | CreateCollaboratorTypeEffectRequestOutputRecipient[]| 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 | |
CreateCollaboratorTypeEffectRequestCondition
| Field | Type | Description |
|---|
| sourceKind | string| null | |
| sourceId | uuid| null | |
| sourcePath | string| null | |
| operator | string| null | |
| value | string| null | |
CreateCollaboratorTypeEffectRequestOutputRecipient
| Field | Type | Description |
|---|
| crewId | uuid| null | |
| roleDefinitionId | uuid| null | |
| channel | string| null | |
Response
Type: uuid