api/docs/project/create.md

29 lines
966 B
Markdown
Raw Permalink Normal View History

# `/project/create` - POST
Creates a new project.
## HTTP Headers
| Header | Content |
|---------------|--------------------|
| Authorization | `Bearer {token}` |
| Content-Type | `application/json` |
## Content - JSON
| Field | Description |
|-------------|-----------------------------------------------|
| name | The name of the project to be created. |
| description | The description of the project to be created. |
## Responses
### 200 - Success
__Content - JSON:__
| Field | Description |
|-------|---------------------------------|
| id | The created projects unique id. |
### 400 - Error: Bad Request
The request was malformed.
2023-08-23 16:16:36 +00:00
### 401 - Error: Unauthorized
The provided access token doesn't allow you to perform this operation.
### 403 - Error: Forbidden
Blocked for security reasons.
### 409 - Error: Conflict
The requested project name is already taken.