curl --request POST \ --url https://api.promptlayer.com/rest/track-group \ --header 'Content-Type: application/json' \ --data '{ "api_key": "<string>", "request_id": 123, "group_id": 123 }'
{ "success": true, "message": "<string>" }
Associate a group with a request.
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, }, )
Your PromptLayer API Key.
The unique identifier for the request.
The unique identifier for the group to be associated with the request.
Group tracked successfully
Was this page helpful?