|
413 | 413 | ] |
414 | 414 | }, |
415 | 415 | "CreateDoc": { |
| 416 | + "x-doc-skip": true, |
416 | 417 | "type": "object", |
417 | 418 | "properties": { |
418 | 419 | "title": { |
419 | 420 | "maxLength": 256, |
420 | 421 | "minLength": 1, |
421 | | - "description": "The title for the new document", |
| 422 | + "description": "The title for the new document.", |
422 | 423 | "type": "string" |
423 | 424 | }, |
424 | 425 | "content": { |
425 | | - "description": "The content for the new document", |
| 426 | + "description": "The content for the new document.", |
426 | 427 | "type": "string" |
| 428 | + }, |
| 429 | + "content_format": { |
| 430 | + "description": "Format of the content being sent. Defaults to 'html'. If 'markdown', content will be converted to HTML for storage. Storage is always HTML; this parameter just tells us what format you're sending.", |
| 431 | + "type": "string", |
| 432 | + "enum": [ |
| 433 | + "markdown", |
| 434 | + "html" |
| 435 | + ] |
427 | 436 | } |
428 | 437 | }, |
429 | 438 | "additionalProperties": false, |
|
1236 | 1245 | } |
1237 | 1246 | }, |
1238 | 1247 | "sub_tasks": { |
1239 | | - "description": "An array of sub-tasks connected to the story", |
1240 | | - "x-doc-skip": true, |
| 1248 | + "description": "An array of maps specifying the sub-tasks to create and link to the story.\nField only applicable when Sub-task feature is enabled.", |
1241 | 1249 | "type": "array", |
1242 | 1250 | "items": { |
1243 | 1251 | "$ref": "#/definitions/CreateSubTaskParams" |
|
1460 | 1468 | "uniqueItems": true |
1461 | 1469 | }, |
1462 | 1470 | "sub_tasks": { |
1463 | | - "description": "A list of either params to create a new sub-task or link an existing story as a sub-task", |
1464 | | - "x-doc-skip": true, |
| 1471 | + "description": "An array of maps specifying sub-tasks to be associated with the created story. Each map can either link to an existing story or create a new sub-task story to be linked to the created story.\nField only applicable when Sub-task feature is enabled.", |
1465 | 1472 | "type": "array", |
1466 | 1473 | "items": { |
1467 | 1474 | "x-oneOf": [ |
|
1562 | 1569 | "type": "string" |
1563 | 1570 | }, |
1564 | 1571 | "parent_story_id": { |
1565 | | - "description": "The id of the parent story to associate with this story.", |
| 1572 | + "description": "The ID of the parent story to associate with this story (making the created story a sub-task).\nField only applicable when Sub-task feature is enabled.", |
1566 | 1573 | "type": "integer", |
1567 | 1574 | "format": "int64", |
1568 | 1575 | "x-nullable": true |
|
1820 | 1827 | } |
1821 | 1828 | }, |
1822 | 1829 | "sub_tasks": { |
1823 | | - "description": "A list of either params to create a new sub-task or link an existing story as a sub-task", |
1824 | | - "x-doc-skip": true, |
| 1830 | + "description": "An array of maps specifying sub-tasks to be associated with the created story. Each map can either link to an existing story or create a new sub-task story to be linked to the created story.\nField only applicable when Sub-task feature is enabled.", |
1825 | 1831 | "type": "array", |
1826 | 1832 | "items": { |
1827 | 1833 | "x-oneOf": [ |
|
1897 | 1903 | "type": "string" |
1898 | 1904 | }, |
1899 | 1905 | "parent_story_id": { |
1900 | | - "description": "The id of the parent story to associate with this story.", |
| 1906 | + "description": "The ID of the parent story to associate with this story (making the created story a sub-task).\nField only applicable when Sub-task feature is enabled.", |
1901 | 1907 | "type": "integer", |
1902 | 1908 | "format": "int64", |
1903 | 1909 | "x-nullable": true |
|
1941 | 1947 | ] |
1942 | 1948 | }, |
1943 | 1949 | "CreateSubTaskParams": { |
1944 | | - "x-doc-skip": true, |
1945 | 1950 | "type": "object", |
1946 | 1951 | "properties": { |
1947 | 1952 | "name": { |
|
2282 | 2287 | ] |
2283 | 2288 | }, |
2284 | 2289 | "DocSlim": { |
| 2290 | + "x-doc-skip": true, |
2285 | 2291 | "type": "object", |
2286 | 2292 | "properties": { |
2287 | 2293 | "id": { |
|
6293 | 6299 | ] |
6294 | 6300 | }, |
6295 | 6301 | "LinkSubTaskParams": { |
6296 | | - "x-doc-skip": true, |
6297 | 6302 | "type": "object", |
6298 | 6303 | "properties": { |
6299 | 6304 | "story_id": { |
|
7932 | 7937 | "x-nullable": true |
7933 | 7938 | }, |
7934 | 7939 | "sub_task_story_ids": { |
7935 | | - "x-doc-skip": true, |
| 7940 | + "description": "The Story IDs of Sub-tasks attached to the Story\nField only applicable when Sub-task feature is enabled.", |
7936 | 7941 | "type": "array", |
7937 | 7942 | "items": { |
7938 | 7943 | "type": "integer", |
|
8030 | 8035 | "format": "int64" |
8031 | 8036 | }, |
8032 | 8037 | "parent_story_id": { |
8033 | | - "x-doc-skip": true, |
| 8038 | + "description": "The ID of the parent story to this story (making this story a sub-task).\nField only applicable when Sub-task feature is enabled.", |
8034 | 8039 | "type": "integer", |
8035 | 8040 | "format": "int64", |
8036 | 8041 | "x-nullable": true |
|
8332 | 8337 | } |
8333 | 8338 | }, |
8334 | 8339 | "sub_tasks": { |
8335 | | - "description": "An array of sub-tasks connected to the story", |
8336 | | - "x-doc-skip": true, |
| 8340 | + "description": "An array of maps specifying the sub-tasks to create and link to the story.\nField only applicable when Sub-task feature is enabled.", |
8337 | 8341 | "type": "array", |
8338 | 8342 | "items": { |
8339 | 8343 | "$ref": "#/definitions/CreateSubTaskParams" |
|
8848 | 8852 | "x-nullable": true |
8849 | 8853 | }, |
8850 | 8854 | "sub_task_story_ids": { |
8851 | | - "x-doc-skip": true, |
| 8855 | + "description": "The Story IDs of Sub-tasks attached to the Story\nField only applicable when Sub-task feature is enabled.", |
8852 | 8856 | "type": "array", |
8853 | 8857 | "items": { |
8854 | 8858 | "type": "integer", |
|
8946 | 8950 | "format": "int64" |
8947 | 8951 | }, |
8948 | 8952 | "parent_story_id": { |
8949 | | - "x-doc-skip": true, |
| 8953 | + "description": "The ID of the parent story to this story (making this story a sub-task).\nField only applicable when Sub-task feature is enabled.", |
8950 | 8954 | "type": "integer", |
8951 | 8955 | "format": "int64", |
8952 | 8956 | "x-nullable": true |
|
9269 | 9273 | "x-nullable": true |
9270 | 9274 | }, |
9271 | 9275 | "sub_task_story_ids": { |
9272 | | - "x-doc-skip": true, |
| 9276 | + "description": "The Story IDs of Sub-tasks attached to the Story\nField only applicable when Sub-task feature is enabled.", |
9273 | 9277 | "type": "array", |
9274 | 9278 | "items": { |
9275 | 9279 | "type": "integer", |
|
9353 | 9357 | "format": "int64" |
9354 | 9358 | }, |
9355 | 9359 | "parent_story_id": { |
9356 | | - "x-doc-skip": true, |
| 9360 | + "description": "The ID of the parent story to this story (making this story a sub-task).\nField only applicable when Sub-task feature is enabled.", |
9357 | 9361 | "type": "integer", |
9358 | 9362 | "format": "int64", |
9359 | 9363 | "x-nullable": true |
|
9770 | 9774 | "created_at" |
9771 | 9775 | ] |
9772 | 9776 | }, |
| 9777 | + "UnprocessableError": { |
| 9778 | + "type": "object", |
| 9779 | + "properties": { |
| 9780 | + "message": { |
| 9781 | + "type": "string" |
| 9782 | + } |
| 9783 | + }, |
| 9784 | + "additionalProperties": false, |
| 9785 | + "required": [ |
| 9786 | + "message" |
| 9787 | + ] |
| 9788 | + }, |
9773 | 9789 | "UnusableEntitlementError": { |
9774 | 9790 | "type": "object", |
9775 | 9791 | "properties": { |
|
10802 | 10818 | }, |
10803 | 10819 | "uniqueItems": true |
10804 | 10820 | }, |
| 10821 | + "sub_tasks": { |
| 10822 | + "description": "An array of story IDs to attach to this story as sub-tasks. This list represents the final state of the parent's sub-tasks - missing stories will be unlinked, new stories will be linked, and the input order reflects sub-task positions.", |
| 10823 | + "type": "array", |
| 10824 | + "items": { |
| 10825 | + "$ref": "#/definitions/LinkSubTaskParams" |
| 10826 | + } |
| 10827 | + }, |
10805 | 10828 | "requested_by_id": { |
10806 | 10829 | "description": "The ID of the member that requested the story.", |
10807 | 10830 | "type": "string", |
|
10963 | 10986 | } |
10964 | 10987 | }, |
10965 | 10988 | "sub_tasks": { |
10966 | | - "description": "An array of sub-tasks connected to the story", |
10967 | | - "x-doc-skip": true, |
| 10989 | + "description": "An array of maps specifying the sub-tasks to create and link to the story.\nField only applicable when Sub-task feature is enabled.", |
10968 | 10990 | "type": "array", |
10969 | 10991 | "items": { |
10970 | 10992 | "$ref": "#/definitions/CreateSubTaskParams" |
|
11831 | 11853 | } |
11832 | 11854 | }, |
11833 | 11855 | "operationId": "createDoc", |
11834 | | - "description": "Creates a new Doc.", |
| 11856 | + "description": "Creates a new Doc. Supports markdown or HTML input via content_format parameter.", |
11835 | 11857 | "summary": "Create Doc" |
11836 | 11858 | } |
11837 | 11859 | }, |
|
12965 | 12987 | }, |
12966 | 12988 | "/api/v3/groups": { |
12967 | 12989 | "get": { |
| 12990 | + "parameters": [ |
| 12991 | + { |
| 12992 | + "in": "query", |
| 12993 | + "name": "archived", |
| 12994 | + "description": "Filter groups by their archived state. If true, returns only archived groups. If false, returns only unarchived groups. If not provided, returns all groups", |
| 12995 | + "required": false, |
| 12996 | + "type": "boolean" |
| 12997 | + } |
| 12998 | + ], |
12968 | 12999 | "responses": { |
12969 | 13000 | "200": { |
12970 | 13001 | "schema": { |
|
16011 | 16042 | "summary": "Story History" |
16012 | 16043 | } |
16013 | 16044 | }, |
| 16045 | + "/api/v3/stories/{story-public-id}/sub-tasks": { |
| 16046 | + "get": { |
| 16047 | + "parameters": [ |
| 16048 | + { |
| 16049 | + "in": "path", |
| 16050 | + "name": "story-public-id", |
| 16051 | + "description": "The ID of the Story.", |
| 16052 | + "required": true, |
| 16053 | + "type": "integer", |
| 16054 | + "format": "int64" |
| 16055 | + } |
| 16056 | + ], |
| 16057 | + "responses": { |
| 16058 | + "200": { |
| 16059 | + "schema": { |
| 16060 | + "type": "array", |
| 16061 | + "items": { |
| 16062 | + "$ref": "#/definitions/StorySlim" |
| 16063 | + } |
| 16064 | + }, |
| 16065 | + "description": "Resource" |
| 16066 | + }, |
| 16067 | + "400": { |
| 16068 | + "description": "Schema mismatch" |
| 16069 | + }, |
| 16070 | + "404": { |
| 16071 | + "description": "Resource does not exist" |
| 16072 | + }, |
| 16073 | + "422": { |
| 16074 | + "description": "Unprocessable" |
| 16075 | + } |
| 16076 | + }, |
| 16077 | + "operationId": "listStorySubTasks", |
| 16078 | + "description": "List Story Sub tasks returns a list of all Sub-task Stories for a given parent Story.", |
| 16079 | + "summary": "List Story Sub tasks" |
| 16080 | + } |
| 16081 | + }, |
16014 | 16082 | "/api/v3/stories/{story-public-id}/tasks": { |
16015 | 16083 | "post": { |
16016 | 16084 | "parameters": [ |
|
0 commit comments