Custom Fields
Authorization: Bearer
The object type of the custom fields. Can be "account", "issue", "contact", "task", "project", "meeting", or "opportunity".
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
GET /custom-fields?object_type=account HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"created_at": "text",
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"id": "text",
"is_read_only": true,
"label": "text",
"number_metadata": {
"currency": "text",
"decimal_places": 1,
"duration_display_format": "text",
"duration_input_unit": "text",
"format": "with_commas"
},
"object_type": "account",
"select_metadata": {
"options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
]
},
"slug": "text",
"source": "text",
"type": "text",
"updated_at": "text"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Authorization: Bearer
The ID of the custom field.
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
GET /custom-fields/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"created_at": "text",
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"id": "text",
"is_read_only": true,
"label": "text",
"number_metadata": {
"currency": "text",
"decimal_places": 1,
"duration_display_format": "text",
"duration_input_unit": "text",
"format": "with_commas"
},
"object_type": "account",
"select_metadata": {
"options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
]
},
"slug": "text",
"source": "text",
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Authorization: Bearer
The default value for single-valued custom fields.
The default values for multi-valued custom fields.
The description of the custom field.
The label of the custom field.
The object type of the custom field. Can be "account", "issue", "contact", "task", "project", "meeting", or "opportunity".
accountPossible values: The slug of the custom field.
The type of the custom field. Can be one of text, number, decimal, boolean, date, datetime, user, url, select, or multiselect.
textThe request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
POST /custom-fields HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"label": "text",
"object_type": "account",
"select_options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
],
"slug": "text",
"type": "text"
}{
"data": {
"created_at": "text",
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"id": "text",
"is_read_only": true,
"label": "text",
"number_metadata": {
"currency": "text",
"decimal_places": 1,
"duration_display_format": "text",
"duration_input_unit": "text",
"format": "with_commas"
},
"object_type": "account",
"select_metadata": {
"options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
]
},
"slug": "text",
"source": "text",
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Authorization: Bearer
The ID of the custom field.
The default value for single-valued custom fields.
The default values for multi-valued custom fields.
The description of the custom field.
The label of the custom field.
The slug of the custom field.
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
PATCH /custom-fields/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"label": "text",
"select_options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
],
"slug": "text"
}{
"data": {
"created_at": "text",
"default_value": "text",
"default_values": [
"text"
],
"description": "text",
"id": "text",
"is_read_only": true,
"label": "text",
"number_metadata": {
"currency": "text",
"decimal_places": 1,
"duration_display_format": "text",
"duration_input_unit": "text",
"format": "with_commas"
},
"object_type": "account",
"select_metadata": {
"options": [
{
"ai_description": "text",
"label": "text",
"slug": "text"
}
]
},
"slug": "text",
"source": "text",
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Last updated
Was this helpful?

