Magidoc

bulkUpdateActionCustomFields
Mutation

Sets or clears one custom field on specified actions. Supply only the value field matching the custom-field type: value for text, numberValue for numbers, dateValue for dates, or selectedValues for select, user, and project fields. Pass null or an empty matching value to clear the field. Requires access to every target action and rejects missing fields or values whose shape does not match the field type.

Arguments

#

actionIds

[ID !]!
Non-null

Array of action IDs to update the custom field for

workspaceId

ID !
Non-null

The workspace ID that contains the actions

fieldId

ID !
Non-null

The ID of the custom field to update (get this from getCustomFields query)

value

Text value - use ONLY for 'text' type custom fields

selectedValues

Array of selected values - use for 'select', 'user', or 'project' type custom fields. For 'select' type: pass the dropdown option strings. For 'user' type: pass an array of user IDs. For 'project' type: pass an array of project IDs.

dateValue

Date value - use ONLY for 'date' type custom fields. ISO 8601; include time for date-time precision.

numberValue

Numeric value - use ONLY for 'number' type custom fields

locationValue

Display label - use ONLY for 'location' type custom fields

locationData

Coordinates - required with locationValue for 'location' type custom fields

Response

#

Returns [Action !]!.

Example

#