Docs

Create Crew Type Effect

POST /crew/types/{typeId}/effects

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

FieldTypeRequiredDescription
typeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
indexintegerOptional
rootLogicstringOptional
runsAtstringOptional
groupsCreateCrewTypeEffectRequestConditionGroup[]Optional
outputsCreateCrewTypeEffectRequestOutput[]Optional

CreateCrewTypeEffectRequestConditionGroup

FieldTypeDescription
logicstring| null
thresholdinteger| null
conditionsCreateCrewTypeEffectRequestCondition[]| null

CreateCrewTypeEffectRequestOutput

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

CreateCrewTypeEffectRequestCondition

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

CreateCrewTypeEffectRequestOutputRecipient

FieldTypeDescription
crewIduuid| null
roleDefinitionIduuid| null
channelstring| null

Response

Type: uuid