Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
/
id
/
{template_id}
/
versions
/
{version_id}
/
environments
Update Template Environments
curl --request POST \
  --url https://{host}.freeplay.ai/api/v2/projects/{project_id}/prompt-templates/id/{template_id}/versions/{version_id}/environments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environments": [
    "<string>"
  ]
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required
template_id
string
required
version_id
string
required

Body

application/json
environments
string[]
required

Response

200 - application/json

EmptyResponse()

The response is of type EmptyResponse · object.