Update environment
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', default_timeout_seconds: 123})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id}"
payload = {
"name": "<string>",
"default_timeout_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"default_timeout_seconds": 123
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"type": "development",
"auth0_client_id": "<string>",
"api_version": "<string>",
"default_timeout_seconds": 123,
"is_active": true,
"rate_limit_rpm": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Environments
Update environment
Update configuration of the caller’s own environment. Deactivation is a separate operation - use DELETE on this resource - and reactivating a deactivated environment requires a Keystone operator, since no platform credential can authenticate into an inactive environment. Webhook delivery is configured per endpoint under /platforms/me/webhooks. Unrecognised fields are rejected rather than ignored.
PATCH
/
v1
/
platforms
/
me
/
environments
/
{environment_id}
Update environment
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', default_timeout_seconds: 123})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id}"
payload = {
"name": "<string>",
"default_timeout_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/environments/{environment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"default_timeout_seconds": 123
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"type": "development",
"auth0_client_id": "<string>",
"api_version": "<string>",
"default_timeout_seconds": 123,
"is_active": true,
"rate_limit_rpm": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Auth0 JWT access token. See Authentication for details.
Path Parameters
Response
Successful Response
Available options:
development, staging, production