Modules
Authorizations
Path parameters
modulestringRequiredExample:
The Module ID
1
Query parameters
itemsid · arrayOptional
A comma seperated list of item IDs to retrieve, leave empty to get all items
propertiesstring · arrayOptionalExample:
A comma seperated list of properties that you would like to retrieve, leave empty to get all properties
name,slug,enabled
per_pageintegerOptionalExample:
Number of items to retireve, maximum of 500
20
sort_typestringOptionalExample:
Property by which to sort the results
created_at
sort_orderstringOptionalExample:
Order of results (asc or desc)
desc
pageintOptionalExample:
Page to retrieve number, to be used with per_page
1
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Module does not exist or contains no Items
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/modules/{module}/items HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
modulestringRequiredExample:
The Module ID
1
idstring · idRequired
The ID of the Module item
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Module Item does not exist
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/modules/{module}/items/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
modulestringRequiredExample:
The Module ID
1
idstringRequiredExample:
The Module Item ID
1
Body
namestringRequired
slugstringOptional
enabledstringRequired
module_field_3_1stringOptional
module_field_custom_3_2stringOptional
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
422
Unprocessable Entity - Required data missing or data invalid
put
PUT /api/site/v2/modules/{module}/items/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"name": "text",
"slug": "text",
"enabled": "text",
"module_field_3_1": "text",
"module_field_custom_3_2": "text"
}
No content
Authorizations
Path parameters
modulestringRequiredExample:
The Module ID
1
Body
namestringRequired
slugstringOptional
enabledstringRequired
module_field_3_1stringOptional
module_field_custom_3_2stringOptional
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
422
Unprocessable Entity - Required data missing or data invalid
post
POST /api/site/v2/modules/{module}/create HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"name": "text",
"slug": "text",
"enabled": "text",
"module_field_3_1": "text",
"module_field_custom_3_2": "text"
}
No content
Last updated
Was this helpful?