Create Project Environment

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

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.Supported Access Configurations

Since: 7.53.1

Security: Requires a Project Admin or a user assigned the Administer the Platform role.

Usage: POST ${baseUrl}/v1/projects/{project_key}/environments

Sample Request:

{
  "name": "<string>"
}

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.