Bookings
Consulta de Reservas
get
https://api.desko.com.br
/v1.1/bookings/{{booking_uuid}}
Obter Reserva
Request
Response: 200 OK
1
curl --location --request GET 'https://api.desko.com.br/v1.1/bookings/77012570-4a47-4827-8d17-f5a1ddec06c1' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: Bearer <token>'
Copied!
1
{
2
"data": {
3
"uuid": "85dfd756-70ac-41b5-b66b-dab31137ecc1",
4
"start_date": "2021-09-27T18:00:00-03:00",
5
"end_date": "2021-09-27T19:00:00-03:00",
6
"place": {
7
"uuid": "75e44930-9dce-4b06-8534-2e5810c7f1e9",
8
"qrcode": "EST.AGUIAS.KMS.1/001",
9
"type": "workspace",
10
"name": "EST 1.001",
11
"name_display": "EST 1.001",
12
"capacity": 1,
13
"area": {
14
"address": "Rua Aguias, Porto Alegre",
15
"floor": {
16
"uuid": "d1935978-f2f5-4dee-8724-c35dfe098235",
17
"name": "1º Andar",
18
"is_active": true
19
},
20
"building": {
21
"uuid": "f6ff259a-4cdb-4e44-ae37-c7b58a4f3daa",
22
"name": "Kamisama",
23
"is_active": true
24
},
25
"site": {
26
"uuid": "fa062508-472d-4612-842d-a8759bba510a",
27
"name": "Shinden",
28
"is_active": true
29
}
30
},
31
"sector": {
32
"uuid": "dacf8263-6f90-4419-a4b5-73140915ffda",
33
"name": "Developer"
34
},
35
"external_resource_id": "",
36
"is_mapped": true,
37
"created_at": "2021-05-12T21:26:42-03:00",
38
"updated_at": "2021-08-29T17:54:34-03:00"
39
},
40
"state": "reserved",
41
"person": {
42
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
43
"name": "Son Gohan",
44
"name_display": "Son Gohan",
45
"email": "[email protected]",
46
"enrollment": "",
47
"created_at": "2021-05-12T21:07:25-03:00",
48
"updated_at": "2021-05-12T21:07:25-03:00"
49
},
50
"owner": {
51
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
52
"name": "Son Gohan",
53
"name_display": "Son Gohan",
54
"email": "[email protected]",
55
"enrollment": "",
56
"created_at": "2021-05-12T21:07:25-03:00",
57
"updated_at": "2021-05-12T21:07:25-03:00"
58
},
59
"created_at": "2021-09-27T16:12:49-03:00",
60
"updated_at": "2021-09-27T16:12:49-03:00"
61
}
62
}
Copied!

Search API Parameters

Você pode filtrar os dados enviando o parâmetro search utilizando o separador : para chave e valor e ; para separar os parâmetros de busca.
1
exemplo: Buscando reservas válidas no mes de setembro
2
3
?search=period:2021/09/01,2021/09/30;state=reserved
Copied!
Parâmetros suportados no Search:
search
tipo
descrição
period
date,date
Data de Inicio e Fim das reservas no formato Y/m/d
exemplo: 2021/09/01,2021/09/30
default: Dia de Hoje
state
string
Situação da Reserva:
reserved Reserva Válida waiting Aguardando Aprovação
fall Reserva Expirada last Ocupação Encerrada busy Ocupação Andamento rejected Reserva Rejeitada
type
string
Tipo de Opção de Reserva
workspace, meetingroom, dininghall, parking, locker
place
string
Nome ou QrCode de uma Opção de Reserva
sector_uuid
uuid
Reservas por Setor
building_uuid
uuid
Reservas por Prédio
site_uuid
uuid
Reservas por Unidade
floor_uuid
uuid
Reservas por andarndar
squad_uuid
uuid
Reservas de um Grupo
get
https://api.desko.com.br
/v1.1/bookings
Listar Reservas
Request
Response: 200 OK
1
curl --location --request GET 'https://api.desko.com.br/v1.1/bookings?search=period:2021/09/27,2021/09/27' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: Bearer <token>'
Copied!
1
{
2
"data": [
3
{
4
"uuid": "85dfd756-70ac-41b5-b66b-dab31137ecc1",
5
"start_date": "2021-09-27T18:00:00-03:00",
6
"end_date": "2021-09-27T19:00:00-03:00",
7
"place": {
8
"uuid": "75e44930-9dce-4b06-8534-2e5810c7f1e9",
9
"qrcode": "EST.AGUIAS.KMS.1/001",
10
"type": "workspace",
11
"name": "EST 1.001",
12
"name_display": "EST 1.001",
13
"capacity": 1,
14
"area": {
15
"address": "Rua Aguias, Porto Alegre",
16
"floor": {
17
"uuid": "d1935978-f2f5-4dee-8724-c35dfe098235",
18
"name": "1º Andar",
19
"is_active": true
20
},
21
"building": {
22
"uuid": "f6ff259a-4cdb-4e44-ae37-c7b58a4f3daa",
23
"name": "Kamisama",
24
"is_active": true
25
},
26
"site": {
27
"uuid": "fa062508-472d-4612-842d-a8759bba510a",
28
"name": "Shinden",
29
"is_active": true
30
}
31
},
32
"sector": {
33
"uuid": "dacf8263-6f90-4419-a4b5-73140915ffda",
34
"name": "Developer"
35
},
36
"external_resource_id": "",
37
"is_mapped": true,
38
"created_at": "2021-05-12T21:26:42-03:00",
39
"updated_at": "2021-08-29T17:54:34-03:00"
40
},
41
"state": "reserved",
42
"person": {
43
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
44
"name": "Son Gohan",
45
"name_display": "Son Gohan",
46
"email": "[email protected]",
47
"enrollment": "",
48
"created_at": "2021-05-12T21:07:25-03:00",
49
"updated_at": "2021-05-12T21:07:25-03:00"
50
},
51
"owner": {
52
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
53
"name": "Son Gohan",
54
"name_display": "Son Gohan",
55
"email": "[email protected]",
56
"enrollment": "",
57
"created_at": "2021-05-12T21:07:25-03:00",
58
"updated_at": "2021-05-12T21:07:25-03:00"
59
},
60
"created_at": "2021-09-27T16:12:49-03:00",
61
"updated_at": "2021-09-27T16:12:49-03:00"
62
},
63
{
64
"uuid": "3b9f6a7d-7e99-4ca9-8cd5-24e8cf4a748b",
65
"start_date": "2021-09-27T17:00:00-03:00",
66
"end_date": "2021-09-27T18:00:00-03:00",
67
"place": {
68
"uuid": "5c9aea04-fcc2-4ff8-b2e7-1529534518d4",
69
"qrcode": "SL.AGUIAS.KMS.1/001",
70
"type": "meetingroom",
71
"name": "SL 1.001",
72
"name_display": "SL 1.001",
73
"capacity": 12,
74
"area": {
75
"address": "Rua Aguias, Porto Alegre",
76
"floor": {
77
"uuid": "d1935978-f2f5-4dee-8724-c35dfe098235",
78
"name": "1º Andar",
79
"is_active": true
80
},
81
"building": {
82
"uuid": "f6ff259a-4cdb-4e44-ae37-c7b58a4f3daa",
83
"name": "Kamisama",
84
"is_active": true
85
},
86
"site": {
87
"uuid": "fa062508-472d-4612-842d-a8759bba510a",
88
"name": "Shinden",
89
"is_active": true
90
}
91
},
92
"sector": null,
93
"external_resource_id": null,
94
"is_mapped": true,
95
"created_at": "2021-05-26T17:39:51-03:00",
96
"updated_at": "2021-08-03T18:31:18-03:00"
97
},
98
"state": "reserved",
99
"person": {
100
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
101
"name": "Son Gohan",
102
"name_display": "Son Gohan",
103
"email": "[email protected]",
104
"enrollment": "",
105
"created_at": "2021-05-12T21:07:25-03:00",
106
"updated_at": "2021-05-12T21:07:25-03:00"
107
},
108
"owner": {
109
"uuid": "ffefde9d-5005-4908-9400-1ff46cb773a6",
110
"name": "Son Gohan",
111
"name_display": "Son Gohan",
112
"email": "[email protected]",
113
"enrollment": "",
114
"created_at": "2021-05-12T21:07:25-03:00",
115
"updated_at": "2021-05-12T21:07:25-03:00"
116
},
117
"created_at": "2021-09-27T16:13:16-03:00",
118
"updated_at": "2021-09-27T16:13:16-03:00"
119
}
120
],
121
"links": {
122
"prev": null,
123
"next": "https://api.desko.com.br/v1.1/bookings?cursor=eyJib29raW5ncy5pZCI6MTEzNzg3LCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9"
124
},
125
"meta": {
126
"path": "https://api.desko.com.br/v1.1/bookings",
127
"per_page": "25"
128
}
Copied!
Last modified 3mo ago