Environments
Replace environment
Replaces an environment definition when If-Match matches the current environment revision. The path id is authoritative; the request body omits id.
put/api/v1/environments/{id}
Path parameters
idstring required
Unique environment identifier.
Headers
If-Matchstring required
Current resource revision used for optimistic concurrency, as returned in the ETag response header.
Request body
Example request
{
"cwd": "/srv/fabro/workspaces/team-a"
}Response
Environment replaced
Example response
{
"id": "docker",
"revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"cwd": "/srv/fabro/workspaces/team-a"
}