Content Types
Retrieve a specific Content Type by ID
Unique identifier of the resource
1
Content Type retrieved successfully
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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
Unique identifier of the resource
1
Content Type ID
App label for the content type
Model for the content type
Content Type updated
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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
Unique identifier of the resource
1
Content Type deleted successfully
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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
Unique identifier of the resource
1
Content Type ID
App label for the content type
Model for the content type
Content Type updated
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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
Unique identifier of the resource
1
Content Type retrieved successfully with fields
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filters by id
List of Content Types
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
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?