Skip to main content

POST /projects

Description

Creates a new project and returns a project object with the project ID in it

The route handles the POST request made to the /projects path.

HTTP methodRoute
POST/projects

Payload

The server needs to receive a json object with one property:

NameTypeDescription
labelstringRequired. The name of a new project to be added.

Example:

{
"label": "New Project"
}

Response

The route returns a json object with the ID of a new project.

Example:

{
"id": 3
}

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: