Introspect a model's fields
Returns the fields of the model the content type points to, grouped into concrete fields, related objects, and many-to-many fields.
The response is a plain object — it is not paginated.
get/content_types/{id}/fields/
Authorizations
AuthorizationstringRequired
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Path parameters
idintegerRequired
The unique identifier of the content type.
Responses
200
The model's fields, grouped by kind.
application/json
The fields of a model, grouped by kind. This response is not paginated.
401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
404
No content type exists with the given identifier.
application/json
get/content_types/{id}/fields/
GET /api/v1/remote/1/content_types/{id}/fields/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"fields": [
{
"name": "id",
"is_relation": false
},
{
"name": "name",
"is_relation": false
}
],
"related_fields": [
{
"name": "basketitem",
"is_relation": true
}
],
"many_to_many_fields": [
{
"name": "attributes",
"is_relation": true
}
]
}Last updated
Was this helpful?

