Skip to main content

custom_field_options

Creates, updates, deletes, gets or lists a custom_field_options resource.

Overview

Namecustom_field_options
TypeResource
Idpagerduty.incident_types.custom_field_options

Fields

The following fields are returned by SELECT queries:

The field option of the custom field requested.

NameDatatypeDescription
idstringThe ID of the resource.
created_atstring (date-time)The date/time the object was created at.
dataobject
typestring (field_option)
updated_atstring (date-time)The date/time the object was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttype_id_or_name, field_option_id, field_idGet a field option on a custom field<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.read<br />
listselecttype_id_or_name, field_idList field options for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.read<br />
createinserttype_id_or_name, field_id, field_optionCreate a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />
updateupdatetype_id_or_name, field_option_id, field_id, field_optionUpdate a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />
deletedeletetype_id_or_name, field_option_id, field_idDelete a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
field_idstringThe ID of the field.
field_option_idstringThe ID of the field option.
type_id_or_namestringThe ID or name of the Incident Type.

SELECT examples

Get a field option on a custom field<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.read<br />

SELECT
id,
created_at,
data,
type,
updated_at
FROM pagerduty.incident_types.custom_field_options
WHERE type_id_or_name = '{{ type_id_or_name }}' -- required
AND field_option_id = '{{ field_option_id }}' -- required
AND field_id = '{{ field_id }}' -- required
;

INSERT examples

Create a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />

INSERT INTO pagerduty.incident_types.custom_field_options (
field_option,
type_id_or_name,
field_id
)
SELECT
'{{ field_option }}' /* required */,
'{{ type_id_or_name }}',
'{{ field_id }}'
RETURNING
field_option
;

UPDATE examples

Update a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />

UPDATE pagerduty.incident_types.custom_field_options
SET
field_option = '{{ field_option }}'
WHERE
type_id_or_name = '{{ type_id_or_name }}' --required
AND field_option_id = '{{ field_option_id }}' --required
AND field_id = '{{ field_id }}' --required
AND field_option = '{{ field_option }}' --required
RETURNING
field_option;

DELETE examples

Delete a field option for a custom field.<br /><br />Custom Fields (CF) are a feature which will allow customers to extend Incidents with their own custom data,<br />to provide additional context and support features such as customized filtering, search and analytics.<br />Custom Fields can be applied to different incident types.<br /><br />Scoped OAuth requires: custom_fields.write<br />

DELETE FROM pagerduty.incident_types.custom_field_options
WHERE type_id_or_name = '{{ type_id_or_name }}' --required
AND field_option_id = '{{ field_option_id }}' --required
AND field_id = '{{ field_id }}' --required
;