Content Types
Retrieve a specific Content Type by ID
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
200
Content Type retrieved successfully
application/json
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
get
GET /api/v1/content_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"app_label": "text",
"model": "text"
}
Update a specific Content Type by ID
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Body
idintegerRead-onlyOptional
Content Type ID
app_labelstringRequired
App label for the content type
modelstringRequired
Model for the content type
Responses
200
Content Type updated
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
put
PUT /api/v1/content_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"app_label": "text",
"model": "text"
}
No content
Delete a specific Content Type by ID
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
204
Content Type deleted successfully
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
delete
DELETE /api/v1/content_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partial update a specific Content Type by ID
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Body
idintegerRead-onlyOptional
Content Type ID
app_labelstringRequired
App label for the content type
modelstringRequired
Model for the content type
Responses
200
Content Type updated
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
patch
PATCH /api/v1/content_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"app_label": "text",
"model": "text"
}
No content
Retrieve a specific Content Type by ID with its fields
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
200
Content Type retrieved successfully with fields
application/json
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
get
GET /api/v1/content_types/{id}/fields/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"fields": [
{
"name": "text",
"is_relation": true
}
],
"related_fields": [
{
"name": "text",
"is_relation": true
}
],
"many_to_many_fields": [
{
"name": "text",
"is_relation": true
}
]
}
List Content Types
Authorizations
Query parameters
pageinteger · min: 1OptionalDefault:
Specifies the page number of the current dataset
1
limitinteger · min: 1OptionalDefault:
Indicates the number of rows on the current page.
10
idintegerOptional
Filters by id
Responses
200
List of Content Types
application/json
401
Unauthorized Access
application/json
404
The given resource or object was not found or does not exist.
application/json
500
Server Error
get
GET /api/v1/content_types/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"app_label": "text",
"model": "text"
}
]
Was this helpful?