Create environment
Creates a server-owned environment definition in the environment catalog. REST environment requests only accept inline Dockerfile content; local Dockerfile paths are supported by workflow/settings files but rejected by this API.
Request body
Example request
{
"id": "docker",
"cwd": "/srv/fabro/workspaces/team-a"
}Response
Environment created
Example response
{
"id": "docker",
"revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"cwd": "/srv/fabro/workspaces/team-a"
}Changes
Changed in 3 of the 134 revisions of this API.113
- ○
added the new optional request property
cwdnew-optional-request-property
- ○
added the optional property
cwdto the response with the201statusresponse-optional-property-added
- ○
- ▲
removed the required property
volumesfrom the response with the201statusresponse-required-property-removed
- ●
removed the request property
volumesrequest-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○