customFields

Updates a custom field selection option.

Changed on

Updates the specified selection option's value, color, and order within its custom field definition.

<Check title="Required Permissions" icon="key">The user must be an admin or have project-manage-config:write permissions.</Check>

put/customfielddefinitions/{customFieldDefinitionId}/selectionoptions/{selectionOptionId}

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/customfielddefinitions/{customFieldDefinitionId}/selectionoptions/{selectionOptionId}
  • Auth: HTTP bearer

Path parameters

customFieldDefinitionIdstring uuid required

The id of the custom field definition containing the selection option.

selectionOptionIdstring uuid required

The id of the selection option to update.

Request body

valuestring required

The selection value which can be used in a select custom field.

color'red' | 'orange' | 'yellow' | 'green' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'steel'

The color of the selection option.

ordernumber double required

The order of the custom field selection option.

Response

OK

idstring uuid

The id of the custom field selection option.

valuestring required

The selection value which can be later used in a select custom field.

color'red' | 'orange' | 'yellow' | 'green' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'steel'

The color of the selection option.

ordernumber double

The order of the custom field selection option.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PutCustomFieldDefinitionSelectionOptionByCustomFieldDefinitionIdAndSelectionOptionId removed and replaced with customFields_PutCustomFieldDefinitionSelectionOptionByCustomFieldDefinitionIdAndSelectionOptionId