Skip to main content
PATCH
/
v2
/
environments
/
{environmentId}
Update Environment
curl --request PATCH \
  --url https://api.tusky.io/v2/environments/{environmentId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "publisherIds": [
    {}
  ]
}
'
Update an environment’s settings. Only included fields are changed.

Path Parameters

environmentId
string
required
The environment ID.

Request Body

name
string
New environment name.
publisherIds
array
Replace the assigned publishers. Pass an array of publisher IDs. Multiple publishers enable horizontal scaling — uploads are distributed across them for shorter publishing times. Set to [] to revert to the account default publisher.

Response

Returns the updated environment object.

Example

curl -X PATCH https://api.tusky.io/v2/environments/env_abc123 \
  -H "Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"publisherIds": ["pub_primary", "pub_secondary", "pub_tertiary"]}'

Response

{
  "id": "env_abc123",
  "name": "Production Assets",
  "encrypted": false,
  "publisherIds": ["pub_primary", "pub_secondary", "pub_tertiary"],
  "updatedAt": "2026-03-07T15:00:00Z"
}
The encrypted flag cannot be changed after creation.