Languages & Environments
Usage Documentation
- Sharing Requests
- Prompt Registry
- Running Requests
- Advanced Logging
- Deployment Strategies
- FAQ
Why PromptLayer?
Reference
- REST API Reference
- POSTGet Prompt Template
- POSTPublish Prompt Template
- GETGet Prompt Template Labels
- PATCHMove Prompt Template Labels
- DELDelete a Prompt Template Label
- POSTCreate a Prompt Template Label
- POSTTrack Score
- POSTTrack Prompt
- POSTTrack Group
- POSTTrack Metadata
- GETGet All Prompt Templates
- POSTCreate Dataset from History
- POSTCreate Evaluation Pipeline
- POSTRun Full Evaluation
- GETGet Evaluation
- GETGet Evaluation Score
- DELDelete Reports by Name
- POSTLog Request
- GETGet Agent Version Execution Results
- POSTRun Agent
- POSTCreate Spans Bulk
Reference
Create a Prompt Template Label
POST
/
prompts
/
{prompt_id}
/
label
Copy
Ask AI
curl --request POST \
--url https://api.promptlayer.com/prompts/{prompt_id}/label \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"prompt_version_number": 123,
"name": "<string>"
}'
Copy
Ask AI
{
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"name": "<string>",
"prompt_id": 123,
"prompt_version_id": 123
}
Create a release label for a prompt template version.
Headers
Path Parameters
Body
application/json
Response
200 - application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.promptlayer.com/prompts/{prompt_id}/label \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"prompt_version_number": 123,
"name": "<string>"
}'
Copy
Ask AI
{
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"name": "<string>",
"prompt_id": 123,
"prompt_version_id": 123
}
Assistant
Responses are generated using AI and may contain mistakes.