curl -X PATCH 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production (US-East)"
}'
{
"id": "environment_prod",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production (US-East)"
}
Update an environment
curl -X PATCH 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production (US-East)"
}'
{
"id": "environment_prod",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production (US-East)"
}
curl -X PATCH 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production (US-East)"
}'
{
"id": "environment_prod",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production (US-East)"
}
Was this page helpful?