Create a new project
POST http://localhost:8080/consumer/api/v1/api/v1/projects
Creates a new project from the given project body
- application/json
Request Body required
Project body
- hosting_platform string required
- org_id string
- project_name string required
- region string required
Responses
- 200
- 400
- 403
Success" {"ok":1,"data":{"projectId":[]}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Bad Request" {"ok":0,"error":"<error_message>"}
- application/json
- Schema
- Example (from schema)
Schema
{}
Forbidden" {"ok":0,"error":"<error_message>"}
- application/json
- Schema
- Example (from schema)
Schema
{}
Request
Request
curl / cURL
curl -L -X POST 'http://localhost:8080/consumer/api/v1/api/v1/projects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"hosting_platform": "string",
"org_id": "string",
"project_name": "string",
"region": "string"
}'
python / requests
curl -L -X POST 'http://localhost:8080/consumer/api/v1/api/v1/projects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"hosting_platform": "string",
"org_id": "string",
"project_name": "string",
"region": "string"
}'
go / native
curl -L -X POST 'http://localhost:8080/consumer/api/v1/api/v1/projects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"hosting_platform": "string",
"org_id": "string",
"project_name": "string",
"region": "string"
}'
nodejs / axios
curl -L -X POST 'http://localhost:8080/consumer/api/v1/api/v1/projects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"hosting_platform": "string",
"org_id": "string",
"project_name": "string",
"region": "string"
}'