Modules
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
The Module ID
1
A comma seperated list of item IDs to retrieve, leave empty to get all items
A comma seperated list of properties that you would like to retrieve, leave empty to get all properties
name,slug,enabled
Number of items to retireve, maximum of 500
20
Property by which to sort the results
created_at
Order of results (asc or desc)
desc
Page to retrieve number, to be used with per_page
1
OK
Unauthorized - Credentials Incorrect
Forbidden - You cannot access this site
Not Found - Module does not exist or contains no Items
Unprocessable Entity - Required data missing or data invalid
GET /api/site/v2/modules/{module}/items HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
The Module ID
1
The ID of the Module item
OK
Unauthorized - Credentials Incorrect
Forbidden - You cannot access this site
Not Found - Module Item does not exist
Unprocessable Entity - Required data missing or data invalid
GET /api/site/v2/modules/{module}/items/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
The Module ID
1
The Module Item ID
1
OK
Unauthorized - Credentials Incorrect
Forbidden - You cannot access this site
Unprocessable Entity - Required data missing or data invalid
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
The Module ID
1
OK
Unauthorized - Credentials Incorrect
Forbidden - You cannot access this site
Unprocessable Entity - Required data missing or data invalid
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