Skip to main content
PATCH
/
api
/
public
/
v2
/
skill-collections
/
{identifier}
Update Skill Collection
curl --request PATCH \
  --url https://api.promptlayer.com/api/public/v2/skill-collections/{identifier} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "name": "<string>"
}
'
{
  "success": true,
  "skill_collection": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_id": 123,
    "folder_id": 123,
    "root_path": "<string>",
    "name": "<string>",
    "provider": "<string>",
    "is_deleted": true,
    "created_by": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_by": 123,
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
Rename an existing skill collection by identifier. This endpoint updates collection metadata only. To create a new saved version of the collection contents, use Save Skill Collection Version.

Headers

X-API-KEY
string
required

Your PromptLayer API key.

Path Parameters

identifier
string
required

Skill collection UUID, name, or root_path.

Body

application/json
name
string | null

Response

Skill collection updated successfully.

success
enum<boolean>
required
Available options:
true
skill_collection
object
required

A skill collection container in the public API.