Mutations
entityUpdateCustomRiskField
Update the selected options for a custom data field on an entity. A field whose condition isn't met still accepts and stores the answer; it is returned with conditionMet false and doesn't count towards calculated risk.
Required permission: entity_risk_fields:write
mutation EntityUpdateCustomRiskField($where: EntityCustomRiskFieldUpdateInput!) {
entityUpdateCustomRiskField(where: $where) {
riskField {
id
name
kind
options {
id
name
}
tags
condition {
field
options
}
optionSource
}
selectedOptions {
id
name
}
conditionMet
}
}input EntityCustomRiskFieldUpdateInput {
id: ID!
riskFieldId: ID!
selectedOptionIds: [ID!]!
}Arguments
where EntityCustomRiskFieldUpdateInput! non-null input
EntityCustomRiskFieldUpdateInput!
Type
EntityCustomRiskField object
Response Fields
riskField CustomRiskField! non-null object
selectedOptions [CustomRiskFieldOption!]! non-null object
[CustomRiskFieldOption!]!
The chosen answers. For a catalogue field, each id is a catalogue key (see CustomRiskFieldOptionSource) and name its name.
conditionMet Boolean! non-null scalar
Boolean!
False when the field has a condition that this entity's answers or own data don't meet. The field is then hidden in the app and doesn't count towards calculated risk.