curl -X POST 'https://api.example.com/projects' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"name": "API Service"
}'
{
"id": "project_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "API Service"
}
Create a new project within a workspace
curl -X POST 'https://api.example.com/projects' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"name": "API Service"
}'
{
"id": "project_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "API Service"
}
project_{uuidv7}curl -X POST 'https://api.example.com/projects' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"name": "API Service"
}'
{
"id": "project_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"workspaceId": "workspace_main",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"name": "API Service"
}
Was this page helpful?