List custom fields
GET/api/v3/_customfield
Possible values for type
:
string
- a single-line free-form text fieldselect
- a dropdown/select box offering a specific set of choicesdate
- a datenumber
- a number
If the type is select
, available choices will be returned in type_opts
.
The field
attribute is the API field name you can use to populate custom field data onto an object.
For example, if context_str=customer
and field=custom_2
then when you create a customer via the REST
API, you would send:
POST /api/v3/customer
{
"company": "Sombra Corporation",
"custom_2": "The Dark Tower"
}
Custom fields are not required, so can be left out of API requests if you do not wish to provide a value.
Request
Responses
- 200
- 400
- 401
- 404
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response object
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {}
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": [
{
"context_str": "customer",
"field": "custom_2",
"customfield_id": 417,
"name": "Favorite Book",
"enabled": true,
"type": "select",
"type_opts": [
"Snow Crash",
"Perdido Street Station",
"The Dark Tower",
"Other"
]
},
{
"context_str": "quote",
"field": "custom_1",
"customfield_id": 418,
"name": "Favorite Color",
"enabled": true,
"type": "string",
"type_opts": null
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Object not found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response booleannullable
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 404,
"status": "Error",
"message": "This object does not exist.",
"details": {},
"response": null
}
Loading...