- hokan API v2
- v1からの移行について
- 顧客
- メモ
- 予定
- ToDo
- プロジェクト
- 世帯
- ユーザー
- グループ
- 活動項目
- フォーマット
- 流入経路
- ファイル
Create todo
POST
/api/ext/v2/todos
todo
Request
Body Params application/json
data
object (ExtCreateTodoBaseInSchema)
required
title
string
Title
content
string
Content
expired_at
string <date-time>
Expired At
done_at
string <date-time>
Done At
user_id
integer
User Id
priority
enum<integer>
Priority
Allowed values:
102030
extra_values
array[object (ExtExtraValueInSchema) {2}]
Extra Values
extra_item_group_id
integer
Extra Item Group Id
Example
{
"data": {
"title": "string",
"content": "string",
"expired_at": "2019-08-24T14:15:22Z",
"done_at": "2019-08-24T14:15:22Z",
"user_id": 0,
"priority": 10,
"extra_values": [
{
"internal_key": "string",
"value": 0
}
],
"extra_item_group_id": 0
}
}
Responses
🟢200OK
application/json
Body
data
object (ExtTodoSchema)
required
id
integer
Id
title
string
タイトル
<= 255 characters
content
string
内容
Default:
done_at
string <date-time>
完了日時
created_at
string <date-time>
作成日時
updated_at
string <date-time>
更新日時
user_id
integer
User Id
created_by_id
integer
Created By Id
priority
enum<string>
Priority
Allowed values:
LowMediumHigh
expired_at
string <date-time>
Expired At
extra_item_group
object (ExtExtraItemGroupSchema)
optional
extra_values
array[object (ExtExtraValueOutSchema) {3}]
Extra Values
relations
array[object (ExtRelatedObjectSchema) {2}]
Relations
Example
{
"data": {
"id": 0,
"title": "string",
"content": "",
"done_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"user_id": 0,
"created_by_id": 0,
"priority": "Low",
"expired_at": "2019-08-24T14:15:22Z",
"extra_item_group": {
"id": 0,
"order": 10000,
"name": "string",
"disabled": false,
"input_hint": "",
"input_template": "",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"table_type": "Customer",
"created_by_id": 0,
"updated_by_id": 0,
"extra_items": [
{
"id": 0,
"name": "string",
"internal_key": "string",
"required": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"order": 10000,
"input_hint": "",
"data_type": "Integer",
"unit": "Age",
"created_by_id": 0,
"updated_by_id": 0,
"extra_item_group_id": 0,
"extra_item_options": [
{
"internal_key": "string",
"value": 0,
"extra_item": {
"id": 0,
"name": "string",
"internal_key": "string",
"group_id": 0,
"data_type": "Integer",
"unit": "Age"
}
}
]
}
]
},
"extra_values": [
{
"internal_key": "string",
"value": 0,
"extra_item": {
"id": 0,
"name": "string",
"internal_key": "string",
"group_id": 0,
"data_type": "Integer",
"unit": "Age"
}
}
],
"relations": [
{
"object_id": 0,
"role": "string"
}
]
}
}
Modified at 2024-07-05 02:13:16