-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathglobal_tasks_add.yaml
More file actions
186 lines (186 loc) · 5.63 KB
/
Copy pathglobal_tasks_add.yaml
File metadata and controls
186 lines (186 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
post:
summary: Add a global task
description: This endpoint is deprecated. Use [POST /api/v2/global-tasks](#tag/Global-tasks/operation/api_v2_global-tasks_post) instead.
deprecated: true
operationId: post-global-tasks-add
responses:
'200':
description: OK
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
task_assignee_id: 1
task_close_date: null
task_description: Coucou
task_id: 9
task_last_update: '2022-01-21T17:07:10.005200'
task_open_date: '2022-01-21T17:07:10.005183'
task_status_id: 15
task_tags: ''
task_title: Hello there
task_userid_close: null
task_userid_open: null
task_userid_update: 1
message: Saved !
status: success
properties:
data:
type: object
required:
- task_assignee_id
- task_description
- task_id
- task_last_update
- task_open_date
- task_status_id
- task_tags
- task_title
- task_userid_update
properties:
task_assignee_id:
type: number
task_close_date:
type:
- integer
- 'null'
task_description:
type: string
minLength: 1
task_id:
type: number
task_last_update:
type: string
minLength: 1
task_open_date:
type: string
minLength: 1
task_status_id:
type: number
task_tags:
type: string
task_title:
type: string
minLength: 1
task_userid_close:
type:
- integer
- 'null'
task_userid_open:
type: integer
task_userid_update:
type: number
message:
type: string
minLength: 1
status:
type: string
minLength: 1
required:
- data
- message
- status
examples:
Success:
value:
data:
task_assignee_id: 1
task_close_date: null
task_description: My task description
task_id: 9
task_last_update: '2022-01-21T17:07:10.005200'
task_open_date: '2022-01-21T17:07:10.005183'
task_status_id: 15
task_tags: ''
task_title: Task title
task_userid_close: null
task_userid_open: null
task_userid_update: 1
message: Saved !
status: success
'400':
description: Bad Request
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
task_assignee:
- Invalid user id for assignee
message: Data error
status: error
properties:
data:
type: object
message:
type: string
minLength: 1
status:
type: string
minLength: 1
required:
- data
- message
- status
examples:
Invalid assignee ID:
value:
data:
task_assignee:
- Invalid user id for assignee
message: Data error
status: error
security:
- Bearer <bearer>: []
requestBody:
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
csrf_token: >-
IjA0NTM5M2JhYWE3NTEwNTk3NTk4NDlkNDQxYjhhMDcyYzdmMWM4YTIi.YXQRjA.geSD6G9IJ5epjXkSih7uoSP5rLI
task_assignee: '4'
task_status: To do
task_title: ''
task_description: ''
task_tags: sd
properties:
task_assignee_id:
type: integer
description: A user ID for whom the task will be assigned
task_status_id:
description: The initial status of the task
type: integer
task_title:
type: string
minLength: 2
task_description:
type: string
task_tags:
type: string
required:
- task_assignee_id
- task_status_id
- task_title
- task_description
- task_tags
examples:
example-1:
value:
task_assignee_id: 1
task_status_id: 14
task_title: Task title
task_description: My task description
task_tags: ''
tags:
- Global tasks