/api/v1/object/data/{objectSlug}/field-options/{fieldSlug}List the options a select-type field allows.
List the options a select-type field allows.
Works on select, multi_select, status, priority, tag and
source_name fields. Returns the field's options in their configured
order. Deleted options are left out; records that still hold one read it
back flagged is_deleted. Write an option's id when you set the field
on a record.
Scope: read.<object slug>, for example read.deals.
Errors:
400— no active object has that slug.400— the field type has no predefined options.403— the credential lacksread.<object slug>.404—Field 'stage-mpoc2x9d' not found on object 'deals'.
Response 200:
{
"status": 200,
"message": "Field options retrieved successfully",
"data": {
"field_slug": "stage-mpoc2x9d",
"field_type": "status",
"options": [
{
"id": "3b8e2f4a-6c1d-4e9b-a7f2-0d5c8b1e6a34",
"value": "new",
"label": "New",
"color": "#3B82F6"
},
{
"id": "9d4a7c2e-1f8b-4b3d-8e6a-5c2f0b9d7e11",
"value": "won",
"label": "Won",
"color": "#22C55E"
}
]
}
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"id": "",
"value": "string",
"label": "string",
"color": "string"
}Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs