Languages & Environments
Usage Documentation
- Tagging Requests
- Sharing Prompts
- Prompt Registry
- Advanced Logging
- FAQ
Why PromptLayer?
Reference
- REST API Reference
- POSTTrack Request
- POSTGet Prompt Template
- GETGet Prompt Template (Deprecated)
- POSTPublish Prompt Template
- POSTPublish Prompt Template (Deprecated)
- POSTTrack Score
- POSTTrack Prompt
- POSTTrack Group
- POSTTrack Metadata
- GETGet All Prompt Templates
- POSTCreate Dataset from History
- POSTCreate Evaluation Pipeline
Reference
Track Group
POST
/
rest
/
track-group
curl --request POST \
--url https://api.promptlayer.com/rest/track-group \
--header 'Content-Type: application/json' \
--data '{
"api_key": "<string>",
"request_id": "<string>",
"group_id": "<string>"
}'
Associate a group with a request.
Example Code
pl_group_id = promptlayer.group.create()
import requests
response = requests.post(
"https://api.promptlayer.com/rest/track-group",
json={
"api_key": "<YOUR_API_KEY>",
"request_id": "<REQUEST_ID>",
"group_id": pl_group_id,
},
)
Request Parameters
Your PromptLayer API Key
Was this page helpful?
curl --request POST \
--url https://api.promptlayer.com/rest/track-group \
--header 'Content-Type: application/json' \
--data '{
"api_key": "<string>",
"request_id": "<string>",
"group_id": "<string>"
}'
Assistant
Responses are generated using AI and may contain mistakes.