Reference
Track Group
POST
/
rest
/
track-group
Associate a group with a request.
Example Code
pl_group_id = promptlayer_client.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,
},
)
Body
application/json
api_key
string
requiredYour PromptLayer API Key.
request_id
integer
requiredThe unique identifier for the request.
group_id
integer
requiredThe unique identifier for the group to be associated with the request.
Response
200 - application/json
success
boolean
requiredmessage
string
requiredWas this page helpful?