Skip to content

Create project

POST
/api/v1/organizations/{orgId}/projects
curl --request POST \
--url https://localhost:10001/api/v1/organizations/1/projects \
--header 'Authorization: <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

orgId
required
integer

Organization ID

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"
}

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"
}

Bad request - Invalid organization ID or request body

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

Organization not found

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

Internal server error

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