Microsoft-graph-docs: Outlook task update and delete methods not working as documented

Created on 29 Apr 2018  路  7Comments  路  Source: microsoftgraph/microsoft-graph-docs

Issue:

The documentation lists the following paths to update and delete tasks.

PATCH /users/{id|userPrincipalName}/outlook/tasks/{id}
PATCH /users/{id|userPrincipalName}/outlook/taskFolders/{id}/tasks/{id}
PATCH /users/{id|userPrincipalName}/outlook/taskGroups/{id}/taskFolders/{id}/tasks/{id}

DELETE /users/{id|userPrincipalName}/outlook/tasks/{id}
DELETE /users/{id|userPrincipalName}/outlook/taskFolders/{id}/tasks/{id}
DELETE /users/{id|userPrincipalName}/outlook/taskGroups/{id}/taskFolders/{id}/tasks/{id}

When I try to use the second one of each I'm getting this error:

{
    "error": {
        "code": "NavigationNotSupported",
        "message": "Recursive navigation is not allowed after property 'Tasks' according to the entity schema.",
        "innerError": {
            "request-id": "b0cff3b9-9f6b-4f47-939c-1a93ac2c6eef",
            "date": "2018-04-29T10:41:39"
        }
    }
}

Doing the same request without the taskFolders/{id} (so the first variant) works just fine.

Article:

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlooktask_update
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlooktask_delete

outlook documentation

All 7 comments

The following attachment related methods have the same issue.

GET /users/{id | userPrincipalName}/calendars/{id}/events/{id}/attachments

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/event_list_attachments

POST /users/{id | userPrincipalName}/calendars/{id}/events/{id}/attachments

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/event_post_attachments

GET /users/{id|userPrincipalName}/outlook/taskFolders/{id}/tasks/{id}/attachments

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlooktask_list_attachments

POST /users/{id|userPrincipalName}/outlook/taskFolders/{id}/tasks/{id}/attachments

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlooktask_post_attachments

DELETE /users/{id | userPrincipalName}/calendars/{id}/events/{id}/attachments/{id}

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/attachment_delete

This makes sense and fits the patterns on other types (messages, events, etc). If you have the ID of a task, there should be no need to go through other folder segments, etc.

@jasonjoh Thanks for the response. I wasn't completely sure about that because the docs always say something like

Attachments for an event in the user's or group's default calendar.

That makes it sound like you need to use a more specific path for attachments of events in a secondary calendar (same for folders etc.).

@jasonjoh nudge...

My bad! Assigning to myself, I'll see about updating these docs

Recursive navigation is not allowed after property 'Events' according to the entity schema.,
beta API

Hello,
I am trying to delete event in shared calendar group having shared calendar and event. I want to delete event in this shared calendar:
DELETE /me/calendargroups/{id}/calendars/{id}/events/{id} with response:

{
"error": {
"code": "NavigationNotSupported",
"message": "Recursive navigation is not allowed after property 'Calendars' according to the entity schema.",
"innerError": {
"request-id": "ea35aa0c-efdb-46a4-921c-4c87eeddc822",
"date": "2019-08-16T07:01:16"
}
}
}
Can you please help with that?
Regards,
David

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chotimir picture Chotimir  路  3Comments

cconrado picture cconrado  路  4Comments

gi-joe-moto picture gi-joe-moto  路  3Comments

nchdl picture nchdl  路  4Comments

abhatt29 picture abhatt29  路  4Comments