PUT /incidents/types/{type_id_or_name}/custom_fields/{field_id}

Update a custom field for an incident type. Field Options can also be updated within the same call.

Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data, to provide additional context and support features such as customized filtering, search and analytics. Custom Fields can be applied to different incident types.

Scoped OAuth requires: custom_fields.write

Servers

Path parameters

Name Type Required Description
type_id_or_name String Yes

The ID or name of the Incident Type.

field_id String Yes

The ID of the field.

Request headers

Name Type Required Description
Accept String Yes

The Accept header is used as a versioning header.

Default value: "application/vnd.pagerduty+json;version=2"

Content-Type String Yes

Possible values:

  • "application/json"

Default value: "application/json"

Request body fields

Name Type Required Description
field Object Yes

Details of the custom field to be updated.

field.default_value String No

The default value of the custom field.

field.description String No

The description of the custom field.

field.field_options[] Array No

List of options to upsert on the custom field. Can only be applied to fields with a field_type of single_value_fixed or multi_value_fixed. When an id property is included, this will update the value of the specified field option. Without an id property, that field option will be added to the field. Any existing field options not included in the upsert list will be deleted (unless the current default value refers to a field option to be deleted).

field.display_name String No

The display name of the Incident Type.

field.enabled Boolean No

Whether the Incident Type is enabled.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.