curl -X POST 'https://api.example.com/environments' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"projectId": "project_api",
"name": "Production"
}'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "Production"
}
Create a new environment within a project
curl -X POST 'https://api.example.com/environments' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"projectId": "project_api",
"name": "Production"
}'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "Production"
}
environment_{uuidv7}curl -X POST 'https://api.example.com/environments' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"projectId": "project_api",
"name": "Production"
}'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "Production"
}
Was this page helpful?