Categories
Category Update
Update a category's information.
Update a category's information.
PATCH
/categories/{category_slug}storyden-session<token>
In: cookie
Path Parameters
category_slugstring
Unique category URL slug.
name?CategoryName
A category's user-facing name.
slug?CategorySlug
A category's URL-safe slug.
description?string
colour?string
cover_image_asset_id?NullableIdentifier
Optional cover image asset identifier for the category.
meta?Metadata
Arbitrary metadata for the resource.
Empty Object
Response Body
curl -X PATCH "https://loading/api/categories/string" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "cc5lnd2s1s4652adtu50",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"misc": {},
"name": "string",
"slug": "string",
"description": "string",
"colour": "string",
"sort": 0,
"parent": "cc5lnd2s1s4652adtu50",
"cover_image": {
"id": "cc5lnd2s1s4652adtu50",
"filename": "string",
"path": "string",
"mime_type": "string",
"width": 0,
"height": 0,
"parent": {
"id": "cc5lnd2s1s4652adtu50",
"filename": "string",
"path": "string",
"mime_type": "string",
"width": 0,
"height": 0,
"parent": {}
}
},
"children": [
{
"id": "cc5lnd2s1s4652adtu50",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"misc": {},
"name": "string",
"slug": "string",
"description": "string",
"colour": "string",
"sort": 0,
"parent": "cc5lnd2s1s4652adtu50",
"cover_image": {
"id": "cc5lnd2s1s4652adtu50",
"filename": "string",
"path": "string",
"mime_type": "string",
"width": 0,
"height": 0,
"parent": {
"id": "cc5lnd2s1s4652adtu50",
"filename": "string",
"path": "string",
"mime_type": "string",
"width": 0,
"height": 0,
"parent": {}
}
},
"children": [],
"meta": {},
"postCount": 0
}
],
"meta": {},
"postCount": 0
}Empty
Empty
{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Category List GET GET
Get a list of all categories on the site.
Category Update Position PATCH PATCH
Update the category's position in the tree. You may change the parent using `parent`, and/or reposition the category among its siblings using either `before` or `after`. Use this operation for drag-and-drop interfaces.