We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
projectId
1 parent c48efb8 commit 8ddd19cCopy full SHA for 8ddd19c
src/todoist-api.ts
@@ -819,10 +819,11 @@ export class TodoistApi {
819
/**
820
* Retrieves all sections within a specific project or matching criteria.
821
*
822
- * @param args - Filter parameters such as project ID.
+ * @param args - Filter parameters such as project ID. If no projectId is provided,
823
+ * all sections are returned.
824
* @returns A promise that resolves to an array of sections.
825
*/
- async getSections(args: GetSectionsArgs): Promise<GetSectionsResponse> {
826
+ async getSections(args?: GetSectionsArgs): Promise<GetSectionsResponse> {
827
const {
828
data: { results, nextCursor },
829
} = await request<GetSectionsResponse>({
0 commit comments