{"openapi":"3.1.0","info":{"title":"Focalist API","version":"1.0.0","description":"Read and change Focalist lists and todo items. Authenticate with a personal access token: Authorization: Bearer fpat_..."},"servers":[{"url":"https://api.focalist.net"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/lists":{"get":{"operationId":"listLists","summary":"List all lists","description":"Requires the read scope.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"type":"array","items":{"$ref":"#/components/schemas/TodoList"}}},"required":["lists"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"createList","summary":"Create a list","description":"Without an ordinal or position, the list goes after its siblings. Requires the write scope.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateListBody"}}}},"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoList"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/lists/{listId}":{"get":{"operationId":"getList","summary":"Get a list","description":"Requires the read scope.","parameters":[{"name":"listId","in":"path","required":true,"description":"The list ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoList"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"updateList","summary":"Update a list","description":"Requires the write scope.","parameters":[{"name":"listId","in":"path","required":true,"description":"The list to update.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateListBody"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoList"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteList","summary":"Delete a list and its items","description":"Lists with child lists cannot be deleted; move or delete the child lists first. Requires the write scope.","parameters":[{"name":"listId","in":"path","required":true,"description":"The list ID.","schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/lists/{listId}/restart":{"post":{"operationId":"restartList","summary":"Restart a list","description":"Marks every item in the list not done and sets the list back to READY. Requires the write scope.","parameters":[{"name":"listId","in":"path","required":true,"description":"The list ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoList"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/items":{"get":{"operationId":"listItems","summary":"List items","description":"Returns the items the user can see, including items in shared lists, matching every filter given. Requires the read scope.","parameters":[{"name":"listId","in":"query","required":false,"description":"Only items in this list.","schema":{"type":"string"}},{"name":"unlisted","in":"query","required":false,"description":"true for only items not in any list, false for only items in a list.","schema":{"type":"boolean"}},{"name":"parentId","in":"query","required":false,"description":"Only direct children of this item.","schema":{"type":"string"}},{"name":"done","in":"query","required":false,"description":"Only done (true) or not done (false) items.","schema":{"type":"boolean"}},{"name":"search","in":"query","required":false,"description":"Only items whose title contains this text, ignoring case.","schema":{"type":"string"}},{"name":"startBefore","in":"query","required":false,"description":"Only items whose next start is at or before this local date and time, such as 2026-11-22T09:00.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$"}},{"name":"startAfter","in":"query","required":false,"description":"Only items whose next start is at or after this local date and time, such as 2026-11-22T09:00.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TodoItem"}}},"required":["items"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"createItem","summary":"Create an item","description":"Without a listId the item goes in its parent's list, or no list if it has no parent. Without an ordinal or position it goes after its siblings. Requires the write scope.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItemBody"}}}},"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/items/{itemId}":{"get":{"operationId":"getItem","summary":"Get an item","description":"Requires the read scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"updateItem","summary":"Update an item","description":"Start, reminder and repeat fields are validated together. Use the complete, uncomplete and move operations to change done or listId. Requires the write scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item to update.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemBody"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteItem","summary":"Delete an item and everything nested under it","description":"Requires the write scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item ID.","schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/items/{itemId}/complete":{"post":{"operationId":"completeItem","summary":"Mark an item done","description":"Also marks its incomplete descendants done, and any parent tasks that are then finished. Repeating items move to their next start time instead, which needs the user's timeZone. Requires the write scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item to mark done.","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteItemBody"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/items/{itemId}/uncomplete":{"post":{"operationId":"uncompleteItem","summary":"Mark an item not done","description":"Also marks its done descendants and done parent tasks not done. Requires the write scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}},"/v1/items/{itemId}/move":{"post":{"operationId":"moveItem","summary":"Move an item to another list","description":"Moves the item and everything nested under it. Requires the write scope.","parameters":[{"name":"itemId","in":"path","required":true,"description":"The item to move.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveItemBody"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoItem"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A personal access token. Tokens have the read scope, the write scope, or both."}},"schemas":{"TodoItem":{"type":"object","properties":{"itemId":{"type":"string"},"title":{"type":"string"},"imageFileName":{"type":["string","null"]},"imageSize":{"type":["string","null"],"description":"The pixel dimensions of the image. Format: widthxheight"},"done":{"type":"boolean"},"isTask":{"type":["boolean","null"],"description":"True (or null) if the item is a task, false if it is a non-completable note."},"createdDateTime":{"type":"string","format":"date-time","description":"When the item was created."},"ordinal":{"type":"integer","description":"Number that determines the order of the item when shown in a view without a different imposed ordering."},"parentId":{"type":["string","null"],"description":"The ID of the parent todo item."},"completedDateTime":{"type":["string","null"],"format":"date-time","description":"The time the item was completed."},"originalStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The originally chosen start time. This is used as a basis for recurrence."},"nextStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The local start time for the item. The next start time if this is recurring."},"reminderDismissed":{"type":["boolean","null"],"description":"True if the reminder for the next start time has beed dismissed."},"collapsed":{"type":["boolean","null"],"description":"True if the user has collapsed the item to hide sub-tasks."},"startMarkerType":{"enum":["DATE_ONLY","DATE_AND_TIME",null],"description":"Indicates what kind of marker the nextStartDateTime is carrying."},"startReminderType":{"enum":["DEFAULT","ALARM",null],"description":"Indicates if the 'start at' reminder is enabled"},"repeatType":{"enum":["DAILY","WEEKLY","MONTHLY","ANNUALLY","CUSTOM",null],"description":"Indicates if/how the task should repeat."},"customRepeatIntervalUnit":{"enum":["MINUTES","HOURS","DAYS","WEEKS","MONTHS","YEARS",null],"description":"The unit of time chosen to repeat by. Valid with CUSTOM repeatType."},"customRepeatIntervalCount":{"type":["integer","null"],"description":"The count of units in the repeat interval. Valid with CUSTOM repeatType."},"customRepeatScheduleMode":{"enum":["FROM_USER_SET_TIME","FROM_COMPLETED_TIME",null],"description":"The scheduling mode for the repeat. Valid with CUSTOM repeatType."},"listId":{"type":["string","null"],"description":"The item's list ID."}},"required":["itemId","title","done","createdDateTime","ordinal"]},"TodoList":{"type":"object","properties":{"listId":{"type":"string"},"name":{"type":"string","description":"The name of the list."},"ordinal":{"type":"integer","description":"Number that determines the order of the list in the left nav bar."},"mode":{"enum":["PROJECT","CHECKLIST"],"description":"The mode of the list: (Project/Checklist)"},"state":{"enum":["READY","IN_PROGRESS","COMPLETE","ARCHIVED",null],"description":"The state the list is in."},"parentId":{"type":["string","null"],"description":"The ID of the parent list."},"collapsed":{"type":["boolean","null"],"description":"True if the children under this list node should be hidden."},"showCompleted":{"type":["boolean","null"],"description":"True if we should show completed items, false if we should hide them. Null if we should use the default behavior depending on the list mode."},"showCompletedAtEnd":{"type":["boolean","null"],"description":"True if we should show completed items at the end of the list."},"showFuture":{"type":["boolean","null"],"description":"True if future (deferred) tasks should be shown in the list."},"shareState":{"enum":["MASTER","SHARED",null],"description":"Reflects if the list is the master shared copy, a shared copy, or not shared."},"showInNow":{"enum":["FIRST","ALL",null],"description":"Determines which tasks from the list will be shown in the 'Now' view."},"showInNowOnlyWhenInContext":{"type":["boolean","null"],"description":"True if we should only show the specified tasks in the 'Now' view when it is in context."},"notify":{"type":["boolean","null"],"description":"True if we should notify the user when the list is in context."},"locationType":{"enum":["SEARCH","MANUAL",null],"description":"The type of location for the list. Search, Manual or null for disabled"},"radiusMeters":{"type":["integer","null"],"description":"Valid when locationType is not null. The radius around the points that the context is active."},"location":{"type":["string","null"],"description":"Valid for locationType MANUAL. Where the context is active, in lat,lng format."},"keyword":{"type":["string","null"],"description":"Valid for locationType SEARCH. The search keyword to use."},"deviceId":{"type":["string","null"],"description":"The ID of the device that it is active on."}},"required":["listId","name","ordinal","mode"]},"CreateListBody":{"type":"object","properties":{"listId":{"type":"string"},"name":{"type":"string","description":"The name of the list."},"ordinal":{"type":"integer","description":"Number that determines the order of the list in the left nav bar."},"mode":{"enum":["PROJECT","CHECKLIST"],"description":"The mode of the list: (Project/Checklist)"},"state":{"enum":["READY","IN_PROGRESS","COMPLETE","ARCHIVED",null],"description":"The state the list is in."},"parentId":{"type":["string","null"],"description":"The ID of the parent list."},"collapsed":{"type":["boolean","null"],"description":"True if the children under this list node should be hidden."},"showCompleted":{"type":["boolean","null"],"description":"True if we should show completed items, false if we should hide them. Null if we should use the default behavior depending on the list mode."},"showCompletedAtEnd":{"type":["boolean","null"],"description":"True if we should show completed items at the end of the list."},"showFuture":{"type":["boolean","null"],"description":"True if future (deferred) tasks should be shown in the list."},"showInNow":{"enum":["FIRST","ALL",null],"description":"Determines which tasks from the list will be shown in the 'Now' view."},"showInNowOnlyWhenInContext":{"type":["boolean","null"],"description":"True if we should only show the specified tasks in the 'Now' view when it is in context."},"notify":{"type":["boolean","null"],"description":"True if we should notify the user when the list is in context."},"locationType":{"enum":["SEARCH","MANUAL",null],"description":"The type of location for the list. Search, Manual or null for disabled"},"radiusMeters":{"type":["integer","null"],"description":"Valid when locationType is not null. The radius around the points that the context is active."},"location":{"type":["string","null"],"description":"Valid for locationType MANUAL. Where the context is active, in lat,lng format."},"keyword":{"type":["string","null"],"description":"Valid for locationType SEARCH. The search keyword to use."},"position":{"description":"Where to place the entry among its siblings. Cannot be combined with ordinal.","oneOf":[{"enum":["start","end"]},{"type":"object","properties":{"before":{"type":"string","description":"ID of the sibling to place this before."}},"required":["before"],"additionalProperties":false},{"type":"object","properties":{"after":{"type":"string","description":"ID of the sibling to place this after."}},"required":["after"],"additionalProperties":false}]}},"required":["name","mode"],"additionalProperties":false},"UpdateListBody":{"type":"object","properties":{"name":{"type":"string","description":"The name of the list."},"ordinal":{"type":"integer","description":"Number that determines the order of the list in the left nav bar."},"mode":{"enum":["PROJECT","CHECKLIST"],"description":"The mode of the list: (Project/Checklist)"},"state":{"enum":["READY","IN_PROGRESS","COMPLETE","ARCHIVED",null],"description":"The state the list is in."},"parentId":{"type":["string","null"],"description":"The ID of the parent list."},"collapsed":{"type":["boolean","null"],"description":"True if the children under this list node should be hidden."},"showCompleted":{"type":["boolean","null"],"description":"True if we should show completed items, false if we should hide them. Null if we should use the default behavior depending on the list mode."},"showCompletedAtEnd":{"type":["boolean","null"],"description":"True if we should show completed items at the end of the list."},"showFuture":{"type":["boolean","null"],"description":"True if future (deferred) tasks should be shown in the list."},"showInNow":{"enum":["FIRST","ALL",null],"description":"Determines which tasks from the list will be shown in the 'Now' view."},"showInNowOnlyWhenInContext":{"type":["boolean","null"],"description":"True if we should only show the specified tasks in the 'Now' view when it is in context."},"notify":{"type":["boolean","null"],"description":"True if we should notify the user when the list is in context."},"locationType":{"enum":["SEARCH","MANUAL",null],"description":"The type of location for the list. Search, Manual or null for disabled"},"radiusMeters":{"type":["integer","null"],"description":"Valid when locationType is not null. The radius around the points that the context is active."},"location":{"type":["string","null"],"description":"Valid for locationType MANUAL. Where the context is active, in lat,lng format."},"keyword":{"type":["string","null"],"description":"Valid for locationType SEARCH. The search keyword to use."},"position":{"description":"Where to place the entry among its siblings. Cannot be combined with ordinal.","oneOf":[{"enum":["start","end"]},{"type":"object","properties":{"before":{"type":"string","description":"ID of the sibling to place this before."}},"required":["before"],"additionalProperties":false},{"type":"object","properties":{"after":{"type":"string","description":"ID of the sibling to place this after."}},"required":["after"],"additionalProperties":false}]}},"minProperties":1,"additionalProperties":false},"CreateItemBody":{"type":"object","properties":{"itemId":{"type":"string"},"title":{"type":"string"},"isTask":{"type":["boolean","null"],"description":"True (or null) if the item is a task, false if it is a non-completable note."},"ordinal":{"type":"integer","description":"Number that determines the order of the item when shown in a view without a different imposed ordering."},"parentId":{"type":["string","null"],"description":"The ID of the parent todo item."},"originalStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The originally chosen start time. This is used as a basis for recurrence."},"nextStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The local start time for the item. The next start time if this is recurring."},"collapsed":{"type":["boolean","null"],"description":"True if the user has collapsed the item to hide sub-tasks."},"startMarkerType":{"enum":["DATE_ONLY","DATE_AND_TIME",null],"description":"Indicates what kind of marker the nextStartDateTime is carrying."},"startReminderType":{"enum":["DEFAULT","ALARM",null],"description":"Indicates if the 'start at' reminder is enabled"},"repeatType":{"enum":["DAILY","WEEKLY","MONTHLY","ANNUALLY","CUSTOM",null],"description":"Indicates if/how the task should repeat."},"customRepeatIntervalUnit":{"enum":["MINUTES","HOURS","DAYS","WEEKS","MONTHS","YEARS",null],"description":"The unit of time chosen to repeat by. Valid with CUSTOM repeatType."},"customRepeatIntervalCount":{"type":["integer","null"],"description":"The count of units in the repeat interval. Valid with CUSTOM repeatType."},"customRepeatScheduleMode":{"enum":["FROM_USER_SET_TIME","FROM_COMPLETED_TIME",null],"description":"The scheduling mode for the repeat. Valid with CUSTOM repeatType."},"listId":{"type":["string","null"],"description":"The item's list ID."},"position":{"description":"Where to place the entry among its siblings. Cannot be combined with ordinal.","oneOf":[{"enum":["start","end"]},{"type":"object","properties":{"before":{"type":"string","description":"ID of the sibling to place this before."}},"required":["before"],"additionalProperties":false},{"type":"object","properties":{"after":{"type":"string","description":"ID of the sibling to place this after."}},"required":["after"],"additionalProperties":false}]}},"required":["title"],"additionalProperties":false},"UpdateItemBody":{"type":"object","properties":{"title":{"type":"string"},"isTask":{"type":["boolean","null"],"description":"True (or null) if the item is a task, false if it is a non-completable note."},"ordinal":{"type":"integer","description":"Number that determines the order of the item when shown in a view without a different imposed ordering."},"parentId":{"type":["string","null"],"description":"The ID of the parent todo item."},"originalStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The originally chosen start time. This is used as a basis for recurrence."},"nextStartDateTime":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","description":"The local start time for the item. The next start time if this is recurring."},"collapsed":{"type":["boolean","null"],"description":"True if the user has collapsed the item to hide sub-tasks."},"startMarkerType":{"enum":["DATE_ONLY","DATE_AND_TIME",null],"description":"Indicates what kind of marker the nextStartDateTime is carrying."},"startReminderType":{"enum":["DEFAULT","ALARM",null],"description":"Indicates if the 'start at' reminder is enabled"},"repeatType":{"enum":["DAILY","WEEKLY","MONTHLY","ANNUALLY","CUSTOM",null],"description":"Indicates if/how the task should repeat."},"customRepeatIntervalUnit":{"enum":["MINUTES","HOURS","DAYS","WEEKS","MONTHS","YEARS",null],"description":"The unit of time chosen to repeat by. Valid with CUSTOM repeatType."},"customRepeatIntervalCount":{"type":["integer","null"],"description":"The count of units in the repeat interval. Valid with CUSTOM repeatType."},"customRepeatScheduleMode":{"enum":["FROM_USER_SET_TIME","FROM_COMPLETED_TIME",null],"description":"The scheduling mode for the repeat. Valid with CUSTOM repeatType."},"position":{"description":"Where to place the entry among its siblings. Cannot be combined with ordinal.","oneOf":[{"enum":["start","end"]},{"type":"object","properties":{"before":{"type":"string","description":"ID of the sibling to place this before."}},"required":["before"],"additionalProperties":false},{"type":"object","properties":{"after":{"type":"string","description":"ID of the sibling to place this after."}},"required":["after"],"additionalProperties":false}]}},"minProperties":1,"additionalProperties":false},"CompleteItemBody":{"type":"object","properties":{"timeZone":{"type":"string","description":"IANA time zone of the user, such as America/Los_Angeles. Required for repeating items, to work out the next start time."}},"additionalProperties":false},"MoveItemBody":{"type":"object","properties":{"listId":{"type":["string","null"],"description":"The list to move to, or null for no list."},"parentId":{"type":["string","null"],"description":"An item in the target list to nest under. Omit or use null to move to the top level."},"position":{"description":"Where to place the entry among its siblings. Cannot be combined with ordinal.","oneOf":[{"enum":["start","end"]},{"type":"object","properties":{"before":{"type":"string","description":"ID of the sibling to place this before."}},"required":["before"],"additionalProperties":false},{"type":"object","properties":{"after":{"type":"string","description":"ID of the sibling to place this after."}},"required":["after"],"additionalProperties":false}]}},"required":["listId"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}},"required":["code","message"]}},"required":["error"]}},"responses":{"Error":{"description":"The request failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}