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 method | Route | 
|---|---|
| POST | /projects | 
Payload
The server needs to receive a json object with one property:
| Name | Type | Description | 
|---|---|---|
id | number | Optional. The ID of a new project. | 
label | string | Required. The name of a new project to be added. | 
Example:
{
    "id": 1,
    "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).
Change log: The id parameter was added in v1.3
Related articles: