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": 123,
  "group_id": 123
}'
{
  "success": true,
  "message": "<string>"
}

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
required

Your PromptLayer API Key.

request_id
integer
required

The unique identifier for the request.

group_id
integer
required

The unique identifier for the group to be associated with the request.

Response

200 - application/json
success
boolean
required
message
string
required