Create environment
Changed onCreates 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
- The document declares no server URL.
- Auth
- HTTP bearer
- or API key in cookie __fabro_session
Request body
Example request
{
"id": "docker",
"provider": "docker",
"cwd": "/srv/fabro/workspaces/team-a"
}Response
Environment created
Example response
{
"id": "docker",
"revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"provider": "docker",
"cwd": "/srv/fabro/workspaces/team-a"
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- breaking
removed the enum value
daytonaof the request property - breaking
removed the enum value
dockerof the request property - breaking
removed the enum value
localof the request property - breaking
added the pattern
^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$to the request property - info
removed the
daytonaenum value from theresponse property for the response status - info
removed the
dockerenum value from theresponse property for the response status - info
removed the
localenum value from theresponse property for the response status - info
the
response's property pattern^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$was added for the status
- breaking