Modules
Your Siteglide API key
The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)
The Module ID
1Number of items to retrieve, maximum of 500
20Field by which to sort the results. Use id, created_at, or updated_at for system fields, or a custom field ID (e.g. module_field_3_1).
created_atOrder of results
descPossible values: Page to retrieve number, to be used with per_page
1OK
No content
Unauthorized - Credentials Incorrect
Forbidden - You cannot access this site
Not Found - Module does not exist
Unprocessable Entity - Required data missing or data invalid
GET /api/site/v2/modules/{module}/items HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*
No content
Your Siteglide API key
The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)
The Module ID
1The ID of the Module item
OK
No content
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: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*
No content
To see the Module's fields and the value each one takes, first get its fields (GET /modules/{module}/fields).
Your Siteglide API key
The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)
The Module ID
1The Module Item ID
1OK
No content
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: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: 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
To see the Module's fields and the value each one takes, first get its fields (GET /modules/{module}/fields).
Your Siteglide API key
The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)
The Module ID
1OK
No content
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: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: 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

