Update a skill
PATCH/api/promptly/skills/{skillId}
Update a skill
Path Parameters
skillId: string
formatuuid
Body Parameters
category: optional string
content: optional string
description: optional string
frontmatter: optional unknown
isPublic: optional boolean
name: optional string
Returns
Update a skill
curl https://0ct.com/api/promptly/skills/$SKILL_ID \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $0CT_API_KEY" \
-d '{}'{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"content": "content",
"name": "name",
"category": "category",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"frontmatter": {
"author": "author",
"requiredSources": [
"string"
],
"tags": [
"string"
]
},
"iconUrl": "https://example.com",
"isPublic": true,
"isUserInvocable": true,
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updatedAt": "2019-12-27T18:11:19.117Z",
"version": 0
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"content": "content",
"name": "name",
"category": "category",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"frontmatter": {
"author": "author",
"requiredSources": [
"string"
],
"tags": [
"string"
]
},
"iconUrl": "https://example.com",
"isPublic": true,
"isUserInvocable": true,
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updatedAt": "2019-12-27T18:11:19.117Z",
"version": 0
}