Skip to main content
POST
/
api
/
public
/
v2
/
skill-collections
/
{identifier}
/
versions
Save Skill Collection Version
curl --request POST \
  --url https://api.promptlayer.com/api/public/v2/skill-collections/{identifier}/versions \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "file_updates": [],
  "moves": [],
  "deletes": [],
  "commit_message": "<string>",
  "release_label": "<string>"
}
'
{
  "success": true,
  "version": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "skill_collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_id": 123,
    "number": 123,
    "root_path_at_version": "<string>",
    "provider": "<string>",
    "file_paths": [
      "<string>"
    ],
    "commit_message": "<string>",
    "release_label": "<string>",
    "archived": true,
    "created_by": 123,
    "user_email": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}
Create a new saved version of a skill collection.

Request formats

Use application/json to send file_updates, moves, deletes, commit_message, and release_label directly. Use multipart/form-data to upload a ZIP archive plus metadata encoded as a JSON string in metadata or json.

Headers

X-API-KEY
string
required

Your PromptLayer API key.

Path Parameters

identifier
string
required

Skill collection UUID, name, or root_path.

Body

file_updates
object[]
moves
object[]
deletes
string[]
commit_message
string | null
release_label
string | null

Response

Skill collection version created successfully.

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

A saved version of a skill collection.