Environments

Update environment

patch/api/v1/workspace/{workspaceId}/environments/{id}

Request

  • Base URL
    https://us.infisical.com
  • URL
    https://us.infisical.com/api/v1/workspace/{workspaceId}/environments/{id}
  • Auth
    HTTP bearer

Path parameters

workspaceIdstring required

The ID of the project to update the environment in.

idstring required

The ID of the environment to update.

Request body

slugstring

The new slug of the environment.

namestring

The new name of the environment.

positionnumber

The new position of the environment. The lowest number will be displayed as the first environment.

Response

Default Response

messagestring required
workspacestring required

Changes

No recorded changes to this operation across all 65 revisions of this API.