PATCH
/
v0
/
project
/
{project_name}
/
contexts
/
{context_name}
/
rename
curl --request PATCH \
  --url 'https://api.unify.ai/v0/project/<project_name>/contexts/<context_name>/rename' \
  --header "Authorization: Bearer $UNIFY_KEY"
  --header 'Content-Type: application/json' \
  --data '{
    "name": "experiment2/trial3"
}'
{
    "info": "Context renamed successfully!"
}

Rename an existing context within a project.

Authorizations

Authorization
string
required

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

Path Parameters

project_name
string
required
context_name
string
required

Body

name
string
required

New name for the context, must meet naming rules

curl --request PATCH \
  --url 'https://api.unify.ai/v0/project/<project_name>/contexts/<context_name>/rename' \
  --header "Authorization: Bearer $UNIFY_KEY"
  --header 'Content-Type: application/json' \
  --data '{
    "name": "experiment2/trial3"
}'
{
    "info": "Context renamed successfully!"
}