curl --request PUT \
--url http://localhost:8080/api/v2/environments/{environmentKey}/namespaces \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>"
}'
{
"namespace": {
"key": "<string>",
"name": "<string>",
"description": "<string>",
"protected": true
},
"revision": "<string>"
}Namespaces
Update Namespace
Update an existing namespace in an environment.
PUT
/
api
/
v2
/
environments
/
{environmentKey}
/
namespaces
curl --request PUT \
--url http://localhost:8080/api/v2/environments/{environmentKey}/namespaces \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>"
}'
{
"namespace": {
"key": "<string>",
"name": "<string>",
"description": "<string>",
"protected": true
},
"revision": "<string>"
}curl --request PUT \
--url http://localhost:8080/api/v2/environments/{environmentKey}/namespaces \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>"
}'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The environment identifier, e.g. 'production'.
Body
application/json
The request message for creating or updating a namespace.
Was this page helpful?