Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
/
id
/
{template_id}
/
versions
/
{version_id}
/
environments
Update template version environments
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/id/{template_id}/versions/{version_id}/environments \
  --header 'Content-Type: application/json' \
  --data '
{
  "environments": [
    "<string>"
  ]
}
'
{}

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.