Docs

Create Collaborator Type Effect

POST /collaborator-types/{typeId}/effects

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

FieldTypeRequiredDescription
typeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
indexintegerOptional
rootLogicstringOptional
runsAtstringOptional
groupsCreateCollaboratorTypeEffectRequestConditionGroup[]Optional
outputsCreateCollaboratorTypeEffectRequestOutput[]Optional

CreateCollaboratorTypeEffectRequestConditionGroup

FieldTypeDescription
logicstring| null
thresholdinteger| null
conditionsCreateCollaboratorTypeEffectRequestCondition[]| null

CreateCollaboratorTypeEffectRequestOutput

FieldTypeDescription
typestring| null
subjectTemplatestring| null
bodyTemplatestring| null
recipientsCreateCollaboratorTypeEffectRequestOutputRecipient[]| null
roleDefinitionIduuid| null
targetAttributeIduuid| null
requiredboolean| null
isRequiredboolean| null
isTaskTrackedboolean| null
isTaskReviewRequiredboolean| null
fillSourcestring| null
sourceQuestionIduuid| null
sourceRoleDefinitionIduuid| null
fillValuestring| null

CreateCollaboratorTypeEffectRequestCondition

FieldTypeDescription
sourceKindstring| null
sourceIduuid| null
sourcePathstring| null
operatorstring| null
valuestring| null

CreateCollaboratorTypeEffectRequestOutputRecipient

FieldTypeDescription
crewIduuid| null
roleDefinitionIduuid| null
channelstring| null

Response

Type: uuid