Content Types

Retrieve Content Type

get

Retrieve a specific Content Type by ID

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200
Content Type retrieved successfully
application/json
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 Content Type

put

Update a specific Content Type by ID

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 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
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 Content Type

delete

Delete a specific Content Type by ID

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
204
Content Type deleted successfully
delete
DELETE /api/v1/content_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Partial Update Content Type

patch

Partial update a specific Content Type by ID

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 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
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 Content Type Fields

get

Retrieve a specific Content Type by ID with its fields

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200
Content Type retrieved successfully with fields
application/json
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

get

List Content Types

Authorizations
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
idintegerOptional

Filters by id

Responses
200
List of Content Types
application/json
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?