2018-11-12 16:46:35 +01:00
basePath : /api/v1
definitions :
2020-11-21 17:38:58 +01:00
auth.Token :
properties :
token :
type : string
type : object
2020-06-28 16:25:46 +02:00
background.Image :
properties :
2021-12-12 21:52:07 +01:00
blur_hash :
type : string
2020-06-28 16:25:46 +02:00
id :
type : string
info :
2021-04-11 17:08:43 +02:00
description : This can be used to supply extra information from an image provider
to clients
2020-06-28 16:25:46 +02:00
thumb :
type : string
url :
type : string
type : object
2019-10-16 22:52:29 +02:00
files.File :
properties :
created :
type : string
id :
type : integer
mime :
type : string
name :
type : string
size :
type : integer
type : object
2020-01-19 17:52:16 +01:00
handler.AuthURL :
properties :
url :
type : string
type : object
2020-12-18 12:12:05 +01:00
microsofttodo.Migration :
properties :
code :
type : string
type : object
2020-01-20 20:48:46 +01:00
migration.Status :
properties :
id :
type : integer
migrator_name :
type : string
2020-06-28 16:25:46 +02:00
time :
type : string
2020-01-20 20:48:46 +01:00
type : object
2020-06-28 16:25:46 +02:00
models.Bucket :
2018-11-12 16:46:35 +01:00
properties :
2020-06-28 16:25:46 +02:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this bucket was created. You cannot change this
value.
2018-11-12 16:46:35 +01:00
type : string
2020-06-28 16:25:46 +02:00
created_by :
$ref : '#/definitions/user.User'
description : The user who initially created the bucket.
2020-12-22 12:38:05 +01:00
filter_by :
description : The field name of the field to filter by
items :
type : string
type : array
filter_comparator :
description : The comparator for field and value
items :
type : string
type : array
filter_concat :
2021-04-11 17:08:43 +02:00
description : The way all filter conditions are concatenated together, can
be either "and" or "or".,
2020-12-22 12:38:05 +01:00
type : string
filter_include_nulls :
description : If set to true, the result will also include null values
type : boolean
filter_value :
description : The value of the field name to filter by
items :
type : string
type : array
2018-11-12 16:46:35 +01:00
id :
2020-06-28 16:25:46 +02:00
description : The unique, numeric id of this bucket.
2018-11-12 16:46:35 +01:00
type : integer
2021-03-24 21:16:35 +01:00
is_done_bucket :
2021-04-11 17:08:43 +02:00
description : If this bucket is the "done bucket". All tasks moved into this
bucket will automatically marked as done. All tasks marked as done from
elsewhere will be moved into this bucket.
2021-03-24 21:16:35 +01:00
type : boolean
2020-09-04 16:37:56 +02:00
limit :
description : How many tasks can be at the same time on this board max
2021-04-15 16:55:21 +02:00
minimum : 0
2020-09-04 16:37:56 +02:00
type : integer
2020-06-28 16:25:46 +02:00
list_id :
description : The list this bucket belongs to.
type : integer
2020-12-22 12:38:05 +01:00
order_by :
2021-04-11 17:08:43 +02:00
description : The query parameter to order the items by. This can be either
asc or desc, with asc being the default.
2020-12-22 12:38:05 +01:00
items :
type : string
type : array
2021-07-28 21:06:40 +02:00
position :
description : The position this bucket has when querying all buckets. See the
tasks.position property on how to use this.
type : number
2020-12-22 12:38:05 +01:00
sort_by :
2021-04-11 17:08:43 +02:00
description : The query parameter to sort by. This is for ex. done, priority,
etc.
2020-12-22 12:38:05 +01:00
items :
type : string
type : array
2020-06-28 16:25:46 +02:00
tasks :
description : All tasks which belong to this bucket.
items :
$ref : '#/definitions/models.Task'
type : array
title :
description : The title of this bucket.
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
2020-06-28 16:25:46 +02:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this bucket was last updated. You cannot change
this value.
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2019-01-08 20:13:07 +01:00
models.BulkAssignees :
properties :
assignees :
description : A list with all assignees
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-01-08 20:13:07 +01:00
type : array
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-01-08 20:13:07 +01:00
type : object
2018-12-28 22:49:46 +01:00
models.BulkTask :
properties :
2018-12-29 15:29:50 +01:00
assignees :
2019-01-03 23:22:06 +01:00
description : An array of users who are assigned to this task
2018-12-29 15:29:50 +01:00
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2018-12-29 15:29:50 +01:00
type : array
2019-10-16 22:52:29 +02:00
attachments :
description : All attachments this task has
items :
$ref : '#/definitions/models.TaskAttachment'
type : array
2020-06-28 16:25:46 +02:00
bucket_id :
description : BucketID is the ID of the kanban bucket this task belongs to.
2018-12-28 22:49:46 +01:00
type : integer
2020-06-28 16:25:46 +02:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
created_by :
$ref : '#/definitions/user.User'
2019-01-03 23:22:06 +01:00
description : The user who initially created the task.
2018-12-28 22:49:46 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The task description.
2018-12-28 22:49:46 +01:00
type : string
done :
2019-01-14 23:32:56 +01:00
description : Whether a task is done or not.
2018-12-28 22:49:46 +01:00
type : boolean
2020-06-28 16:25:46 +02:00
done_at :
description : The time when a task was marked as done.
type : string
due_date :
description : The time when the task is due.
type : string
end_date :
2019-01-03 23:22:06 +01:00
description : When this task ends.
2020-06-28 16:25:46 +02:00
type : string
hex_color :
2019-04-30 11:26:37 +02:00
description : The task color in hex
maxLength : 6
type : string
2018-12-28 22:49:46 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this task.
2018-12-28 22:49:46 +01:00
type : integer
2019-12-07 23:28:45 +01:00
identifier :
2021-04-11 17:08:43 +02:00
description : The task identifier, based on the list identifier and the task's
index
2019-12-07 23:28:45 +01:00
type : string
index :
description : The task index, calculated per list
type : integer
2020-09-05 22:16:02 +02:00
is_favorite :
2021-04-11 17:08:43 +02:00
description : True if a task is a favorite task. Favorite tasks show up in
2021-07-10 12:21:54 +02:00
a separate "Important" list. This value depends on the user making the call
to the api.
2020-09-05 22:16:02 +02:00
type : boolean
2021-07-28 21:06:40 +02:00
kanban_position :
description : The position of tasks in the kanban board. See the docs for the
`position` property on how to use this.
type : number
2018-12-31 02:18:41 +01:00
labels :
2019-01-03 23:22:06 +01:00
description : An array of labels which are associated with this task.
2018-12-31 02:18:41 +01:00
items :
$ref : '#/definitions/models.Label'
type : array
2020-06-28 16:25:46 +02:00
list_id :
2019-04-23 21:53:37 +02:00
description : The list this task belongs to.
type : integer
2020-06-28 16:25:46 +02:00
percent_done :
2019-09-21 12:52:10 +02:00
description : Determines how far a task is left from being done
type : number
2020-06-28 16:25:46 +02:00
position :
description : |-
The position of the task - any task list can be sorted as usual by this parameter.
When accessing tasks via kanban buckets, this is primarily used to sort them based on a range
We're using a float64 here to make it possible to put any task within any two other tasks (by changing the number).
You would calculate the new position between two tasks with something like task3.position = (task2.position - task1.position) / 2.
A 64-Bit float leaves plenty of room to initially give tasks a position with 2^16 difference to the previous task
which also leaves a lot of room for rearranging and sorting later.
type : number
2018-12-28 22:49:46 +01:00
priority :
2021-04-11 17:08:43 +02:00
description : The task priority. Can be anything you want, it is possible to
sort by this later.
2018-12-28 22:49:46 +01:00
type : integer
2019-09-25 20:44:41 +02:00
related_tasks :
$ref : '#/definitions/models.RelatedTaskMap'
description : All related tasks, grouped by their relation kind
2020-06-28 16:25:46 +02:00
reminder_dates :
2021-04-11 17:08:43 +02:00
description : An array of datetimes when the user wants to be reminded of the
task.
2018-12-28 22:49:46 +01:00
items :
2020-06-28 16:25:46 +02:00
type : string
2018-12-28 22:49:46 +01:00
type : array
2020-06-28 16:25:46 +02:00
repeat_after :
2021-04-11 17:08:43 +02:00
description : An amount in seconds this task repeats itself. If this is set,
when marking the task as done, it will mark itself as "undone" and then
increase all remindes and the due date by its amount.
2018-12-28 22:49:46 +01:00
type : integer
2021-04-14 11:04:58 +02:00
repeat_mode :
description : 'Can have three possible values which will trigger when the task
is marked as done : 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type : integer
2020-06-28 16:25:46 +02:00
start_date :
2019-01-03 23:22:06 +01:00
description : When this task starts.
2020-06-28 16:25:46 +02:00
type : string
2021-02-14 20:18:14 +01:00
subscription :
$ref : '#/definitions/models.Subscription'
description : |-
The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one task.
2018-12-28 22:49:46 +01:00
task_ids :
2019-01-03 23:22:06 +01:00
description : A list of task ids to update
2018-12-28 22:49:46 +01:00
items :
type : integer
type : array
2020-06-28 16:25:46 +02:00
title :
2019-01-03 23:22:06 +01:00
description : The task text. This is what you'll see in the list.
2020-09-26 23:02:17 +02:00
minLength : 1
2018-12-28 22:49:46 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was last updated. You cannot change
this value.
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2021-02-21 15:50:34 +01:00
models.DatabaseNotifications :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this notification was created. You cannot change
this value.
2021-02-21 15:50:34 +01:00
type : string
id :
description : The unique, numeric id of this notification.
type : integer
name :
description : The name of the notification
type : string
notification :
description : The actual content of the notification.
read :
description : |-
Whether or not to mark this notification as read or unread.
True is read, false is unread.
type : boolean
read_at :
2021-04-11 17:08:43 +02:00
description : When this notification is marked as read, this will be updated
with the current timestamp.
2021-02-21 15:50:34 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2021-02-21 15:50:34 +01:00
type : object
2018-12-31 02:18:41 +01:00
models.Label :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this label was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2018-12-31 02:18:41 +01:00
created_by :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-01-03 23:22:06 +01:00
description : The user who created this label
2018-12-31 02:18:41 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The label description.
2018-12-31 02:18:41 +01:00
type : string
hex_color :
2019-01-03 23:22:06 +01:00
description : The color this label has
maxLength : 6
2018-12-31 02:18:41 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this label.
2018-12-31 02:18:41 +01:00
type : integer
title :
2021-04-11 17:08:43 +02:00
description : The title of the lable. You'll see this one on tasks associated
with it.
2019-01-03 23:22:06 +01:00
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-12-31 02:18:41 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this label was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-12-31 02:18:41 +01:00
type : object
2019-03-21 07:40:56 +01:00
models.LabelTask :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2019-03-21 07:40:56 +01:00
label_id :
description : The label id you want to associate with a task.
type : integer
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-03-21 07:40:56 +01:00
type : object
2019-01-10 00:08:12 +01:00
models.LabelTaskBulk :
properties :
labels :
2019-03-21 18:42:21 +01:00
description : All labels you want to update at once.
2019-01-10 00:08:12 +01:00
items :
$ref : '#/definitions/models.Label'
type : array
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-01-10 00:08:12 +01:00
type : object
2019-08-31 22:56:41 +02:00
models.LinkSharing :
2018-11-12 16:46:35 +01:00
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this list was shared. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2019-08-31 22:56:41 +02:00
hash :
description : The public id to get this shared list
2018-11-12 16:46:35 +01:00
type : string
id :
2019-08-31 22:56:41 +02:00
description : The ID of the shared thing
2018-11-12 16:46:35 +01:00
type : integer
2021-04-07 14:44:39 +02:00
name :
2021-04-11 17:08:43 +02:00
description : The name of this link share. All actions someone takes while
being authenticated with that link will appear with that name.
2021-04-07 14:44:39 +02:00
type : string
2021-04-11 15:17:50 +02:00
password :
2021-04-11 17:08:43 +02:00
description : The password of this link share. You can only set it, not retrieve
it after the link share has been created.
2021-04-11 15:17:50 +02:00
type : string
2019-08-31 22:56:41 +02:00
right :
default : 0
2021-04-11 17:08:43 +02:00
description : The right this list is shared with. 0 = Read only, 1 = Read &
Write, 2 = Admin. See the docs for more details.
2019-08-31 22:56:41 +02:00
maximum : 2
type : integer
shared_by :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-08-31 22:56:41 +02:00
description : The user who shared this list
sharing_type :
default : 0
2021-04-11 17:08:43 +02:00
description : The kind of this link. 0 = undefined, 1 = without password, 2
= with password.
2019-08-31 22:56:41 +02:00
maximum : 2
type : integer
2018-11-12 16:46:35 +01:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this share was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2019-08-31 22:56:41 +02:00
models.List :
2018-11-12 16:46:35 +01:00
properties :
2021-12-12 21:52:07 +01:00
background_blur_hash :
description : Contains a very small version of the list background to use as
a blurry preview until the actual background is loaded. Check out https://blurha.sh/
to learn how it works.
type : string
2020-06-28 16:25:46 +02:00
background_information :
2021-04-11 17:08:43 +02:00
description : Holds extra information about the background set since some background
providers require attribution or similar. If not null, the background can
be accessed at /lists/{listID}/background
2018-11-12 16:46:35 +01:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this list was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
description :
2019-08-31 22:56:41 +02:00
description : The description of the list.
2019-04-30 11:26:37 +02:00
type : string
2020-06-28 16:25:46 +02:00
hex_color :
description : The hex color of this list
maxLength : 6
type : string
2018-11-12 16:46:35 +01:00
id :
2019-08-31 22:56:41 +02:00
description : The unique, numeric id of this list.
2018-12-22 16:45:16 +01:00
type : integer
2019-12-07 23:28:45 +01:00
identifier :
description : The unique list short identifier. Used to build task identifiers.
maxLength : 10
minLength : 0
type : string
2020-06-28 16:25:46 +02:00
is_archived :
description : Whether or not a list is archived.
type : boolean
2020-09-06 16:20:16 +02:00
is_favorite :
2021-04-11 17:08:43 +02:00
description : True if a list is a favorite. Favorite lists show up in a separate
2021-07-10 12:21:54 +02:00
namespace. This value depends on the user making the call to the api.
2020-09-06 16:20:16 +02:00
type : boolean
2020-06-28 16:25:46 +02:00
namespace_id :
type : integer
2019-08-31 22:56:41 +02:00
owner :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-08-31 22:56:41 +02:00
description : The user who created this list.
2021-07-28 21:06:40 +02:00
position :
description : The position this list has when querying all lists. See the tasks.position
property on how to use this.
type : number
2021-02-14 20:18:14 +01:00
subscription :
$ref : '#/definitions/models.Subscription'
description : |-
The subscription status for the user reading this list. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one list.
2019-08-31 22:56:41 +02:00
title :
description : The title of the list. You'll see this in the namespace overview.
2019-01-03 23:22:06 +01:00
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this list was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2020-08-02 19:16:58 +02:00
models.ListDuplicate :
properties :
list :
$ref : '#/definitions/models.List'
description : The copied list
namespace_id :
description : The target namespace ID
type : integer
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2020-08-02 19:16:58 +02:00
type : object
2018-11-12 16:46:35 +01:00
models.ListUser :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this list <-> user relation.
2018-11-12 16:46:35 +01:00
type : integer
right :
2019-01-03 23:22:06 +01:00
default : 0
2021-04-11 17:08:43 +02:00
description : The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2019-01-03 23:22:06 +01:00
maximum : 2
2018-11-12 16:46:35 +01:00
type : integer
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
user_id :
2019-05-25 11:47:16 +02:00
description : The username.
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.Message :
properties :
message :
2019-01-03 23:22:06 +01:00
description : A standard message.
2018-11-12 16:46:35 +01:00
type : string
type : object
models.Namespace :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this namespace was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The description of the namespace
2018-11-12 16:46:35 +01:00
type : string
2020-06-28 16:25:46 +02:00
hex_color :
description : The hex color of this namespace
maxLength : 6
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this namespace.
2018-11-12 16:46:35 +01:00
type : integer
2020-06-28 16:25:46 +02:00
is_archived :
description : Whether or not a namespace is archived.
type : boolean
owner :
$ref : '#/definitions/user.User'
description : The user who owns this namespace
2021-02-14 20:18:14 +01:00
subscription :
$ref : '#/definitions/models.Subscription'
description : |-
The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one namespace.
2020-06-28 16:25:46 +02:00
title :
2019-01-03 23:22:06 +01:00
description : The name of this namespace.
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this namespace was last updated. You cannot
change this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.NamespaceUser :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this namespace <-> user relation.
2018-11-12 16:46:35 +01:00
type : integer
right :
2019-01-03 23:22:06 +01:00
default : 0
2021-04-11 17:08:43 +02:00
description : The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2019-01-03 23:22:06 +01:00
maximum : 2
2018-11-12 16:46:35 +01:00
type : integer
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
user_id :
2019-05-25 11:47:16 +02:00
description : The username.
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.NamespaceWithLists :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this namespace was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The description of the namespace
2018-11-12 16:46:35 +01:00
type : string
2020-06-28 16:25:46 +02:00
hex_color :
description : The hex color of this namespace
maxLength : 6
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this namespace.
2018-11-12 16:46:35 +01:00
type : integer
2020-06-28 16:25:46 +02:00
is_archived :
description : Whether or not a namespace is archived.
type : boolean
2018-11-12 16:46:35 +01:00
lists :
items :
$ref : '#/definitions/models.List'
type : array
2020-06-28 16:25:46 +02:00
owner :
$ref : '#/definitions/user.User'
description : The user who owns this namespace
2021-02-14 20:18:14 +01:00
subscription :
$ref : '#/definitions/models.Subscription'
description : |-
The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one namespace.
2020-06-28 16:25:46 +02:00
title :
2019-01-03 23:22:06 +01:00
description : The name of this namespace.
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this namespace was last updated. You cannot
change this value.
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2019-09-25 20:44:41 +02:00
models.RelatedTaskMap :
additionalProperties :
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.Task'
2019-09-25 20:44:41 +02:00
type : array
type : object
2020-09-26 23:02:17 +02:00
models.SavedFilter :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this filter was created. You cannot change this
value.
2020-09-26 23:02:17 +02:00
type : string
description :
description : The description of the filter
type : string
filters :
$ref : '#/definitions/models.TaskCollection'
description : The actual filters this filter contains
id :
description : The unique numeric id of this saved filter
type : integer
2021-04-03 16:49:20 +02:00
is_favorite :
2021-04-11 17:08:43 +02:00
description : True if the filter is a favorite. Favorite filters show up in
a separate namespace together with favorite lists.
2021-04-03 16:49:20 +02:00
type : boolean
2020-09-26 23:02:17 +02:00
owner :
$ref : '#/definitions/user.User'
description : The user who owns this filter
title :
description : The title of the filter.
maxLength : 250
minLength : 1
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this filter was last updated. You cannot change
this value.
2020-09-26 23:02:17 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2020-09-26 23:02:17 +02:00
type : object
2021-02-14 20:18:14 +01:00
models.Subscription :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this subscription was created. You cannot change
this value.
2021-02-14 20:18:14 +01:00
type : string
entity :
type : string
entity_id :
description : The id of the entity to subscribe to.
type : integer
id :
description : The numeric ID of the subscription
type : integer
user :
$ref : '#/definitions/user.User'
description : The user who made this subscription
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2021-02-14 20:18:14 +01:00
type : object
2019-08-31 22:56:41 +02:00
models.Task :
properties :
assignees :
description : An array of users who are assigned to this task
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-08-31 22:56:41 +02:00
type : array
2019-10-16 22:52:29 +02:00
attachments :
description : All attachments this task has
items :
$ref : '#/definitions/models.TaskAttachment'
type : array
2020-06-28 16:25:46 +02:00
bucket_id :
description : BucketID is the ID of the kanban bucket this task belongs to.
2019-08-31 22:56:41 +02:00
type : integer
2020-06-28 16:25:46 +02:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
created_by :
$ref : '#/definitions/user.User'
2019-08-31 22:56:41 +02:00
description : The user who initially created the task.
description :
description : The task description.
type : string
done :
description : Whether a task is done or not.
type : boolean
2020-06-28 16:25:46 +02:00
done_at :
description : The time when a task was marked as done.
type : string
due_date :
description : The time when the task is due.
type : string
end_date :
2019-08-31 22:56:41 +02:00
description : When this task ends.
2020-06-28 16:25:46 +02:00
type : string
hex_color :
2019-08-31 22:56:41 +02:00
description : The task color in hex
maxLength : 6
type : string
id :
description : The unique, numeric id of this task.
type : integer
2019-12-07 23:28:45 +01:00
identifier :
2021-04-11 17:08:43 +02:00
description : The task identifier, based on the list identifier and the task's
index
2019-12-07 23:28:45 +01:00
type : string
index :
description : The task index, calculated per list
type : integer
2020-09-05 22:16:02 +02:00
is_favorite :
2021-04-11 17:08:43 +02:00
description : True if a task is a favorite task. Favorite tasks show up in
2021-07-10 12:21:54 +02:00
a separate "Important" list. This value depends on the user making the call
to the api.
2020-09-05 22:16:02 +02:00
type : boolean
2021-07-28 21:06:40 +02:00
kanban_position :
description : The position of tasks in the kanban board. See the docs for the
`position` property on how to use this.
type : number
2019-08-31 22:56:41 +02:00
labels :
description : An array of labels which are associated with this task.
items :
$ref : '#/definitions/models.Label'
type : array
2020-06-28 16:25:46 +02:00
list_id :
2019-08-31 22:56:41 +02:00
description : The list this task belongs to.
type : integer
2020-06-28 16:25:46 +02:00
percent_done :
2019-09-21 12:52:10 +02:00
description : Determines how far a task is left from being done
type : number
2020-06-28 16:25:46 +02:00
position :
description : |-
The position of the task - any task list can be sorted as usual by this parameter.
When accessing tasks via kanban buckets, this is primarily used to sort them based on a range
We're using a float64 here to make it possible to put any task within any two other tasks (by changing the number).
You would calculate the new position between two tasks with something like task3.position = (task2.position - task1.position) / 2.
A 64-Bit float leaves plenty of room to initially give tasks a position with 2^16 difference to the previous task
which also leaves a lot of room for rearranging and sorting later.
type : number
2019-08-31 22:56:41 +02:00
priority :
2021-04-11 17:08:43 +02:00
description : The task priority. Can be anything you want, it is possible to
sort by this later.
2019-08-31 22:56:41 +02:00
type : integer
2019-09-25 20:44:41 +02:00
related_tasks :
$ref : '#/definitions/models.RelatedTaskMap'
description : All related tasks, grouped by their relation kind
2020-06-28 16:25:46 +02:00
reminder_dates :
2021-04-11 17:08:43 +02:00
description : An array of datetimes when the user wants to be reminded of the
task.
2019-08-31 22:56:41 +02:00
items :
2020-06-28 16:25:46 +02:00
type : string
2019-08-31 22:56:41 +02:00
type : array
2020-06-28 16:25:46 +02:00
repeat_after :
2021-04-11 17:08:43 +02:00
description : An amount in seconds this task repeats itself. If this is set,
when marking the task as done, it will mark itself as "undone" and then
increase all remindes and the due date by its amount.
2019-08-31 22:56:41 +02:00
type : integer
2021-04-14 11:04:58 +02:00
repeat_mode :
description : 'Can have three possible values which will trigger when the task
is marked as done : 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type : integer
2020-06-28 16:25:46 +02:00
start_date :
2019-08-31 22:56:41 +02:00
description : When this task starts.
2020-06-28 16:25:46 +02:00
type : string
2021-02-14 20:18:14 +01:00
subscription :
$ref : '#/definitions/models.Subscription'
description : |-
The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one task.
2020-06-28 16:25:46 +02:00
title :
2019-08-31 22:56:41 +02:00
description : The task text. This is what you'll see in the list.
2020-09-26 23:02:17 +02:00
minLength : 1
2019-08-31 22:56:41 +02:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-08-31 22:56:41 +02:00
type : object
models.TaskAssginee :
properties :
created :
2020-06-28 16:25:46 +02:00
type : string
2019-08-31 22:56:41 +02:00
user_id :
type : integer
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-08-31 22:56:41 +02:00
type : object
2019-10-16 22:52:29 +02:00
models.TaskAttachment :
properties :
created :
2020-06-28 16:25:46 +02:00
type : string
2019-10-16 22:52:29 +02:00
created_by :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-10-16 22:52:29 +02:00
file :
$ref : '#/definitions/files.File'
id :
type : integer
task_id :
type : integer
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-10-16 22:52:29 +02:00
type : object
2020-09-26 23:02:17 +02:00
models.TaskCollection :
properties :
filter_by :
description : The field name of the field to filter by
items :
type : string
type : array
filter_comparator :
description : The comparator for field and value
items :
type : string
type : array
filter_concat :
2021-04-11 17:08:43 +02:00
description : The way all filter conditions are concatenated together, can
be either "and" or "or".,
2020-09-26 23:02:17 +02:00
type : string
filter_include_nulls :
description : If set to true, the result will also include null values
type : boolean
filter_value :
description : The value of the field name to filter by
items :
type : string
type : array
order_by :
2021-04-11 17:08:43 +02:00
description : The query parameter to order the items by. This can be either
asc or desc, with asc being the default.
2020-09-26 23:02:17 +02:00
items :
type : string
type : array
sort_by :
2021-04-11 17:08:43 +02:00
description : The query parameter to sort by. This is for ex. done, priority,
etc.
2020-09-26 23:02:17 +02:00
items :
type : string
type : array
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2020-09-26 23:02:17 +02:00
type : object
2020-06-28 16:25:46 +02:00
models.TaskComment :
2019-09-25 20:44:41 +02:00
properties :
2020-06-28 16:25:46 +02:00
author :
$ref : '#/definitions/user.User'
comment :
type : string
2019-09-25 20:44:41 +02:00
created :
2020-06-28 16:25:46 +02:00
type : string
id :
2019-09-25 20:44:41 +02:00
type : integer
2020-06-28 16:25:46 +02:00
updated :
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2020-06-28 16:25:46 +02:00
type : object
models.TaskRelation :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this label was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2019-09-25 20:44:41 +02:00
created_by :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-09-25 20:44:41 +02:00
description : The user who created this relation
other_task_id :
description : The ID of the other task, the task which is being related.
type : integer
relation_kind :
description : The kind of the relation.
type : string
task_id :
description : The ID of the "base" task, the task which has a relation to another.
type : integer
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2019-09-25 20:44:41 +02:00
type : object
2018-11-12 16:46:35 +01:00
models.Team :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
created_by :
$ref : '#/definitions/user.User'
2019-01-03 23:22:06 +01:00
description : The user who created this team.
2018-11-12 16:46:35 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The team's description.
2018-11-12 16:46:35 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this team.
2018-11-12 16:46:35 +01:00
type : integer
members :
2019-01-03 23:22:06 +01:00
description : An array of all members in this team.
2018-11-12 16:46:35 +01:00
items :
$ref : '#/definitions/models.TeamUser'
type : array
name :
2019-01-03 23:22:06 +01:00
description : The name of this team.
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.TeamList :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this list <-> team relation.
2018-11-12 16:46:35 +01:00
type : integer
right :
2019-01-03 23:22:06 +01:00
default : 0
2021-04-11 17:08:43 +02:00
description : The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2019-01-03 23:22:06 +01:00
maximum : 2
2018-11-12 16:46:35 +01:00
type : integer
2020-06-28 16:25:46 +02:00
team_id :
2019-01-03 23:22:06 +01:00
description : The team id.
2018-11-12 16:46:35 +01:00
type : integer
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.TeamMember :
properties :
admin :
2021-04-11 17:08:43 +02:00
description : Whether or not the member is an admin of the team. See the docs
for more about what a team admin can do
2018-11-12 16:46:35 +01:00
type : boolean
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this team member relation.
2018-11-12 16:46:35 +01:00
type : integer
2019-05-25 11:47:16 +02:00
username :
2021-04-11 17:08:43 +02:00
description : The username of the member. We use this to prevent automated
user id entering.
2019-05-25 11:47:16 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.TeamNamespace :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this namespace <-> team relation.
2018-11-12 16:46:35 +01:00
type : integer
right :
2019-01-03 23:22:06 +01:00
default : 0
2021-04-11 17:08:43 +02:00
description : The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2019-01-03 23:22:06 +01:00
maximum : 2
2018-11-12 16:46:35 +01:00
type : integer
2020-06-28 16:25:46 +02:00
team_id :
2019-01-03 23:22:06 +01:00
description : The team id.
2018-11-12 16:46:35 +01:00
type : integer
2019-01-08 20:13:07 +01:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
models.TeamUser :
properties :
admin :
2021-04-11 17:08:43 +02:00
description : Whether or not the member is an admin of the team. See the docs
for more about what a team admin can do
2018-11-12 16:46:35 +01:00
type : boolean
2018-11-21 16:03:47 +01:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
email :
2019-01-14 23:32:56 +01:00
description : The user's email address.
2019-01-03 23:22:06 +01:00
maxLength : 250
2018-11-12 16:46:35 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this user.
2018-11-12 16:46:35 +01:00
type : integer
2020-11-21 21:51:55 +01:00
name :
description : The full name of the user.
type : string
2018-11-21 16:03:47 +01:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
username :
2019-01-14 23:32:56 +01:00
description : The username of the user. Is always unique.
2019-01-03 23:22:06 +01:00
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.Auth : {}
2018-11-12 16:46:35 +01:00
type : object
models.TeamWithRight :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was created. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
created_by :
$ref : '#/definitions/user.User'
2019-01-03 23:22:06 +01:00
description : The user who created this team.
2018-11-12 16:46:35 +01:00
description :
2019-01-03 23:22:06 +01:00
description : The team's description.
2018-11-12 16:46:35 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this team.
2018-11-12 16:46:35 +01:00
type : integer
members :
2019-01-03 23:22:06 +01:00
description : An array of all members in this team.
2018-11-12 16:46:35 +01:00
items :
$ref : '#/definitions/models.TeamUser'
type : array
name :
2019-01-03 23:22:06 +01:00
description : The name of this team.
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
right :
2022-05-15 21:57:00 +02:00
default : 0
description : The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2018-11-12 16:46:35 +01:00
type : integer
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this relation was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2021-09-26 14:44:37 +02:00
web.CRUDable : {}
web.Rights : {}
2018-11-12 16:46:35 +01:00
type : object
2020-06-28 16:25:46 +02:00
models.UserWithRight :
2018-11-12 16:46:35 +01:00
properties :
2018-11-21 16:03:47 +01:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
email :
2019-01-14 23:32:56 +01:00
description : The user's email address.
2019-01-03 23:22:06 +01:00
maxLength : 250
2018-11-12 16:46:35 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this user.
2018-11-12 16:46:35 +01:00
type : integer
2020-11-21 21:51:55 +01:00
name :
description : The full name of the user.
type : string
2020-06-28 16:25:46 +02:00
right :
2022-05-15 21:57:00 +02:00
default : 0
description : The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
2018-11-21 16:03:47 +01:00
type : integer
2020-06-28 16:25:46 +02:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
username :
2019-01-14 23:32:56 +01:00
description : The username of the user. Is always unique.
2019-01-03 23:22:06 +01:00
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.Auth : {}
2018-11-12 16:46:35 +01:00
type : object
2021-02-21 15:50:34 +01:00
notifications.DatabaseNotification :
properties :
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this notification was created. You cannot change
this value.
2021-02-21 15:50:34 +01:00
type : string
id :
description : The unique, numeric id of this notification.
type : integer
name :
description : The name of the notification
type : string
notification :
description : The actual content of the notification.
read_at :
2021-04-11 17:08:43 +02:00
description : When this notification is marked as read, this will be updated
with the current timestamp.
2021-02-21 15:50:34 +01:00
type : string
type : object
2020-11-21 17:38:58 +01:00
openid.Callback :
properties :
code :
type : string
scope :
type : string
type : object
openid.Provider :
properties :
auth_url :
type : string
client_id :
type : string
key :
type : string
name :
type : string
type : object
2020-06-28 16:25:46 +02:00
todoist.Migration :
properties :
code :
type : string
type : object
2020-12-17 14:44:04 +01:00
trello.Migration :
properties :
code :
type : string
type : object
2020-06-28 16:25:46 +02:00
user.APIUserPassword :
properties :
email :
description : The user's email address
maxLength : 250
type : string
id :
description : The unique, numeric id of this user.
type : integer
password :
2021-04-11 17:08:43 +02:00
description : The user's password in clear text. Only used when registering
the user.
2020-06-28 16:25:46 +02:00
maxLength : 250
minLength : 8
type : string
username :
description : The username of the username. Is always unique.
maxLength : 250
minLength : 3
type : string
type : object
user.EmailConfirm :
properties :
token :
description : The email confirm token sent via email.
type : string
type : object
user.EmailUpdate :
properties :
new_email :
description : The new email address. Needs to be a valid email address.
type : string
password :
description : The password of the user for confirmation.
type : string
type : object
user.Login :
2018-11-12 16:46:35 +01:00
properties :
2022-02-06 14:18:08 +01:00
long_token :
description : If true, the token returned will be valid a lot longer than default.
Useful for "remember me" style logins.
type : boolean
2018-11-12 16:46:35 +01:00
password :
2019-01-03 23:22:06 +01:00
description : The password for the user.
2018-11-12 16:46:35 +01:00
type : string
2020-06-28 16:25:46 +02:00
totp_passcode :
description : The totp passcode of a user. Only needs to be provided when enabled.
type : string
2018-11-12 16:46:35 +01:00
username :
2019-01-03 23:22:06 +01:00
description : The username used to log in.
2018-11-12 16:46:35 +01:00
type : string
type : object
2020-06-28 16:25:46 +02:00
user.PasswordReset :
2018-11-12 16:46:35 +01:00
properties :
2020-06-28 16:25:46 +02:00
new_password :
description : The new password for this user.
type : string
token :
description : The previously issued reset token.
type : string
type : object
user.PasswordTokenRequest :
properties :
email :
maxLength : 250
type : string
type : object
user.TOTP :
properties :
enabled :
2021-04-11 17:08:43 +02:00
description : The totp entry will only be enabled after the user verified they
have a working totp setup.
2020-06-28 16:25:46 +02:00
type : boolean
secret :
type : string
url :
description : The totp url used to be able to enroll the user later
2019-05-31 09:24:59 +02:00
type : string
2020-06-28 16:25:46 +02:00
type : object
user.TOTPPasscode :
properties :
passcode :
type : string
type : object
2022-03-30 20:25:56 +02:00
user.Token :
properties :
created :
type : string
id :
type : integer
token :
type : string
type : object
2020-06-28 16:25:46 +02:00
user.User :
properties :
2018-11-21 16:03:47 +01:00
created :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was created. You cannot change this
value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
email :
2019-01-14 23:32:56 +01:00
description : The user's email address.
2019-01-03 23:22:06 +01:00
maxLength : 250
2018-11-12 16:46:35 +01:00
type : string
id :
2019-01-03 23:22:06 +01:00
description : The unique, numeric id of this user.
2018-11-12 16:46:35 +01:00
type : integer
2020-11-21 21:51:55 +01:00
name :
description : The full name of the user.
type : string
2018-11-21 16:03:47 +01:00
updated :
2021-04-11 17:08:43 +02:00
description : A timestamp when this task was last updated. You cannot change
this value.
2020-06-28 16:25:46 +02:00
type : string
2018-11-12 16:46:35 +01:00
username :
2019-01-14 23:32:56 +01:00
description : The username of the user. Is always unique.
2019-01-03 23:22:06 +01:00
maxLength : 250
2020-09-26 23:02:17 +02:00
minLength : 1
2018-11-12 16:46:35 +01:00
type : string
2021-09-26 14:44:37 +02:00
web.Auth : {}
2018-11-12 16:46:35 +01:00
type : object
2021-04-11 15:17:50 +02:00
v1.LinkShareAuth :
properties :
password :
type : string
type : object
2020-08-02 19:16:58 +02:00
v1.UserAvatarProvider :
properties :
avatar_provider :
2021-04-11 17:08:43 +02:00
description : The avatar provider. Valid types are `gravatar` (uses the user
2021-12-07 22:11:23 +01:00
email), `upload`, `initials`, `marble` (generates a random avatar for each
user), `default`.
2020-11-21 21:51:55 +01:00
type : string
type : object
2021-08-11 21:08:10 +02:00
v1.UserDeletionRequestConfirm :
properties :
token :
type : string
type : object
2018-11-12 16:46:35 +01:00
v1.UserPassword :
properties :
new_password :
type : string
old_password :
type : string
type : object
2021-09-04 21:26:31 +02:00
v1.UserPasswordConfirmation :
properties :
password :
type : string
type : object
2020-12-19 00:21:17 +01:00
v1.UserSettings :
properties :
2021-06-02 23:20:22 +02:00
default_list_id :
description : |-
If a task is created without a specified list this value should be used. Applies
to tasks made directly in API and from clients.
type : integer
2021-04-07 18:28:58 +02:00
discoverable_by_email :
2021-04-11 17:08:43 +02:00
description : If true, the user can be found when searching for their exact
email.
2021-04-07 18:28:58 +02:00
type : boolean
discoverable_by_name :
2021-04-11 17:08:43 +02:00
description : If true, this user can be found by their name or parts of it
when searching for it.
2021-04-07 18:28:58 +02:00
type : boolean
2020-12-19 00:21:17 +01:00
email_reminders_enabled :
description : If enabled, sends email reminders of tasks to the user.
type : boolean
2021-12-12 15:39:47 +01:00
language :
description : The user's language
type : string
2020-12-19 00:21:17 +01:00
name :
description : The new name of the current user.
type : string
2021-04-11 17:08:43 +02:00
overdue_tasks_reminders_enabled :
description : If enabled, the user will get an email for their overdue tasks
each morning.
type : boolean
2022-01-16 12:05:56 +01:00
timezone :
description : The user's time zone. Used to send task reminders in the time
zone of the user.
type : string
2021-06-03 18:11:44 +02:00
week_start :
description : The day when the week starts for this user. 0 = sunday, 1 = monday,
etc.
type : integer
2020-12-19 00:21:17 +01:00
type : object
2020-11-21 17:38:58 +01:00
v1.authInfo :
properties :
local :
$ref : '#/definitions/v1.localAuthInfo'
openid_connect :
$ref : '#/definitions/v1.openIDAuthInfo'
type : object
2020-08-02 19:16:58 +02:00
v1.legalInfo :
properties :
imprint_url :
type : string
privacy_policy_url :
type : string
type : object
2020-11-21 17:38:58 +01:00
v1.localAuthInfo :
properties :
enabled :
type : boolean
type : object
v1.openIDAuthInfo :
properties :
enabled :
type : boolean
providers :
items :
$ref : '#/definitions/openid.Provider'
type : array
redirect_url :
type : string
type : object
2019-07-16 00:54:38 +02:00
v1.vikunjaInfos :
properties :
2020-11-21 17:38:58 +01:00
auth :
$ref : '#/definitions/v1.authInfo'
2020-01-20 20:48:46 +01:00
available_migrators :
items :
type : string
type : array
2020-09-04 13:15:46 +02:00
caldav_enabled :
type : boolean
2020-12-19 00:21:17 +01:00
email_reminders_enabled :
type : boolean
2020-06-28 16:25:46 +02:00
enabled_background_providers :
items :
type : string
type : array
2019-07-16 00:54:38 +02:00
frontend_url :
type : string
2020-08-02 19:16:58 +02:00
legal :
$ref : '#/definitions/v1.legalInfo'
2019-08-31 22:56:41 +02:00
link_sharing_enabled :
type : boolean
2019-10-16 22:52:29 +02:00
max_file_size :
2019-10-23 23:11:40 +02:00
type : string
2019-07-16 00:54:38 +02:00
motd :
type : string
2020-01-20 20:48:46 +01:00
registration_enabled :
type : boolean
2020-06-28 16:25:46 +02:00
task_attachments_enabled :
type : boolean
2021-09-26 14:18:44 +02:00
task_comments_enabled :
type : boolean
2020-06-28 16:25:46 +02:00
totp_enabled :
type : boolean
2021-08-11 21:08:10 +02:00
user_deletion_enabled :
type : boolean
2019-07-16 00:54:38 +02:00
version :
type : string
type : object
2020-06-28 16:25:46 +02:00
web.HTTPError :
properties :
code :
type : integer
message :
type : string
type : object
2020-01-19 17:52:16 +01:00
wunderlist.Migration :
properties :
code :
description : Code is the code used to get a user api token
type : string
2020-06-28 16:25:46 +02:00
type : object
info :
contact :
email : hello@vikunja.io
name : General Vikunja contact
url : http://vikunja.io/en/contact/
description : |-
# Pagination
Every endpoint capable of pagination will return two headers :
* `x-pagination-total-pages` : The total number of available pages for this request
* `x-pagination-result-count` : The number of items returned for this request.
2020-08-10 14:11:43 +02:00
# Rights
All endpoints which return a single item (list, task, namespace, etc.) - no array - will also return a `x-max-right` header with the max right the user has on this item as an int where `0` is `Read Only`, `1` is `Read & Write` and `2` is `Admin`.
This can be used to show or hide ui elements based on the rights the user has.
2020-06-28 16:25:46 +02:00
# Authorization
**JWT-Auth:** Main authorization method, used for most of the requests. Needs `Authorization : Bearer <jwt-token>`-header to authenticate successfully.
**BasicAuth:** Only used when requesting tasks via caldav.
<!-- ReDoc-Inject : <security-definitions> -->
license :
name : GPLv3
url : http://code.vikunja.io/api/src/branch/master/LICENSE
title : Vikunja API
paths :
/{username}/avatar:
get :
description : Returns the user avatar as image.
parameters :
- description : The username of the user who's avatar you want to get
in : path
name : username
required : true
type : string
- description : The size of the avatar you want to get
in : query
name : size
type : integer
produces :
- application/octet-stream
responses :
"200" :
description : The avatar
schema :
type : ""
"404" :
description : The user does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : User Avatar
tags :
- user
2020-11-21 17:38:58 +01:00
/auth/openid/{provider}/callback:
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : After a redirect from the OpenID Connect provider to the frontend
has been made with the authentication `code`, this endpoint can be used to
obtain a jwt token for that user and thus log them in.
2020-11-21 17:38:58 +01:00
parameters :
- description : The openid callback
in : body
name : callback
required : true
schema :
$ref : '#/definitions/openid.Callback'
- description : The OpenID Connect provider key as returned by the /info endpoint
in : path
name : provider
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/auth.Token'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Authenticate a user with OpenID Connect
tags :
- auth
2020-06-28 16:25:46 +02:00
/backgrounds/unsplash/image/{image}:
get :
description : Get an unsplash image. **Returns json on error.**
parameters :
- description : Unsplash Image ID
in : path
name : thumb
required : true
type : integer
produces :
- application/octet-stream
responses :
"200" :
description : The image
schema :
type : ""
"404" :
description : The image does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get an unsplash image
tags :
- list
/backgrounds/unsplash/image/{image}/thumb:
get :
2021-04-11 17:08:43 +02:00
description : Get an unsplash thumbnail image. The thumbnail is cropped to a
max width of 200px. **Returns json on error.**
2020-06-28 16:25:46 +02:00
parameters :
- description : Unsplash Image ID
in : path
name : thumb
required : true
type : integer
produces :
- application/octet-stream
responses :
"200" :
description : The thumbnail
schema :
type : ""
"404" :
description : The image does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get an unsplash thumbnail image
tags :
- list
/backgrounds/unsplash/search :
get :
description : Search for a list background from unsplash
parameters :
- description : Search backgrounds from unsplash with this search term.
in : query
name : s
type : string
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2020-06-28 16:25:46 +02:00
in : query
name : p
type : integer
produces :
- application/json
responses :
"200" :
description : An array with photos
schema :
items :
$ref : '#/definitions/background.Image'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Search for a background from unsplash
tags :
- list
2020-09-26 23:02:17 +02:00
/filters :
put :
consumes :
- application/json
description : Creates a new saved filter
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2020-09-26 23:02:17 +02:00
description : The Saved Filter
schema :
$ref : '#/definitions/models.SavedFilter'
"403" :
description : The user does not have access to that saved filter.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Creates a new saved filter
tags :
- filter
/filters/{id}:
delete :
consumes :
- application/json
description : Removes a saved filter by its ID.
parameters :
- description : Filter ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The Saved Filter
schema :
$ref : '#/definitions/models.SavedFilter'
"403" :
description : The user does not have access to that saved filter.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The saved filter does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Removes a saved filter
tags :
- filter
get :
consumes :
- application/json
description : Returns a saved filter by its ID.
parameters :
- description : Filter ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The Saved Filter
schema :
$ref : '#/definitions/models.SavedFilter'
"403" :
description : The user does not have access to that saved filter.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Gets one saved filter
tags :
- filter
post :
consumes :
- application/json
description : Updates a saved filter by its ID.
parameters :
- description : Filter ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The Saved Filter
schema :
$ref : '#/definitions/models.SavedFilter'
"403" :
description : The user does not have access to that saved filter.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The saved filter does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Updates a saved filter
tags :
- filter
2019-07-16 00:54:38 +02:00
/info :
get :
2021-04-11 17:08:43 +02:00
description : Returns the version, frontendurl, motd and various settings of
Vikunja
2019-07-16 00:54:38 +02:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/v1.vikunjaInfos'
summary : Info
tags :
- service
2018-12-31 02:18:41 +01:00
/labels :
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Returns all labels which are either created by the user or associated
with a task the user has at least read-access to.
2018-12-31 02:18:41 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-12-31 02:18:41 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-12-31 02:18:41 +01:00
type : integer
2019-08-31 22:56:41 +02:00
- description : Search labels by label text.
2018-12-31 02:18:41 +01:00
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
2019-08-31 22:56:41 +02:00
description : The labels
2018-12-31 02:18:41 +01:00
schema :
items :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Label'
2018-12-31 02:18:41 +01:00
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2019-08-31 22:56:41 +02:00
summary : Get all labels a user has access to
2018-12-31 02:18:41 +01:00
tags :
2019-08-31 22:56:41 +02:00
- labels
2018-12-31 02:18:41 +01:00
put :
consumes :
- application/json
description : Creates a new label.
parameters :
- description : The label object
in : body
name : label
required : true
schema :
$ref : '#/definitions/models.Label'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-12-31 02:18:41 +01:00
description : The created label object.
schema :
$ref : '#/definitions/models.Label'
"400" :
description : Invalid label object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Create a label
tags :
- labels
/labels/{id}:
delete :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Delete an existing label. The user needs to be the creator of the
label to be able to do this.
2018-12-31 02:18:41 +01:00
parameters :
- description : Label ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The label was successfully deleted.
schema :
$ref : '#/definitions/models.Label'
"403" :
description : Not allowed to delete the label.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"404" :
description : Label not found.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Delete a label
tags :
- labels
get :
consumes :
- application/json
description : Returns one label by its ID.
parameters :
- description : Label ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The label
schema :
$ref : '#/definitions/models.Label'
"403" :
description : The user does not have access to the label
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"404" :
description : Label not found
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Gets one label
tags :
- labels
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update an existing label. The user needs to be the creator of the
label to be able to do this.
2018-12-31 02:18:41 +01:00
parameters :
- description : Label ID
in : path
name : id
required : true
type : integer
- description : The label object
in : body
name : label
required : true
schema :
$ref : '#/definitions/models.Label'
produces :
- application/json
responses :
"200" :
description : The created label object.
schema :
$ref : '#/definitions/models.Label'
"400" :
description : Invalid label object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"403" :
description : Not allowed to update the label.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"404" :
description : Label not found.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Update a label
tags :
- labels
2018-11-12 16:46:35 +01:00
/lists :
get :
consumes :
- application/json
description : Returns all lists a user has access to.
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search lists by title.
in : query
name : s
type : string
2020-06-28 16:25:46 +02:00
- description : If true, also returns all archived lists.
in : query
name : is_archived
type : boolean
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : The lists
schema :
items :
$ref : '#/definitions/models.List'
type : array
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get all lists a user has access to
tags :
- list
/lists/{id}:
delete :
description : Delets a list
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The list was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Invalid list object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Deletes a list
tags :
- list
get :
consumes :
- application/json
2019-12-07 20:52:04 +01:00
description : Returns a list by its ID.
2018-11-12 16:46:35 +01:00
parameters :
2019-12-07 20:52:04 +01:00
- description : List ID
2018-11-12 16:46:35 +01:00
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
2019-12-07 20:52:04 +01:00
description : The list
2018-11-12 16:46:35 +01:00
schema :
2019-12-07 20:52:04 +01:00
$ref : '#/definitions/models.List'
2018-11-12 16:46:35 +01:00
"403" :
2019-12-07 20:52:04 +01:00
description : The user does not have access to the list
2018-11-12 16:46:35 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2019-12-07 20:52:04 +01:00
summary : Gets one list
2018-11-12 16:46:35 +01:00
tags :
2019-12-07 20:52:04 +01:00
- list
2018-11-12 16:46:35 +01:00
post :
consumes :
- application/json
description : Updates a list. This does not include adding a task (see below).
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The list with updated values you want to update.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.List'
produces :
- application/json
responses :
"200" :
description : The updated list.
schema :
$ref : '#/definitions/models.List'
"400" :
description : Invalid list object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Updates a list
tags :
- list
put :
consumes :
- application/json
description : Inserts a task into a list.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The task object
in : body
name : task
required : true
schema :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Task'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created task object.
schema :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Task'
2018-11-12 16:46:35 +01:00
"400" :
description : Invalid task object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Create a task
tags :
- task
2020-06-28 16:25:46 +02:00
/lists/{id}/background:
2021-03-21 17:49:14 +01:00
delete :
2021-04-11 17:08:43 +02:00
description : Removes a previously set list background, regardless of the list
provider used to set the background. It does not throw an error if the list
does not have a background.
2021-03-21 17:49:14 +01:00
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The list
schema :
$ref : '#/definitions/models.List'
"403" :
description : No access to this list.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The list does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Remove a list background
tags :
- list
2020-06-28 16:25:46 +02:00
get :
description : Get the list background of a specific list. **Returns json on error.**
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
produces :
- application/octet-stream
responses :
"200" :
description : The list background file.
schema :
type : ""
"403" :
description : No access to this list.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The list does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get the list background
tags :
- list
/lists/{id}/backgrounds/unsplash:
post :
consumes :
- application/json
description : Sets a photo from unsplash as list background.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The image you want to set as background
in : body
name : list
required : true
schema :
$ref : '#/definitions/background.Image'
produces :
- application/json
responses :
"200" :
description : The background has been successfully set.
schema :
$ref : '#/definitions/models.List'
"400" :
description : Invalid image object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"403" :
description : The user does not have access to the list
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Set an unsplash photo as list background
tags :
- list
/lists/{id}/backgrounds/upload:
put :
consumes :
- multipart/form-data
description : Upload a list background.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The file as single file.
in : formData
name : background
required : true
type : string
produces :
- application/json
responses :
"200" :
description : The background was set successfully.
schema :
$ref : '#/definitions/models.Message'
2020-08-02 19:16:58 +02:00
"400" :
description : File is no image.
schema :
$ref : '#/definitions/models.Message'
2020-06-28 16:25:46 +02:00
"403" :
description : File too large.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The list does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Upload a list background
tags :
- list
/lists/{id}/buckets:
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Returns all kanban buckets with belong to a list including their
tasks.
2020-06-28 16:25:46 +02:00
parameters :
- description : List Id
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number for tasks. Used for pagination. If not provided,
the first page of results is returned.
2021-03-10 11:59:10 +01:00
in : query
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of tasks per bucket per page. This parameter
is limited by the configured maximum of items per page.
2021-03-10 11:59:10 +01:00
in : query
name : per_page
type : integer
- description : Search tasks by task text.
in : query
name : s
type : string
2021-04-11 17:08:43 +02:00
- description : The name of the field to filter by. Allowed values are all task
properties. Task properties which are their own object require passing in
the id of that entity. Accepts an array for multiple filters which will
be chanied together, all supplied filter must match.
2020-12-22 12:38:05 +01:00
in : query
name : filter_by
type : string
- description : The value to filter for.
in : query
name : filter_value
type : string
2021-04-11 17:08:43 +02:00
- description : The comparator to use for a filter. Available values are `equals`,
`greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in`
expects comma-separated values in `filter_value`. Defaults to `equals`
2020-12-22 12:38:05 +01:00
in : query
name : filter_comparator
type : string
2021-04-11 17:08:43 +02:00
- description : The concatinator to use for filters. Available values are `and`
or `or`. Defaults to `or`.
2020-12-22 12:38:05 +01:00
in : query
name : filter_concat
type : string
2021-04-11 17:08:43 +02:00
- description : If set to true the result will include filtered fields whose
value is set to `null`. Available values are `true` or `false`. Defaults
to `false`.
2020-12-22 12:38:05 +01:00
in : query
name : filter_include_nulls
type : string
2020-06-28 16:25:46 +02:00
produces :
- application/json
responses :
"200" :
description : The buckets with their tasks
schema :
items :
$ref : '#/definitions/models.Bucket'
type : array
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all kanban buckets of a list
tags :
- task
put :
consumes :
- application/json
description : Creates a new kanban bucket on a list.
parameters :
- description : List Id
in : path
name : id
required : true
type : integer
- description : The bucket object
in : body
name : bucket
required : true
schema :
$ref : '#/definitions/models.Bucket'
produces :
- application/json
responses :
"200" :
description : The created bucket object.
schema :
$ref : '#/definitions/models.Bucket'
"400" :
description : Invalid bucket object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The list does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Create a new bucket
tags :
- task
2019-07-18 18:38:21 +02:00
/lists/{id}/listusers:
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Lists all users (without emailadresses). Also possible to search
for a specific user.
2019-07-18 18:38:21 +02:00
parameters :
- description : Search for a user by its name.
in : query
name : s
type : string
- description : List ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : All (found) users.
schema :
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2019-07-18 18:38:21 +02:00
type : array
"400" :
description : Something's invalid.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-07-18 18:38:21 +02:00
"401" :
description : The user does not have the right to see the list.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-07-18 18:38:21 +02:00
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get users
tags :
- list
2018-11-12 16:46:35 +01:00
/lists/{id}/teams:
get :
consumes :
- application/json
description : Returns a list with all teams which have access on a given list.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search teams by its name.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The teams with their right.
schema :
items :
$ref : '#/definitions/models.TeamWithRight'
type : array
"403" :
description : No right to see the list.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get teams on a list
tags :
- sharing
put :
consumes :
- application/json
description : Gives a team access to a list.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The team you want to add to the list.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.TeamList'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created team<->list relation.
schema :
$ref : '#/definitions/models.TeamList'
"400" :
description : Invalid team list object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : The team does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Add a team to a list
tags :
- sharing
/lists/{id}/users:
get :
consumes :
- application/json
description : Returns a list with all users which have access on a given list.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search users by its name.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The users with the right they have.
schema :
items :
$ref : '#/definitions/models.UserWithRight'
type : array
"403" :
description : No right to see the list.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get users on a list
tags :
- sharing
put :
consumes :
- application/json
description : Gives a user access to a list.
parameters :
- description : List ID
in : path
name : id
required : true
type : integer
- description : The user you want to add to the list.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.ListUser'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created user<->list relation.
schema :
$ref : '#/definitions/models.ListUser'
"400" :
description : Invalid user list object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : The user does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Add a user to a list
tags :
- sharing
2019-08-31 22:56:41 +02:00
/lists/{list}/shares:
get :
consumes :
- application/json
description : Returns all link shares which exist for a given list
parameters :
- description : List ID
in : path
name : list
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2019-08-31 22:56:41 +02:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2019-08-31 22:56:41 +02:00
type : integer
- description : Search shares by hash.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The share links
schema :
items :
$ref : '#/definitions/models.LinkSharing'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all link shares for a list
tags :
- sharing
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Share a list via link. The user needs to have write-access to the
list to be able do this.
2019-08-31 22:56:41 +02:00
parameters :
- description : List ID
in : path
name : list
required : true
type : integer
- description : The new link share object
in : body
name : label
required : true
schema :
$ref : '#/definitions/models.LinkSharing'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2019-08-31 22:56:41 +02:00
description : The created link share object.
schema :
$ref : '#/definitions/models.LinkSharing'
"400" :
description : Invalid link share object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"403" :
description : Not allowed to add the list share.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"404" :
description : The list does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Share a list via link
tags :
- sharing
/lists/{list}/shares/{share}:
delete :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Remove a link share. The user needs to have write-access to the
list to be able do this.
2019-08-31 22:56:41 +02:00
parameters :
- description : List ID
in : path
name : list
required : true
type : integer
- description : Share Link ID
in : path
name : share
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The link was successfully removed.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : Not allowed to remove the link.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"404" :
description : Share Link not found.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Remove a link share
tags :
2020-06-28 16:25:46 +02:00
- sharing
get :
consumes :
- application/json
description : Returns one link share by its ID.
parameters :
- description : List ID
in : path
name : list
required : true
type : integer
- description : Share ID
in : path
name : share
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The share links
schema :
$ref : '#/definitions/models.LinkSharing'
"403" :
description : No access to the list
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : Share Link not found.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get one link shares for a list
tags :
- sharing
/lists/{listID}/buckets/{bucketID}:
delete :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Deletes an existing kanban bucket and dissociates all of its task.
It does not delete any tasks. You cannot delete the last bucket on a list.
2020-06-28 16:25:46 +02:00
parameters :
- description : List Id
in : path
name : listID
required : true
type : integer
- description : Bucket Id
in : path
name : bucketID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : Successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The bucket does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Deletes an existing bucket
tags :
- task
post :
2019-08-31 22:56:41 +02:00
consumes :
- application/json
2020-06-28 16:25:46 +02:00
description : Updates an existing kanban bucket.
2019-08-31 22:56:41 +02:00
parameters :
2020-06-28 16:25:46 +02:00
- description : List Id
2019-08-31 22:56:41 +02:00
in : path
2020-06-28 16:25:46 +02:00
name : listID
2019-08-31 22:56:41 +02:00
required : true
type : integer
2020-06-28 16:25:46 +02:00
- description : Bucket Id
2019-08-31 22:56:41 +02:00
in : path
2020-06-28 16:25:46 +02:00
name : bucketID
2019-08-31 22:56:41 +02:00
required : true
type : integer
2020-06-28 16:25:46 +02:00
- description : The bucket object
in : body
name : bucket
required : true
schema :
$ref : '#/definitions/models.Bucket'
2019-08-31 22:56:41 +02:00
produces :
- application/json
responses :
"200" :
2020-06-28 16:25:46 +02:00
description : The created bucket object.
2019-08-31 22:56:41 +02:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.Bucket'
"400" :
description : Invalid bucket object provided.
2019-08-31 22:56:41 +02:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"404" :
2020-06-28 16:25:46 +02:00
description : The bucket does not exist.
2019-08-31 22:56:41 +02:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-06-28 16:25:46 +02:00
summary : Update an existing bucket
2019-08-31 22:56:41 +02:00
tags :
2020-06-28 16:25:46 +02:00
- task
2020-08-02 19:16:58 +02:00
/lists/{listID}/duplicate:
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Copies the list, tasks, files, kanban data, assignees, comments,
attachments, lables, relations, backgrounds, user/team rights and link shares
from one list to a new namespace. The user needs read access in the list and
write access in the namespace of the new list.
2020-08-02 19:16:58 +02:00
parameters :
- description : The list ID to duplicate
in : path
name : listID
required : true
type : integer
- description : The target namespace which should hold the copied list.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.ListDuplicate'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2020-08-02 19:16:58 +02:00
description : The created list.
schema :
$ref : '#/definitions/models.ListDuplicate'
"400" :
description : Invalid list duplicate object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"403" :
description : The user does not have access to the list or namespace
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Duplicate an existing list
tags :
- list
2019-11-29 23:59:20 +01:00
/lists/{listID}/tasks:
get :
consumes :
- application/json
description : Returns all tasks for the current list.
parameters :
- description : The list ID.
in : path
name : listID
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2019-11-29 23:59:20 +01:00
in : query
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-11-29 23:59:20 +01:00
in : query
name : per_page
type : integer
- description : Search tasks by task text.
in : query
name : s
type : string
2021-04-11 17:08:43 +02:00
- description : The sorting parameter. You can pass this multiple times to get
the tasks ordered by multiple different parametes, along with `order_by`.
Possible values to sort by are `id`, `title`, `description`, `done`, `done_at`,
`due_date`, `created_by_id`, `list_id`, `repeat_after`, `priority`, `start_date`,
`end_date`, `hex_color`, `percent_done`, `uid`, `created`, `updated`. Default
is `id`.
2019-12-07 15:30:51 +01:00
in : query
name : sort_by
type : string
2021-04-11 17:08:43 +02:00
- description : The ordering parameter. Possible values to order by are `asc`
or `desc`. Default is `asc`.
2019-11-29 23:59:20 +01:00
in : query
2019-12-07 15:30:51 +01:00
name : order_by
2019-11-29 23:59:20 +01:00
type : string
2021-04-11 17:08:43 +02:00
- description : The name of the field to filter by. Allowed values are all task
properties. Task properties which are their own object require passing in
the id of that entity. Accepts an array for multiple filters which will
be chanied together, all supplied filter must match.
2019-11-29 23:59:20 +01:00
in : query
2020-06-28 16:25:46 +02:00
name : filter_by
type : string
2022-03-27 22:35:04 +02:00
- description : The value to filter for. You can use [grafana](https://grafana.com/docs/grafana/latest/dashboards/time-range-controls)-
or [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math)-style
relative dates for all date fields like `due_date`, `start_date`, `end_date`,
etc.
2019-11-29 23:59:20 +01:00
in : query
2020-06-28 16:25:46 +02:00
name : filter_value
type : string
2021-04-11 17:08:43 +02:00
- description : The comparator to use for a filter. Available values are `equals`,
`greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in`
expects comma-separated values in `filter_value`. Defaults to `equals`
2020-06-28 16:25:46 +02:00
in : query
name : filter_comparator
type : string
2021-04-11 17:08:43 +02:00
- description : The concatinator to use for filters. Available values are `and`
or `or`. Defaults to `or`.
2020-06-28 16:25:46 +02:00
in : query
name : filter_concat
type : string
2021-04-11 17:08:43 +02:00
- description : If set to true the result will include filtered fields whose
value is set to `null`. Available values are `true` or `false`. Defaults
to `false`.
2020-06-28 16:25:46 +02:00
in : query
name : filter_include_nulls
type : string
2019-11-29 23:59:20 +01:00
produces :
- application/json
responses :
"200" :
description : The tasks
schema :
items :
$ref : '#/definitions/models.Task'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2019-12-07 15:30:51 +01:00
summary : Get tasks in a list
2019-11-29 23:59:20 +01:00
tags :
- task
2018-11-12 16:46:35 +01:00
/lists/{listID}/teams/{teamID}:
delete :
2021-04-11 17:08:43 +02:00
description : Delets a team from a list. The team won't have access to the list
anymore.
2018-11-12 16:46:35 +01:00
parameters :
- description : List ID
in : path
name : listID
required : true
type : integer
- description : Team ID
in : path
name : teamID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The team was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : Team or list does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Delete a team from a list
tags :
- sharing
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update a team <-> list relation. Mostly used to update the right
that team has.
2018-11-12 16:46:35 +01:00
parameters :
- description : List ID
in : path
name : listID
required : true
type : integer
- description : Team ID
in : path
name : teamID
required : true
type : integer
- description : The team you want to update.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.TeamList'
produces :
- application/json
responses :
"200" :
description : The updated team <-> list relation.
schema :
$ref : '#/definitions/models.TeamList'
"403" :
description : The user does not have admin-access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : Team or list does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Update a team <-> list relation
tags :
- sharing
/lists/{listID}/users/{userID}:
delete :
2021-04-11 17:08:43 +02:00
description : Delets a user from a list. The user won't have access to the list
anymore.
2018-11-12 16:46:35 +01:00
parameters :
- description : List ID
in : path
name : listID
required : true
type : integer
- description : User ID
in : path
name : userID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The user was successfully removed from the list.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : user or list does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Delete a user from a list
tags :
- sharing
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update a user <-> list relation. Mostly used to update the right
that user has.
2018-11-12 16:46:35 +01:00
parameters :
- description : List ID
in : path
name : listID
required : true
type : integer
- description : User ID
in : path
name : userID
required : true
type : integer
- description : The user you want to update.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.ListUser'
produces :
- application/json
responses :
"200" :
description : The updated user <-> list relation.
schema :
$ref : '#/definitions/models.ListUser'
"403" :
description : The user does not have admin-access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : User or list does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Update a user <-> list relation
tags :
- sharing
/login :
post :
consumes :
- application/json
description : Logs a user in. Returns a JWT-Token to authenticate further requests.
parameters :
- description : The login credentials
in : body
name : credentials
required : true
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.Login'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
2020-11-21 17:38:58 +01:00
$ref : '#/definitions/auth.Token'
2018-11-12 16:46:35 +01:00
"400" :
description : Invalid user password model.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : Invalid username or password.
schema :
$ref : '#/definitions/models.Message'
2020-06-28 16:25:46 +02:00
"412" :
description : Invalid totp passcode.
schema :
$ref : '#/definitions/models.Message'
2018-11-12 16:46:35 +01:00
summary : Login
tags :
- user
2020-12-18 12:12:05 +01:00
/migration/microsoft-todo/auth :
get :
2021-04-11 17:08:43 +02:00
description : Returns the auth url where the user needs to get its auth code.
This code can then be used to migrate everything from Microsoft Todo to Vikunja.
2020-12-18 12:12:05 +01:00
produces :
- application/json
responses :
"200" :
description : The auth url.
schema :
$ref : '#/definitions/handler.AuthURL'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get the auth url from Microsoft Todo
tags :
- migration
/migration/microsoft-todo/migrate :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Migrates all tasklinsts, tasks, notes and reminders from Microsoft
Todo to Vikunja.
2020-12-18 12:12:05 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The auth token previously obtained from the auth url. See the
docs for /migration/microsoft-todo/auth.
2020-12-18 12:12:05 +01:00
in : body
name : migrationCode
required : true
schema :
$ref : '#/definitions/microsofttodo.Migration'
produces :
- application/json
responses :
"200" :
description : A message telling you everything was migrated successfully.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Migrate all lists, tasks etc. from Microsoft Todo
tags :
- migration
/migration/microsoft-todo/status :
get :
2021-04-11 17:08:43 +02:00
description : Returns if the current user already did the migation or not. This
is useful to show a confirmation message in the frontend if the user is trying
to do the same migration again.
2020-12-18 12:12:05 +01:00
produces :
- application/json
responses :
"200" :
description : The migration status
schema :
$ref : '#/definitions/migration.Status'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get migration status
tags :
- migration
2020-06-28 16:25:46 +02:00
/migration/todoist/auth :
get :
2021-04-11 17:08:43 +02:00
description : Returns the auth url where the user needs to get its auth code.
This code can then be used to migrate everything from todoist to Vikunja.
2020-06-28 16:25:46 +02:00
produces :
- application/json
responses :
"200" :
description : The auth url.
schema :
$ref : '#/definitions/handler.AuthURL'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get the auth url from todoist
tags :
- migration
/migration/todoist/migrate :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Migrates all projects, tasks, notes, reminders, subtasks and files
from todoist to vikunja.
2020-06-28 16:25:46 +02:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The auth code previously obtained from the auth url. See the
docs for /migration/todoist/auth.
2020-06-28 16:25:46 +02:00
in : body
name : migrationCode
required : true
schema :
$ref : '#/definitions/todoist.Migration'
produces :
- application/json
responses :
"200" :
description : A message telling you everything was migrated successfully.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Migrate all lists, tasks etc. from todoist
tags :
- migration
/migration/todoist/status :
get :
2021-04-11 17:08:43 +02:00
description : Returns if the current user already did the migation or not. This
is useful to show a confirmation message in the frontend if the user is trying
to do the same migration again.
2020-06-28 16:25:46 +02:00
produces :
- application/json
responses :
"200" :
description : The migration status
schema :
$ref : '#/definitions/migration.Status'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get migration status
tags :
2020-12-17 14:44:04 +01:00
- migration
/migration/trello/auth :
get :
2021-04-11 17:08:43 +02:00
description : Returns the auth url where the user needs to get its auth code.
This code can then be used to migrate everything from trello to Vikunja.
2020-12-17 14:44:04 +01:00
produces :
- application/json
responses :
"200" :
description : The auth url.
schema :
$ref : '#/definitions/handler.AuthURL'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get the auth url from trello
tags :
- migration
/migration/trello/migrate :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Migrates all projects, tasks, notes, reminders, subtasks and files
from trello to vikunja.
2020-12-17 14:44:04 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The auth token previously obtained from the auth url. See the
docs for /migration/trello/auth.
2020-12-17 14:44:04 +01:00
in : body
name : migrationCode
required : true
schema :
$ref : '#/definitions/trello.Migration'
produces :
- application/json
responses :
"200" :
description : A message telling you everything was migrated successfully.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Migrate all lists, tasks etc. from trello
tags :
- migration
/migration/trello/status :
get :
2021-04-11 17:08:43 +02:00
description : Returns if the current user already did the migation or not. This
is useful to show a confirmation message in the frontend if the user is trying
to do the same migration again.
2020-12-17 14:44:04 +01:00
produces :
- application/json
responses :
"200" :
description : The migration status
schema :
$ref : '#/definitions/migration.Status'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get migration status
tags :
2020-06-28 16:25:46 +02:00
- migration
2021-09-04 21:26:31 +02:00
/migration/vikunja-file/migrate :
post :
consumes :
- application/json
description : Imports all projects, tasks, notes, reminders, subtasks and files
from a Vikunjda data export into Vikunja.
parameters :
- description : The Vikunja export zip file.
in : formData
name : import
required : true
type : string
produces :
- application/json
responses :
"200" :
description : A message telling you everything was migrated successfully.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Import all lists, tasks etc. from a Vikunja data export
tags :
- migration
/migration/vikunja-file/status :
get :
description : Returns if the current user already did the migation or not. This
is useful to show a confirmation message in the frontend if the user is trying
to do the same migration again.
produces :
- application/json
responses :
"200" :
description : The migration status
schema :
$ref : '#/definitions/migration.Status'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get migration status
tags :
- migration
2020-01-19 17:52:16 +01:00
/migration/wunderlist/auth :
get :
2021-04-11 17:08:43 +02:00
description : Returns the auth url where the user needs to get its auth code.
This code can then be used to migrate everything from wunderlist to Vikunja.
2020-01-19 17:52:16 +01:00
produces :
- application/json
responses :
"200" :
description : The auth url.
schema :
$ref : '#/definitions/handler.AuthURL'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get the auth url from wunderlist
tags :
- migration
/migration/wunderlist/migrate :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Migrates all folders, lists, tasks, notes, reminders, subtasks
and files from wunderlist to vikunja.
2020-01-19 17:52:16 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The auth code previously obtained from the auth url. See the
docs for /migration/wunderlist/auth.
2020-01-19 17:52:16 +01:00
in : body
name : migrationCode
required : true
schema :
$ref : '#/definitions/wunderlist.Migration'
produces :
- application/json
responses :
"200" :
description : A message telling you everything was migrated successfully.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Migrate all lists, tasks etc. from wunderlist
tags :
- migration
2020-01-20 20:48:46 +01:00
/migration/wunderlist/status :
get :
2021-04-11 17:08:43 +02:00
description : Returns if the current user already did the migation or not. This
is useful to show a confirmation message in the frontend if the user is trying
to do the same migration again.
2020-01-20 20:48:46 +01:00
produces :
- application/json
responses :
"200" :
description : The migration status
schema :
$ref : '#/definitions/migration.Status'
"500" :
description : Internal server error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get migration status
tags :
- migration
2018-11-12 16:46:35 +01:00
/namespace/{id}:
post :
consumes :
- application/json
description : Updates a namespace.
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
- description : The namespace with updated values you want to update.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.Namespace'
produces :
- application/json
responses :
"200" :
description : The updated namespace.
schema :
$ref : '#/definitions/models.Namespace'
"400" :
description : Invalid namespace object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Updates a namespace
tags :
- namespace
/namespaces :
get :
consumes :
- application/json
description : Returns all namespaces a user has access to.
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search namespaces by name.
in : query
name : s
type : string
2020-06-28 16:25:46 +02:00
- description : If true, also returns all archived namespaces.
in : query
name : is_archived
type : boolean
2020-12-22 00:13:15 +01:00
- description : If true, also returns only namespaces without their lists.
in : query
name : namespaces_only
type : boolean
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : The Namespaces.
schema :
items :
$ref : '#/definitions/models.NamespaceWithLists'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get all namespaces a user has access to
tags :
- namespace
put :
consumes :
- application/json
description : Creates a new namespace.
parameters :
- description : The namespace you want to create.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.Namespace'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created namespace.
schema :
$ref : '#/definitions/models.Namespace'
"400" :
description : Invalid namespace object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Creates a new namespace
tags :
- namespace
/namespaces/{id}:
delete :
description : Delets a namespace
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The namespace was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Invalid namespace object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Deletes a namespace
tags :
- namespace
get :
consumes :
- application/json
description : Returns a namespace by its ID.
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The Namespace
schema :
$ref : '#/definitions/models.Namespace'
"403" :
description : The user does not have access to that namespace.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Gets one namespace
tags :
- namespace
/namespaces/{id}/lists:
get :
consumes :
- application/json
description : Returns all lists inside of a namespace.
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The lists.
schema :
items :
$ref : '#/definitions/models.List'
type : array
"403" :
description : No access to that namespace.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The namespace does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get all lists in a namespace
tags :
- namespace
/namespaces/{id}/teams:
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Returns a namespace with all teams which have access on a given
namespace.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search teams by its name.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The teams with the right they have.
schema :
items :
$ref : '#/definitions/models.TeamWithRight'
type : array
"403" :
description : No right to see the namespace.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get teams on a namespace
tags :
- sharing
put :
consumes :
- application/json
description : Gives a team access to a namespace.
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
- description : The team you want to add to the namespace.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.TeamNamespace'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created team<->namespace relation.
schema :
$ref : '#/definitions/models.TeamNamespace'
"400" :
description : Invalid team namespace object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The team does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : The team does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Add a team to a namespace
tags :
- sharing
/namespaces/{id}/users:
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Returns a namespace with all users which have access on a given
namespace.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search users by its name.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The users with the right they have.
schema :
items :
$ref : '#/definitions/models.UserWithRight'
type : array
"403" :
description : No right to see the namespace.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get users on a namespace
tags :
- sharing
put :
consumes :
- application/json
description : Gives a user access to a namespace.
parameters :
- description : Namespace ID
in : path
name : id
required : true
type : integer
- description : The user you want to add to the namespace.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.NamespaceUser'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created user<->namespace relation.
schema :
$ref : '#/definitions/models.NamespaceUser'
"400" :
description : Invalid user namespace object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : The user does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Add a user to a namespace
tags :
- sharing
/namespaces/{namespaceID}/lists:
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Creates a new list in a given namespace. The user needs write-access
to the namespace.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : namespaceID
required : true
type : integer
- description : The list you want to create.
in : body
name : list
required : true
schema :
$ref : '#/definitions/models.List'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created list.
schema :
$ref : '#/definitions/models.List'
"400" :
description : Invalid list object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Creates a new list
tags :
- list
/namespaces/{namespaceID}/teams/{teamID}:
delete :
2021-04-11 17:08:43 +02:00
description : Delets a team from a namespace. The team won't have access to the
namespace anymore.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : namespaceID
required : true
type : integer
- description : team ID
in : path
name : teamID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The team was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : The team does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : team or namespace does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Delete a team from a namespace
tags :
- sharing
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update a team <-> namespace relation. Mostly used to update the
right that team has.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : namespaceID
required : true
type : integer
- description : Team ID
in : path
name : teamID
required : true
type : integer
- description : The team you want to update.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.TeamNamespace'
produces :
- application/json
responses :
"200" :
description : The updated team <-> namespace relation.
schema :
$ref : '#/definitions/models.TeamNamespace'
"403" :
description : The team does not have admin-access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : Team or namespace does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Update a team <-> namespace relation
tags :
- sharing
/namespaces/{namespaceID}/users/{userID}:
delete :
2021-04-11 17:08:43 +02:00
description : Delets a user from a namespace. The user won't have access to the
namespace anymore.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : namespaceID
required : true
type : integer
- description : user ID
in : path
name : userID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The user was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : The user does not have access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : user or namespace does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Delete a user from a namespace
tags :
- sharing
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update a user <-> namespace relation. Mostly used to update the
right that user has.
2018-11-12 16:46:35 +01:00
parameters :
- description : Namespace ID
in : path
name : namespaceID
required : true
type : integer
- description : User ID
in : path
name : userID
required : true
type : integer
- description : The user you want to update.
in : body
name : namespace
required : true
schema :
$ref : '#/definitions/models.NamespaceUser'
produces :
- application/json
responses :
"200" :
description : The updated user <-> namespace relation.
schema :
$ref : '#/definitions/models.NamespaceUser'
"403" :
description : The user does not have admin-access to the namespace
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : User or namespace does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Update a user <-> namespace relation
tags :
- sharing
2021-02-21 15:50:34 +01:00
/notifications :
get :
consumes :
- application/json
description : Returns an array with all notifications for the current user.
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2021-02-21 15:50:34 +01:00
in : query
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2021-02-21 15:50:34 +01:00
in : query
name : per_page
type : integer
produces :
- application/json
responses :
"200" :
description : The notifications
schema :
items :
$ref : '#/definitions/notifications.DatabaseNotification'
type : array
"403" :
description : Link shares cannot have notifications.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all notifications for the current user
tags :
- subscriptions
/notifications/{id}:
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Marks a notification as either read or unread. A user can only
mark their own notifications as read.
2021-02-21 15:50:34 +01:00
parameters :
- description : Notification ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The notification to mark as read.
schema :
$ref : '#/definitions/models.DatabaseNotifications'
"403" :
description : Link shares cannot have notifications.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The notification does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Mark a notification as (un-)read
tags :
- subscriptions
2018-11-12 16:46:35 +01:00
/register :
post :
consumes :
- application/json
description : Creates a new user account.
parameters :
- description : The user credentials
in : body
name : credentials
required : true
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.APIUserPassword'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2018-11-12 16:46:35 +01:00
"400" :
2021-04-11 17:08:43 +02:00
description : No or invalid user register object provided / User already
exists.
2018-11-12 16:46:35 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Register
tags :
- user
2019-08-31 22:56:41 +02:00
/shares/{share}/auth:
post :
consumes :
- application/json
description : Get a jwt auth token for a shared list from a share hash.
parameters :
2021-04-11 15:17:50 +02:00
- description : The password for link shares which require one.
in : body
name : password
required : true
schema :
$ref : '#/definitions/v1.LinkShareAuth'
2019-08-31 22:56:41 +02:00
- description : The share hash
in : path
name : share
required : true
type : string
produces :
- application/json
responses :
"200" :
description : The valid jwt auth token.
schema :
2020-11-21 17:38:58 +01:00
$ref : '#/definitions/auth.Token'
2019-08-31 22:56:41 +02:00
"400" :
description : Invalid link share object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Get an auth token for a share
tags :
- sharing
2021-02-14 20:18:14 +01:00
/subscriptions/{entity}/{entityID}:
delete :
consumes :
- application/json
description : Unsubscribes the current user to an entity.
parameters :
2021-04-11 17:08:43 +02:00
- description : The entity the user subscribed to. Can be either `namespace`,
`list` or `task`.
2021-02-14 20:18:14 +01:00
in : path
name : entity
required : true
type : string
- description : The numeric id of the subscribed entity to.
in : path
name : entityID
required : true
type : string
produces :
- application/json
responses :
"200" :
description : The subscription
schema :
$ref : '#/definitions/models.Subscription'
"403" :
description : The user does not have access to subscribe to this entity.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The subscription does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Unsubscribe the current user from an entity.
tags :
- subscriptions
put :
consumes :
- application/json
description : Subscribes the current user to an entity.
parameters :
2021-04-11 17:08:43 +02:00
- description : The entity the user subscribes to. Can be either `namespace`,
`list` or `task`.
2021-02-14 20:18:14 +01:00
in : path
name : entity
required : true
type : string
- description : The numeric id of the entity to subscribe to.
in : path
name : entityID
required : true
type : string
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2021-02-14 20:18:14 +01:00
description : The subscription
schema :
$ref : '#/definitions/models.Subscription'
"403" :
description : The user does not have access to subscribe to this entity.
schema :
$ref : '#/definitions/web.HTTPError'
"412" :
description : The subscription entity is invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Subscribes the current user to an entity.
tags :
- subscriptions
2019-12-07 23:28:45 +01:00
/tasks/{ID}:
get :
consumes :
- application/json
description : Returns one task by its ID
parameters :
- description : The task ID
in : path
name : ID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The task
schema :
$ref : '#/definitions/models.Task'
"404" :
description : Task not found
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get one task
tags :
- task
2018-11-12 16:46:35 +01:00
/tasks/{id}:
delete :
description : Deletes a task from a list. This does not mean "mark it done".
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The created task object.
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Invalid task ID provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the list
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Delete a task
tags :
- task
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Updates a task. This includes marking it as done. Assignees you
pass will be updated, see their individual endpoints for more details on how
this is done. To update labels, see the description of the endpoint.
2018-11-12 16:46:35 +01:00
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
- description : The task object
in : body
name : task
required : true
schema :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Task'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : The updated task object.
schema :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Task'
2018-11-12 16:46:35 +01:00
"400" :
description : Invalid task object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the task (aka its list)
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Update a task
tags :
- task
2019-10-16 22:52:29 +02:00
/tasks/{id}/attachments:
get :
consumes :
- application/json
description : Get all task attachments for one task.
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2019-10-23 23:11:40 +02:00
in : query
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
type : integer
2019-10-16 22:52:29 +02:00
produces :
- application/json
responses :
"200" :
description : All attachments for this task
schema :
items :
$ref : '#/definitions/models.TaskAttachment'
type : array
"403" :
description : No access to this task.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The task does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all attachments for one task.
tags :
- task
put :
consumes :
- multipart/form-data
2021-04-11 17:08:43 +02:00
description : Upload a task attachment. You can pass multiple files with the
files form param.
2019-10-16 22:52:29 +02:00
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
- description : The file, as multipart form file. You can pass multiple.
in : formData
name : files
required : true
type : string
produces :
- application/json
responses :
"200" :
description : Attachments were uploaded successfully.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : No access to the task.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The task does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Upload a task attachment
tags :
- task
/tasks/{id}/attachments/{attachmentID}:
delete :
consumes :
- application/json
description : Delete an attachment.
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
- description : Attachment ID
in : path
name : attachmentID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The attachment was deleted successfully.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : No access to this task.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The task does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Delete an attachment
tags :
- task
get :
description : Get one attachment for download. **Returns json on error.**
parameters :
- description : Task ID
in : path
name : id
required : true
type : integer
- description : Attachment ID
in : path
name : attachmentID
required : true
type : integer
produces :
- application/octet-stream
responses :
"200" :
description : The attachment file.
schema :
type : ""
"403" :
description : No access to this task.
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The task does not exist.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get one attachment.
tags :
- task
2018-12-31 02:18:41 +01:00
/tasks/{task}/labels:
get :
consumes :
- application/json
description : Returns all labels which are assicociated with a given task.
parameters :
- description : Task ID
in : path
name : task
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-12-31 02:18:41 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-12-31 02:18:41 +01:00
type : integer
- description : Search labels by label text.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The labels
schema :
items :
$ref : '#/definitions/models.Label'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Get all labels on a task
tags :
- labels
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Add a label to a task. The user needs to have write-access to the
list to be able do this.
2018-12-31 02:18:41 +01:00
parameters :
- description : Task ID
in : path
name : task
required : true
type : integer
- description : The label object
in : body
name : label
required : true
schema :
2019-03-21 07:40:56 +01:00
$ref : '#/definitions/models.LabelTask'
2018-12-31 02:18:41 +01:00
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-12-31 02:18:41 +01:00
description : The created label relation object.
schema :
2019-03-21 07:40:56 +01:00
$ref : '#/definitions/models.LabelTask'
2018-12-31 02:18:41 +01:00
"400" :
description : Invalid label object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"403" :
description : Not allowed to add the label.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"404" :
description : The label does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Add a label to a task
tags :
- labels
/tasks/{task}/labels/{label}:
delete :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Remove a label from a task. The user needs to have write-access
to the list to be able do this.
2018-12-31 02:18:41 +01:00
parameters :
- description : Task ID
in : path
name : task
required : true
type : integer
- description : Label ID
in : path
name : label
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The label was successfully removed.
schema :
2019-03-21 07:40:56 +01:00
$ref : '#/definitions/models.Message'
2018-12-31 02:18:41 +01:00
"403" :
description : Not allowed to remove the label.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"404" :
description : Label not found.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-31 02:18:41 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-31 02:18:41 +01:00
summary : Remove a label from a task
tags :
- labels
2019-01-08 20:13:07 +01:00
/tasks/{taskID}/assignees:
2019-08-31 22:56:41 +02:00
get :
consumes :
- application/json
description : Returns an array with all assignees for this task.
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2019-08-31 22:56:41 +02:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2019-08-31 22:56:41 +02:00
type : integer
- description : Search assignees by their username.
in : query
name : s
type : string
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
"200" :
2020-06-28 16:25:46 +02:00
description : The assignees
schema :
items :
$ref : '#/definitions/user.User'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all assignees for a task
tags :
- assignees
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Adds a new assignee to a task. The assignee needs to have access
to the list, the doer must be able to edit this task.
2020-06-28 16:25:46 +02:00
parameters :
- description : The assingee object
in : body
name : assignee
required : true
schema :
$ref : '#/definitions/models.TaskAssginee'
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2020-06-28 16:25:46 +02:00
description : The created assingee object.
schema :
$ref : '#/definitions/models.TaskAssginee'
"400" :
description : Invalid assignee object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Add a new assignee to a task
tags :
- assignees
/tasks/{taskID}/assignees/{userID}:
delete :
consumes :
- application/json
description : Un-assign a user from a task.
parameters :
- description : Task ID
in : path
name : taskID
required : true
type : integer
- description : Assignee user ID
in : path
name : userID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The assignee was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : Not allowed to delete the assignee.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Delete an assignee
tags :
- assignees
/tasks/{taskID}/assignees/bulk:
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Adds multiple new assignees to a task. The assignee needs to have
access to the list, the doer must be able to edit this task. Every user not
in the list will be unassigned from the task, pass an empty array to unassign
everyone.
2020-06-28 16:25:46 +02:00
parameters :
- description : The array of assignees
in : body
name : assignee
required : true
schema :
$ref : '#/definitions/models.BulkAssignees'
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2020-06-28 16:25:46 +02:00
description : The created assingees object.
schema :
$ref : '#/definitions/models.TaskAssginee'
"400" :
description : Invalid assignee object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Add multiple new assignees to a task
tags :
- assignees
/tasks/{taskID}/comments:
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Get all task comments. The user doing this need to have at least
read access to the task.
2020-06-28 16:25:46 +02:00
parameters :
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The array with all task comments
schema :
items :
$ref : '#/definitions/models.TaskComment'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all task comments
tags :
- task
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Create a new task comment. The user doing this need to have at
least write access to the task this comment should belong to.
2020-06-28 16:25:46 +02:00
parameters :
- description : The task comment object
in : body
name : relation
required : true
schema :
$ref : '#/definitions/models.TaskComment'
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2020-06-28 16:25:46 +02:00
description : The created task comment object.
2019-08-31 22:56:41 +02:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.TaskComment'
"400" :
description : Invalid task comment object provided.
schema :
$ref : '#/definitions/web.HTTPError'
2019-08-31 22:56:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-06-28 16:25:46 +02:00
summary : Create a new task comment
2019-08-31 22:56:41 +02:00
tags :
2020-06-28 16:25:46 +02:00
- task
/tasks/{taskID}/comments/{commentID}:
delete :
2019-01-08 20:13:07 +01:00
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Remove a task comment. The user doing this need to have at least
write access to the task this comment belongs to.
2019-01-08 20:13:07 +01:00
parameters :
- description : Task ID
in : path
name : taskID
required : true
type : integer
2020-06-28 16:25:46 +02:00
- description : Comment ID
in : path
name : commentID
required : true
type : integer
2019-01-08 20:13:07 +01:00
produces :
- application/json
responses :
"200" :
2020-06-28 16:25:46 +02:00
description : The task comment was successfully deleted.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.Message'
2019-01-08 20:13:07 +01:00
"400" :
2020-06-28 16:25:46 +02:00
description : Invalid task comment object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The task comment was not found.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-01-08 20:13:07 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-06-28 16:25:46 +02:00
summary : Remove a task comment
2019-01-08 20:13:07 +01:00
tags :
2020-06-28 16:25:46 +02:00
- task
get :
2019-01-08 20:13:07 +01:00
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Remove a task comment. The user doing this need to have at least
read access to the task this comment belongs to.
2019-01-08 20:13:07 +01:00
parameters :
- description : Task ID
in : path
name : taskID
required : true
type : integer
2020-06-28 16:25:46 +02:00
- description : Comment ID
2019-01-08 20:13:07 +01:00
in : path
2020-06-28 16:25:46 +02:00
name : commentID
2019-01-08 20:13:07 +01:00
required : true
type : integer
produces :
- application/json
responses :
"200" :
2020-06-28 16:25:46 +02:00
description : The task comment object.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.TaskComment'
"400" :
description : Invalid task comment object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The task comment was not found.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-01-08 20:13:07 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-06-28 16:25:46 +02:00
summary : Remove a task comment
2019-01-08 20:13:07 +01:00
tags :
2020-06-28 16:25:46 +02:00
- task
2019-01-10 00:08:12 +01:00
post :
2019-01-08 20:13:07 +01:00
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Update an existing task comment. The user doing this need to have
at least write access to the task this comment belongs to.
2019-01-08 20:13:07 +01:00
parameters :
- description : Task ID
in : path
name : taskID
required : true
type : integer
2020-06-28 16:25:46 +02:00
- description : Comment ID
in : path
name : commentID
required : true
type : integer
2019-01-08 20:13:07 +01:00
produces :
- application/json
responses :
"200" :
2020-06-28 16:25:46 +02:00
description : The updated task comment object.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/models.TaskComment'
2019-01-08 20:13:07 +01:00
"400" :
2020-06-28 16:25:46 +02:00
description : Invalid task comment object provided.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : The task comment was not found.
2019-01-08 20:13:07 +01:00
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-01-08 20:13:07 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-06-28 16:25:46 +02:00
summary : Update an existing task comment
2019-01-08 20:13:07 +01:00
tags :
2020-06-28 16:25:46 +02:00
- task
2019-01-10 00:08:12 +01:00
/tasks/{taskID}/labels/bulk:
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Updates all labels on a task. Every label which is not passed but
exists on the task will be deleted. Every label which does not exist on the
task will be added. All labels which are passed and already exist on the task
won't be touched.
2019-01-10 00:08:12 +01:00
parameters :
- description : The array of labels
in : body
name : label
required : true
schema :
$ref : '#/definitions/models.LabelTaskBulk'
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2019-01-10 00:08:12 +01:00
description : The updated labels object.
schema :
$ref : '#/definitions/models.LabelTaskBulk'
"400" :
description : Invalid label object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-01-10 00:08:12 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2019-03-21 18:42:21 +01:00
summary : Update all labels on a task.
2019-01-10 00:08:12 +01:00
tags :
- labels
2019-09-25 20:44:41 +02:00
/tasks/{taskID}/relations:
2021-02-18 23:35:20 +01:00
put :
2019-09-25 20:44:41 +02:00
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Creates a new relation between two tasks. The user needs to have
update rights on the base task and at least read rights on the other task.
Both tasks do not need to be on the same list. Take a look at the docs for
available task relation kinds.
2019-09-25 20:44:41 +02:00
parameters :
- description : The relation object
in : body
name : relation
required : true
schema :
$ref : '#/definitions/models.TaskRelation'
- description : Task ID
in : path
name : taskID
required : true
type : integer
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2021-02-18 23:35:20 +01:00
description : The created task relation object.
2019-09-25 20:44:41 +02:00
schema :
2021-02-18 23:35:20 +01:00
$ref : '#/definitions/models.TaskRelation'
2019-09-25 20:44:41 +02:00
"400" :
description : Invalid task relation object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2019-09-25 20:44:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2021-02-18 23:35:20 +01:00
summary : Create a new relation between two tasks
2019-09-25 20:44:41 +02:00
tags :
- task
2021-02-18 23:35:20 +01:00
/tasks/{taskID}/relations/{relationKind}/{otherTaskId}:
delete :
2019-09-25 20:44:41 +02:00
consumes :
- application/json
parameters :
- description : The relation object
in : body
name : relation
required : true
schema :
$ref : '#/definitions/models.TaskRelation'
- description : Task ID
in : path
name : taskID
required : true
type : integer
2021-04-11 17:08:43 +02:00
- description : The kind of the relation. See the TaskRelation type for more
info.
2021-02-18 23:35:20 +01:00
in : path
name : relationKind
required : true
type : string
- description : The id of the other task.
in : path
name : otherTaskID
required : true
type : integer
2019-09-25 20:44:41 +02:00
produces :
- application/json
responses :
"200" :
2021-02-18 23:35:20 +01:00
description : The task relation was successfully deleted.
2019-09-25 20:44:41 +02:00
schema :
2021-02-18 23:35:20 +01:00
$ref : '#/definitions/models.Message'
2019-09-25 20:44:41 +02:00
"400" :
description : Invalid task relation object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2021-02-18 23:35:20 +01:00
"404" :
description : The task relation was not found.
schema :
$ref : '#/definitions/web.HTTPError'
2019-09-25 20:44:41 +02:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2021-02-18 23:35:20 +01:00
summary : Remove a task relation
2019-09-25 20:44:41 +02:00
tags :
- task
2018-12-25 21:45:26 +01:00
/tasks/all :
2018-12-02 01:49:30 +01:00
get :
consumes :
- application/json
2019-12-07 23:28:45 +01:00
description : Returns all tasks on any list the user has access to.
2018-12-02 01:49:30 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2019-12-07 23:28:45 +01:00
in : query
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-12-07 23:28:45 +01:00
in : query
name : per_page
type : integer
- description : Search tasks by task text.
in : query
name : s
type : string
2021-04-11 17:08:43 +02:00
- description : The sorting parameter. You can pass this multiple times to get
the tasks ordered by multiple different parametes, along with `order_by`.
Possible values to sort by are `id`, `title`, `description`, `done`, `done_at`,
`due_date`, `created_by_id`, `list_id`, `repeat_after`, `priority`, `start_date`,
`end_date`, `hex_color`, `percent_done`, `uid`, `created`, `updated`. Default
is `id`.
2019-12-07 23:28:45 +01:00
in : query
2020-06-28 16:25:46 +02:00
name : sort_by
2019-12-07 23:28:45 +01:00
type : string
2021-04-11 17:08:43 +02:00
- description : The ordering parameter. Possible values to order by are `asc`
or `desc`. Default is `asc`.
2019-12-07 23:28:45 +01:00
in : query
2020-06-28 16:25:46 +02:00
name : order_by
type : string
2021-04-11 17:08:43 +02:00
- description : The name of the field to filter by. Allowed values are all task
properties. Task properties which are their own object require passing in
the id of that entity. Accepts an array for multiple filters which will
be chanied together, all supplied filter must match.
2019-12-07 23:28:45 +01:00
in : query
2020-06-28 16:25:46 +02:00
name : filter_by
type : string
- description : The value to filter for.
in : query
name : filter_value
type : string
2021-04-11 17:08:43 +02:00
- description : The comparator to use for a filter. Available values are `equals`,
`greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in`
expects comma-separated values in `filter_value`. Defaults to `equals`
2020-06-28 16:25:46 +02:00
in : query
name : filter_comparator
type : string
2021-04-11 17:08:43 +02:00
- description : The concatinator to use for filters. Available values are `and`
or `or`. Defaults to `or`.
2020-06-28 16:25:46 +02:00
in : query
name : filter_concat
type : string
2021-04-11 17:08:43 +02:00
- description : If set to true the result will include filtered fields whose
value is set to `null`. Available values are `true` or `false`. Defaults
to `false`.
2020-12-19 22:39:11 +01:00
in : query
name : filter_include_nulls
type : string
2018-12-25 21:45:26 +01:00
produces :
- application/json
responses :
"200" :
2019-12-07 23:28:45 +01:00
description : The tasks
2019-11-02 21:33:18 +01:00
schema :
2019-12-07 23:28:45 +01:00
items :
$ref : '#/definitions/models.Task'
type : array
2018-12-25 21:45:26 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2019-12-07 23:28:45 +01:00
summary : Get tasks
2018-12-25 21:45:26 +01:00
tags :
- task
2018-12-28 22:49:46 +01:00
/tasks/bulk :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : 'Updates a bunch of tasks at once. This includes marking them as
done. Note : although you could supply another ID, it will be ignored. Use
task_ids instead.'
2018-12-28 22:49:46 +01:00
parameters :
2021-04-11 17:08:43 +02:00
- description : The task object. Looks like a normal task, the only difference
is it uses an array of list_ids to update.
2018-12-28 22:49:46 +01:00
in : body
name : task
required : true
schema :
$ref : '#/definitions/models.BulkTask'
produces :
- application/json
responses :
"200" :
description : The updated task object.
schema :
2019-08-31 22:56:41 +02:00
$ref : '#/definitions/models.Task'
2018-12-28 22:49:46 +01:00
"400" :
description : Invalid task object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-28 22:49:46 +01:00
"403" :
description : The user does not have access to the task (aka its list)
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-12-28 22:49:46 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-12-28 22:49:46 +01:00
summary : Update a bunch of tasks at once
tags :
- task
2018-11-12 16:46:35 +01:00
/teams :
get :
consumes :
- application/json
description : Returns all teams the current user is part of.
parameters :
2021-04-11 17:08:43 +02:00
- description : The page number. Used for pagination. If not provided, the first
page of results is returned.
2018-11-12 16:46:35 +01:00
in : query
2019-10-23 23:11:40 +02:00
name : page
type : integer
2021-04-11 17:08:43 +02:00
- description : The maximum number of items per page. Note this parameter is
limited by the configured maximum of items per page.
2019-10-23 23:11:40 +02:00
in : query
name : per_page
2018-11-12 16:46:35 +01:00
type : integer
- description : Search teams by its name.
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : The teams.
schema :
items :
$ref : '#/definitions/models.Team'
type : array
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get teams
tags :
- team
put :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Creates a new team in a given namespace. The user needs write-access
to the namespace.
2018-11-12 16:46:35 +01:00
parameters :
- description : The team you want to create.
in : body
name : team
required : true
schema :
$ref : '#/definitions/models.Team'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The created team.
schema :
$ref : '#/definitions/models.Team'
"400" :
description : Invalid team object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Creates a new team
tags :
- team
/teams/{id}:
delete :
2021-04-11 17:08:43 +02:00
description : Delets a team. This will also remove the access for all users in
that team.
2018-11-12 16:46:35 +01:00
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The team was successfully deleted.
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Invalid team object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Deletes a team
tags :
- team
2020-06-28 16:25:46 +02:00
get :
consumes :
- application/json
description : Returns a team by its ID.
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The team
schema :
$ref : '#/definitions/models.Team'
"403" :
description : The user does not have access to the team
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Gets one team
tags :
- team
2018-11-12 16:46:35 +01:00
post :
consumes :
- application/json
description : Updates a team.
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
- description : The team with updated values you want to update.
in : body
name : team
required : true
schema :
$ref : '#/definitions/models.Team'
produces :
- application/json
responses :
"200" :
description : The updated team.
schema :
$ref : '#/definitions/models.Team'
"400" :
description : Invalid team object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Updates a team
tags :
- team
/teams/{id}/members:
put :
consumes :
- application/json
description : Add a user to a team.
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
- description : The user to be added to a team.
in : body
name : team
required : true
schema :
$ref : '#/definitions/models.TeamMember'
produces :
- application/json
responses :
2021-05-26 21:56:31 +02:00
"201" :
2018-11-12 16:46:35 +01:00
description : The newly created member object
schema :
$ref : '#/definitions/models.TeamMember'
"400" :
description : Invalid member object provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"403" :
description : The user does not have access to the team
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Add a user to a team
tags :
- team
/teams/{id}/members/{userID}:
delete :
2021-04-11 17:08:43 +02:00
description : Remove a user from a team. This will also revoke any access this
user might have via that team.
2018-11-12 16:46:35 +01:00
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
- description : User ID
in : path
name : userID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The user was successfully removed from the team.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Remove a user from a team
tags :
- team
2020-08-05 17:21:17 +02:00
/teams/{id}/members/{userID}/admin:
post :
description : If a user is team admin, this will make them member and vise-versa.
parameters :
- description : Team ID
in : path
name : id
required : true
type : integer
- description : User ID
in : path
name : userID
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : The member right was successfully changed.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Toggle a team member's admin status
tags :
- team
2020-11-29 00:08:30 +01:00
/test/{table}:
patch :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : 'Fills the specified table with the content provided in the payload.
You need to enable the testing endpoint before doing this and provide the
`Authorization : <token>` secret when making requests to this endpoint. See
docs for more details.'
2020-11-29 00:08:30 +01:00
parameters :
- description : The table to reset
in : path
name : table
required : true
type : string
produces :
- application/json
responses :
"201" :
description : Everything has been imported successfully.
schema :
items :
$ref : '#/definitions/user.User'
type : array
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
summary : Reset the db to a defined state
tags :
- testing
2018-11-12 16:46:35 +01:00
/user :
get :
consumes :
- application/json
description : Returns the current user object.
produces :
- application/json
responses :
"200" :
description : OK
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2018-11-12 16:46:35 +01:00
"404" :
description : User does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get user information
tags :
- user
/user/confirm :
post :
consumes :
- application/json
description : Confirms the email of a newly registered user.
parameters :
- description : The token.
in : body
name : credentials
required : true
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.EmailConfirm'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"412" :
description : Bad token provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Confirm the email of a new user
tags :
- user
2021-08-11 21:08:10 +02:00
/user/deletion/cancel :
post :
consumes :
- application/json
description : Aborts an in-progress user deletion.
parameters :
- description : The user password to confirm.
in : body
name : credentials
required : true
schema :
2021-09-04 21:26:31 +02:00
$ref : '#/definitions/v1.UserPasswordConfirmation'
2021-08-11 21:08:10 +02:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"412" :
description : Bad password provided.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Abort a user deletion request
tags :
- user
/user/deletion/confirm :
post :
consumes :
- application/json
description : Confirms the deletion request of a user sent via email.
parameters :
- description : The token.
in : body
name : credentials
required : true
schema :
$ref : '#/definitions/v1.UserDeletionRequestConfirm'
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"412" :
description : Bad token provided.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Confirm a user deletion request
tags :
- user
/user/deletion/request :
post :
consumes :
- application/json
description : Requests the deletion of the current user. It will trigger an email
which has to be confirmed to start the deletion.
parameters :
- description : The user password.
in : body
name : credentials
required : true
schema :
2021-09-04 21:26:31 +02:00
$ref : '#/definitions/v1.UserPasswordConfirmation'
2021-08-11 21:08:10 +02:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"412" :
description : Bad password provided.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Request the deletion of the user
tags :
- user
2021-09-04 21:26:31 +02:00
/user/export/download :
post :
consumes :
- application/json
parameters :
- description : User password to confirm the download.
in : body
name : password
required : true
schema :
$ref : '#/definitions/v1.UserPasswordConfirmation'
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Download a user data export.
tags :
- user
/user/export/request :
post :
consumes :
- application/json
parameters :
- description : User password to confirm the data export request.
in : body
name : password
required : true
schema :
$ref : '#/definitions/v1.UserPasswordConfirmation'
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Request a user data export.
tags :
- user
2018-11-12 16:46:35 +01:00
/user/password :
post :
consumes :
- application/json
description : Lets the current user change its password.
parameters :
- description : The current and new password.
in : body
name : userPassword
required : true
schema :
$ref : '#/definitions/v1.UserPassword'
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"404" :
description : User does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Change password
tags :
- user
/user/password/reset :
post :
consumes :
- application/json
description : Resets a user email with a previously reset token.
parameters :
- description : The token with the new password.
in : body
name : credentials
required : true
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.PasswordReset'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Bad token provided.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Resets a password
tags :
- user
/user/password/token :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Requests a token to reset a users password. The token is sent via
email.
2018-11-12 16:46:35 +01:00
parameters :
- description : The username of the user to request a token for.
in : body
name : credentials
required : true
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.PasswordTokenRequest'
2018-11-12 16:46:35 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"404" :
description : The user does not exist.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
summary : Request password reset token
tags :
- user
2020-08-02 19:16:58 +02:00
/user/settings/avatar :
get :
consumes :
- application/json
description : Returns the current user's avatar setting.
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/v1.UserAvatarProvider'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Return user avatar setting
tags :
- user
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Changes the user avatar. Valid types are gravatar (uses the user
email), upload, initials, default.
2020-08-02 19:16:58 +02:00
parameters :
- description : The user's avatar setting
in : body
name : avatar
required : true
schema :
$ref : '#/definitions/v1.UserAvatarProvider'
produces :
- application/json
responses :
"200" :
description : OK
schema :
2020-11-21 21:51:55 +01:00
$ref : '#/definitions/models.Message'
2020-08-02 19:16:58 +02:00
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Set the user's avatar
tags :
- user
/user/settings/avatar/upload :
put :
consumes :
- multipart/form-data
2021-04-11 17:08:43 +02:00
description : Upload a user avatar. This will also set the user's avatar provider
to "upload"
2020-08-02 19:16:58 +02:00
parameters :
- description : The avatar as single file.
in : formData
name : avatar
required : true
type : string
produces :
- application/json
responses :
"200" :
description : The avatar was set successfully.
schema :
$ref : '#/definitions/models.Message'
"400" :
description : File is no image.
schema :
$ref : '#/definitions/models.Message'
"403" :
description : File too large.
schema :
$ref : '#/definitions/models.Message'
"500" :
description : Internal error
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Upload a user avatar
tags :
- user
2020-06-28 16:25:46 +02:00
/user/settings/email :
post :
consumes :
- application/json
description : Lets the current user change their email address.
parameters :
- description : The new email address and current password.
in : body
name : userEmailUpdate
required : true
schema :
$ref : '#/definitions/user.EmailUpdate'
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Update email address
tags :
- user
2020-12-19 00:21:17 +01:00
/user/settings/general :
2020-11-21 21:51:55 +01:00
post :
consumes :
- application/json
parameters :
2020-12-19 00:21:17 +01:00
- description : The updated user settings
2020-11-21 21:51:55 +01:00
in : body
name : avatar
required : true
schema :
2020-12-19 00:21:17 +01:00
$ref : '#/definitions/v1.UserSettings'
2020-11-21 21:51:55 +01:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
2020-12-19 00:21:17 +01:00
summary : Change general user settings of the current user.
2020-11-21 21:51:55 +01:00
tags :
- user
2022-03-30 20:25:56 +02:00
/user/settings/token/caldav :
get :
consumes :
- application/json
description : Return the IDs and created dates of all caldav tokens for the current
user.
produces :
- application/json
responses :
"200" :
description : OK
schema :
items :
$ref : '#/definitions/user.Token'
type : array
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Returns the caldav tokens for the current user
tags :
- user
put :
consumes :
- application/json
description : Generates a caldav token which can be used for the caldav api.
It is not possible to see the token again after it was generated.
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/user.Token'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Generate a caldav token
tags :
- user
/user/settings/token/caldav/{id}:
get :
consumes :
- application/json
parameters :
- description : Token ID
in : path
name : id
required : true
type : integer
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Delete a caldav token by id
tags :
- user
2020-06-28 16:25:46 +02:00
/user/settings/totp :
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Returns the current user totp setting or an error if it is not
enabled.
2020-06-28 16:25:46 +02:00
produces :
- application/json
responses :
"200" :
description : The totp settings.
schema :
$ref : '#/definitions/user.TOTP'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Totp setting for the current user
tags :
- user
/user/settings/totp/disable :
post :
consumes :
- application/json
description : Disables any totp settings for the current user.
parameters :
- description : The current user's password (only password is enough).
in : body
name : totp
required : true
schema :
$ref : '#/definitions/user.Login'
produces :
- application/json
responses :
"200" :
description : Successfully disabled
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Disable totp settings
tags :
- user
/user/settings/totp/enable :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Enables a previously enrolled totp setting by providing a totp
passcode.
2020-06-28 16:25:46 +02:00
parameters :
- description : The totp passcode.
in : body
name : totp
required : true
schema :
$ref : '#/definitions/user.TOTPPasscode'
produces :
- application/json
responses :
"200" :
description : Successfully enabled
schema :
$ref : '#/definitions/models.Message'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"412" :
description : TOTP is not enrolled.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Enable a previously enrolled totp setting.
tags :
- user
/user/settings/totp/enroll :
post :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Creates an initial setup for the user in the db. After this step,
the user needs to verify they have a working totp setup with the "enable totp"
endpoint.
2020-06-28 16:25:46 +02:00
produces :
- application/json
responses :
"200" :
description : OK
schema :
$ref : '#/definitions/user.TOTP'
"400" :
description : Something's invalid.
schema :
$ref : '#/definitions/web.HTTPError'
"404" :
description : User does not exist.
schema :
$ref : '#/definitions/web.HTTPError'
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Enroll a user into totp
tags :
- user
/user/settings/totp/qrcode :
get :
consumes :
- application/json
description : Returns a qr code for easier setup at end user's devices.
produces :
- application/json
responses :
"200" :
description : The qr code as jpeg image
schema :
type : ""
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Totp QR Code
tags :
- user
2022-01-16 12:05:56 +01:00
/user/timezones :
get :
consumes :
- application/json
description : Because available time zones depend on the system Vikunja is running
on , this endpoint returns a list of all valid time zones this particular Vikunja
instance can handle. The list of time zones is not sorted, you should sort
it on the client.
produces :
- application/json
responses :
"200" :
description : All available time zones.
schema :
items :
type : string
type : array
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
- JWTKeyAuth : [ ]
summary : Get all available time zones on this vikunja instance
tags :
- user
2019-12-07 20:52:04 +01:00
/user/token :
post :
consumes :
- application/json
description : Returns a new valid jwt user token with an extended length.
produces :
- application/json
responses :
"200" :
description : OK
schema :
2020-11-21 17:38:58 +01:00
$ref : '#/definitions/auth.Token'
2019-12-07 20:52:04 +01:00
"400" :
description : Only user token are available for renew.
schema :
$ref : '#/definitions/models.Message'
summary : Renew user token
tags :
- user
2018-11-12 16:46:35 +01:00
/users :
get :
consumes :
- application/json
2021-04-11 17:08:43 +02:00
description : Search for a user by its username, name or full email. Name (not
username) or email require that the user has enabled this in their settings.
2018-11-12 16:46:35 +01:00
parameters :
2021-04-07 18:28:58 +02:00
- description : The search criteria.
2018-11-12 16:46:35 +01:00
in : query
name : s
type : string
produces :
- application/json
responses :
"200" :
description : All (found) users.
schema :
items :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/user.User'
2018-11-12 16:46:35 +01:00
type : array
"400" :
description : Something's invalid.
schema :
2020-06-28 16:25:46 +02:00
$ref : '#/definitions/web.HTTPError'
2018-11-12 16:46:35 +01:00
"500" :
description : Internal server error.
schema :
$ref : '#/definitions/models.Message'
security :
2019-01-03 23:22:06 +01:00
- JWTKeyAuth : [ ]
2018-11-12 16:46:35 +01:00
summary : Get users
tags :
- user
securityDefinitions :
2019-01-03 23:22:06 +01:00
BasicAuth :
type : basic
JWTKeyAuth :
2018-11-12 16:46:35 +01:00
in : header
name : Authorization
type : apiKey
swagger : "2.0"