Description: Creates a new environment for the specified project.
Note
By default, Artifactory supports up to 10 project environments. To change this default value, modify the Access configuration YAML, as described in Supported Access Configurations. The maximum recommended number of environments is 30.
Since: 7.53.1
Security: Requires a Project Admin or a user assigned the Administer the Platform role.
Usage: POST /access/api/v1/projects/{project_key}/environments
Authentication: Requires token-based authentication.
Sample Request:
{ "name": "<string>" }
Examples of Request
{ “name“: “<PROJECT_KEY>-<ENVIRONMENT_NAME>" }
{ "name": "<PROJECT_KEY><ENVIRONMENT_NAME>" }
Note
The maximum length of an environment name is 32 characters.
Sample Response:
{ "name": "<string>" }
Status Codes:
Code | Description |
---|---|
200 | Created |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
409 | Conflict |
Note
To create a global environment, see Create Global Environment.