curl --request PATCH \
--url https://api.getfernand.com/knowledge/collections/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"slug": "<string>",
"icon": "<string>",
"description": "<string>",
"parent_id": 123,
"seo_title": "<string>",
"seo_description": "<string>",
"sort": 123
}
'{
"id": 123,
"parent_id": 123,
"title": "Getting Started",
"slug": "getting-started",
"description": "Essential guides to help you get started with our platform",
"seo_title": "Getting Started - Complete Guide",
"seo_description": "<string>",
"icon": "π",
"get_icon_color": "<string>",
"created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"get_articles": [
12,
45,
67
],
"get_collections": [
3,
8,
15
],
"sort": 2
}curl --request PATCH \
--url https://api.getfernand.com/knowledge/collections/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"slug": "<string>",
"icon": "<string>",
"description": "<string>",
"parent_id": 123,
"seo_title": "<string>",
"seo_description": "<string>",
"sort": 123
}
'{
"id": 123,
"parent_id": 123,
"title": "Getting Started",
"slug": "getting-started",
"description": "Essential guides to help you get started with our platform",
"seo_title": "Getting Started - Complete Guide",
"seo_description": "<string>",
"icon": "π",
"get_icon_color": "<string>",
"created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"get_articles": [
12,
45,
67
],
"get_collections": [
3,
8,
15
],
"sort": 2
}ID of the collection to update.
Display title of the collection (optional).
250URL-safe slug (optional, lowercase alphanumeric with dashes/underscores).
250Emoji icon identifier (optional).
25Collection description (optional).
1000ID of the parent collection (optional, null for root-level).
SEO-optimized title (optional).
250SEO-optimized description (optional).
1250New sort position (zero-based, optional). When provided, only updates sort order and ignores other fields.
Collection updated successfully. Returns empty response when only sort was updated, otherwise returns the updated collection.
Unique identifier for the collection.
ID of the parent collection for nested organization (null for root-level collections).
Display title of the collection shown in navigation and headers.
250"Getting Started"
URL-safe slug used in the collection's URL path.
250"getting-started"
Description of the collection content and purpose.
"Essential guides to help you get started with our platform"
SEO-optimized title for search engines and meta tags.
250"Getting Started - Complete Guide"
SEO-optimized description for search engines and social media previews.
250Emoji icon identifier displayed alongside the collection title for visual distinction.
25"π"
Computed color code associated with the emoji icon for theming purposes.
Timestamp when the collection was created.
Timestamp when the collection was last modified.
Array of article IDs contained directly in this collection (not including nested collections).
[12, 45, 67]Array of sub-collection IDs that are children of this collection.
[3, 8, 15]Sort order within the parent collection or at root level.
2
Was this page helpful?