Upsert environment

Changed on
put/v1/workspaces/{workspaceId}/environments/{environmentId}

Request

  • Base URL
    http://localhost:3001/api
  • URL
    http://localhost:3001/api/v1/workspaces/{workspaceId}/environments/{environmentId}
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

workspaceIdstring required

ID of the workspace

environmentIdstring required

ID of the environment

Request body

descriptionstring
metadataobject
namestring required
resourceSelectorstring

CEL expression to determine if the environment should be used

Response

Accepted response

idstring required
messagestring required

Changes

    • info

      added the non-success response with the status

    • breaking

      removed from the request property oneOf list

    • breaking

      the request property type changed from no type to string