| title | baseTask: move |
|---|---|
| description | Move a baseTask object from one baseTaskList to another. |
| author | devindrajit |
| ms.localizationpriority | medium |
| ms.subservice | outlook |
| doc_type | apiPageType |
| ms.date | 04/05/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
[!INCLUDE todo-deprecate-basetaskapi]
Move a baseTask object from one baseTaskList to another.
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
POST /me/tasks/lists/{baseTaskListId}/tasks/{baseTaskId}/move
POST /users/{userId|userPrincipalName}/tasks/lists/{baseTaskListId}/tasks/{baseTaskId}/move
POST /me/tasks/alltasks/{baseTaskId}/move
POST /users/{userId|userPrincipalName}/tasks/alltasks/{baseTaskId}/moveThis method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
In the request body, supply JSON representation of the parameters.
The following table shows the parameters that can be used with this action.
| Parameter | Type | Description |
|---|---|---|
| destinationTaskListId | String | The baseTaskList where the baseTask object must be moved to. |
If successful, this action returns a 200 OK response code and a baseTask in the response body.
POST https://graph.microsoft.com/beta/me/tasks/lists/AAMkAGVjMzJmMWZjLTgyYjgtNGIyNi1hOGQ0LWRjMjNmMGRmOWNiYQAuAAAAAAAboFsPFj7gQpLAt/tasks/AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0AkOO4xOT/move
Content-Type: application/json
Content-length: 41
{
"destinationTaskListId": "AAMkAGVjMzJmMWZjLTgyYjgtNGIyNi1hOGQ0LWRjMjNmMGRmOWNiYQAuAAAAAAAboFsPFj7gQqFxG"
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.task",
"@odata.etag": "W/\"kOO4xOT//0qFRAqk3TNe0QAAAymRCA==\"",
"importance": "normal",
"status": "notStarted",
"displayName": "T1",
"createdDateTime": "2021-11-15T13:16:53.0831814Z",
"lastModifiedDateTime": "2021-11-15T13:17:24.9876101Z",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0AkOO4xOT",
"body": {
"content": "",
"contentType": "text"
},
"parentList": {
"id": "AAMkAGVjMzJmMWZjLTgyYjgtNGIyNi1hOGQ0LWRjMjNmMGRmOWNiYQAuAAAAAAAboFsPFj7gQqFxG"
}
}