Skip to content

Project

Example project:

{
"id": 2,
"tasks": [
7,
6,
5
],
"created_at": "2016-12-07T02:09:28.515319Z",
"name": "Test",
"description": "",
"permissions": [
"delete",
"change",
"add",
"view"
]
}

A Project is a collection of Task items.

FieldTypeDescription
idintUnique identifier
tasksint[]List of task IDs associated with this project
created_atstringCreation date and time
namestringName of the project
descriptionstringA more in-depth description
permissionsstring[]List of actions that the current user is allowed to perform. See Permissions Values

POST /api/projects/

ParameterRequiredDefaultDescription
name*""Name of the project
description""A more in-depth description

PATCH /api/projects/{id}/

Parameters are the same as above.

DELETE /api/projects/{id}/

Upon deletion, all Task items associated with the Project are deleted also. The operation is irreversible.

GET /api/projects/{id}/

Project list:

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 2,
"tasks": [
7,
6,
5
],
"created_at": "2016-12-07T02:09:28.515319Z",
"name": "Test",
"description": ""
}
]
}

GET /api/projects/

ParameterRequiredDefaultDescription
page1Page number
id""Filter by id
name""Filter by name
description""Filter by description
created_at""Filter by created_at
ordering""Ordering field to sort results by

GET /api/projects/?name=hello

Retrieves projects that have a name of “hello”.

GET /api/projects/?ordering=-id

Sort by project ID, descending order.