Skip to main content

custom_field_values

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

Overview

Namecustom_field_values
TypeResource
Idpagerduty.incidents.custom_field_values

Fields

The following fields are returned by SELECT queries:

The list of custom field values.

NameDatatypeDescription
idstringId of the field.
namestringThe name of the field. May include ASCII characters, specifically lowercase letters, digits, and underescores. The name for a Field must be unique and cannot be changed once created. (title: Field Name)
display_namestringThe human-readable name of the field. This must be unique across an account.
data_typestringThe kind of data the custom field is allowed to contain. (boolean, integer, float, string, datetime, url)
descriptionstringA description of the data this field contains.
field_typestringThe type of data this field contains. In combination with the data_type field. (single_value, single_value_fixed, multi_value, multi_value_fixed)
typestringDetermines the type of the reference. (field_value)
valueobject (title: Boolean)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectidGet custom field values for an incident.<br /><br /><!-- theme: warning --><br /><br />Scoped OAuth requires: incidents.read<br />
updateupdateid, custom_fieldsSet custom field values for an incident.<br /><br />Scoped OAuth requires: incidents.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
idstringThe ID of the resource.

SELECT examples

Get custom field values for an incident.<br /><br /><!-- theme: warning --><br /><br />Scoped OAuth requires: incidents.read<br />

SELECT
id,
name,
display_name,
data_type,
description,
field_type,
type,
value
FROM pagerduty.incidents.custom_field_values
WHERE id = '{{ id }}' -- required
;

UPDATE examples

Set custom field values for an incident.<br /><br />Scoped OAuth requires: incidents.write<br />

UPDATE pagerduty.incidents.custom_field_values
SET
custom_fields = '{{ custom_fields }}'
WHERE
id = '{{ id }}' --required
AND custom_fields = '{{ custom_fields }}' --required
RETURNING
custom_fields;