Skip to content
English
  • There are no suggestions because the search field is empty.

Create project

POST /api/v1/organizations/{orgId}/projects Select code sample Fetch cURL
const url = 'https://localhost:10001/api/v1/organizations/1/projects';const options = {  method: 'POST',  headers: {Authorization: '
  
   ', 'Content-Type': 'application/json'}, body: '{"archivedAt":"example","createdAt":"example","description":"example","id":1,"isArchived":true,"name":"example","organizationId":1,"status":"example","updatedAt":"example","uuid":"example"}'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
  
curl --request POST \  --url https://localhost:10001/api/v1/organizations/1/projects \  --header 'Authorization: 
  
   ' \ --header 'Content-Type: application/json' \ --data '{ "archivedAt": "example", "createdAt": "example", "description": "example", "id": 1, "isArchived": true, "name": "example", "organizationId": 1, "status": "example", "updatedAt": "example", "uuid": "example" }'
  

Create a new project under an organization and add the creating user as project owner

Authorizations

Section titled “Authorizations ”

Parameters

Section titled “ Parameters ”

Path Parameters

Section titled “Path Parameters ” orgId required integer

Organization ID

Request Body

Section titled “Request Body ”

Project data

Media type application/json object archivedAt string createdAt string description string id integer isArchived boolean name string organizationId integer status

Status field from auth-service

string updatedAt string uuid string
Example generated
{  "archivedAt": "example",  "createdAt": "example",  "description": "example",  "id": 1,  "isArchived": true,  "name": "example",  "organizationId": 1,  "status": "example",  "updatedAt": "example",  "uuid": "example"}

Responses

Section titled “ Responses ”

201

Section titled “201 ”

Created project

Media type application/json object archivedAt string createdAt string description string id integer isArchived boolean name string organizationId integer status

Status field from auth-service

string updatedAt string uuid string
Example generated
{  "archivedAt": "example",  "createdAt": "example",  "description": "example",  "id": 1,  "isArchived": true,  "name": "example",  "organizationId": 1,  "status": "example",  "updatedAt": "example",  "uuid": "example"}

400

Section titled “400 ”

Bad request - Invalid organization ID or request body

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

401

Section titled “401 ”

Unauthorized - Authentication required

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

403

Section titled “403 ”

Forbidden - No organization access or insufficient permissions

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

404

Section titled “404 ”

Organization not found

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

500

Section titled “500 ”

Internal server error

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}
Previous
List projects under an organization
Next
Get project