Replace a workspace's assigned environments
PUT/workspaces/:workspaceKey/environments
Replaces the full set of environments assigned to the given workspace with the provided set. The request body is the exact set the workspace should end up assigned to: environments not listed are unassigned, and unassigning removes an environment from every project's selection in the workspace. Requires the update permission for the organization.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The assigned environments were replaced successfully.
The provided data is not valid.
The request lacks valid authentication credentials.
Response Headers
WWW-Authenticate
Forbidden. The request is not allowed.
The requested resource was not found.
An internal error occurred while processing the request.