/api/v1/object/{objectSlug}/fieldsList the active fields of an object.
List the active fields of an object.
Returns the field slugs you need to read and write records: a record's
data is keyed by these slugs, never by labels. label falls back to
the field name when no label is set. options holds the field type's
settings, such as the choices of a select field, or null. The list is
not paginated. It needs no scope.
Errors:
400— no object has that slug, or the object is inactive.
Response 200:
{
"status": 200,
"message": "Object fields retrieved successfully",
"data": [
{
"slug": "title-mpoc3dn1",
"label": "Name",
"type": "text",
"options": null,
"is_system": true
},
{
"slug": "stage-k2j9h4g7",
"label": "Stage",
"type": "select",
"options": {
"values": [
{
"id": "6a1f3c9e-2b7d-4e8a-9f0c-1d2e3f4a5b6c",
"value": "lead",
"label": "Lead",
"color": "#3B82F6"
}
]
},
"is_system": false
}
]
}
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
{
"message": "string",
"data": [
"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