[DEPRECATED] Use form field endpoints instead. Creates a new custom field from provided data
curl --request POST \
--url https://api.rootly.com/v1/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "custom_fields",
"attributes": {
"label": "<string>",
"description": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"default": "<string>",
"position": 123
}
}
}
'{
"data": {
"id": "<string>",
"type": "custom_fields",
"attributes": {
"label": "<string>",
"slug": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"position": 123,
"created_at": "<string>",
"updated_at": "<string>",
"kind": "<string>",
"enabled": true,
"description": "<string>",
"default": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
custom_fields Show child attributes
The name of the custom_field
The description of the custom_field
Where the custom_field is shown
incident_form, incident_mitigation_form, incident_resolution_form, incident_post_mortem_form, incident_slack_form, incident_mitigation_slack_form, incident_resolution_slack_form, incident_post_mortem Where the custom_field is required
incident_form, incident_mitigation_form, incident_resolution_form, incident_post_mortem_form, incident_slack_form, incident_mitigation_slack_form, incident_resolution_slack_form The default value for text field kinds
The position of the custom_field
custom_field created
Show child attributes
Unique ID of the custom_field
custom_fields Show child attributes
The name of the custom_field
The slug of the custom_field
Where the custom_field is shown
incident_form, incident_mitigation_form, incident_resolution_form, incident_post_mortem_form, incident_slack_form, incident_mitigation_slack_form, incident_resolution_slack_form, incident_post_mortem Where the custom_field is required
incident_form, incident_mitigation_form, incident_resolution_form, incident_post_mortem_form, incident_slack_form, incident_mitigation_slack_form, incident_resolution_slack_form The position of the custom_field
Date of creation
Date of last update
The kind of the custom_field
Whether the custom_field is enabled
The description of the custom_field
The default value for text field kinds
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "custom_fields",
"attributes": {
"label": "<string>",
"description": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"default": "<string>",
"position": 123
}
}
}
'{
"data": {
"id": "<string>",
"type": "custom_fields",
"attributes": {
"label": "<string>",
"slug": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"position": 123,
"created_at": "<string>",
"updated_at": "<string>",
"kind": "<string>",
"enabled": true,
"description": "<string>",
"default": "<string>"
}
}
}