For the complete documentation index, see llms.txt. This page is also available as Markdown.

Categories

Retrieve an overview list of all categories from your website

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Query parameters
per_pageintegerOptional

Number of items to retrieve, maximum of 500

Example: 20
sort_typestringOptional

Field by which to sort the results

Example: created_at
sort_orderstring · enumOptional

Order of results

Default: descPossible values:
pageintegerOptional

Page to retrieve number, to be used with per_page

Example: 1
Responses
200

OK

No content

get/categories
GET /api/site/v2/categories HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Retrieve all data about an individual category

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
idstringRequired

The ID of the category

Example: 1234
Responses
200

OK

No content

get/categories/{id}
GET /api/site/v2/categories/{id} HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Update a category

put
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
idstringRequired

The Category ID

Example: 1
Body
namestringRequired
slugstringOptional
enabledstringRequired
weightingstringOptional
meta_titlestringOptional
meta_descstringOptional
og_titlestringOptional
og_descstringOptional
og_imagestringOptional
og_typestringOptional
twitter_typestringOptional
image_altstringOptional
parentstringOptional
Responses
200

OK

No content

put/categories/{id}
PUT /api/site/v2/categories/{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: 231

{
  "name": "text",
  "slug": "text",
  "enabled": "text",
  "weighting": "text",
  "meta_title": "text",
  "meta_desc": "text",
  "og_title": "text",
  "og_desc": "text",
  "og_image": "text",
  "og_type": "text",
  "twitter_type": "text",
  "image_alt": "text",
  "parent": "text"
}

No content

Create a category

post
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Body
namestringRequired
slugstringOptional
enabledstringRequired
weightingstringOptional
meta_titlestringOptional
meta_descstringOptional
og_titlestringOptional
og_descstringOptional
og_imagestringOptional
og_typestringOptional
twitter_typestringOptional
image_altstringOptional
parentstringOptional
Responses
200

OK

No content

post/categories/create
POST /api/site/v2/categories/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: 231

{
  "name": "text",
  "slug": "text",
  "enabled": "text",
  "weighting": "text",
  "meta_title": "text",
  "meta_desc": "text",
  "og_title": "text",
  "og_desc": "text",
  "og_image": "text",
  "og_type": "text",
  "twitter_type": "text",
  "image_alt": "text",
  "parent": "text"
}

No content

Last updated