Gives the sandbox another name. Its id stays the same, so scripts that use it keep working. Works on ended sandboxes too.
API key access: sandboxes.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe sandbox's id.
application/jsonname*stringThe new name: up to 63 letters, digits, spaces, dashes, underscores and dots. It needn't be unique.
The sandbox, with its new name.
application/jsoncurl -X PATCH 'https://your-pyo.example.com/api/v1/sandboxes/string' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'{}