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
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