GET api/admin/users/{userId}/todos/{todoId}
This method will retrieve an individual to-do item created by user identified by id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
User id |
integer |
Required |
| todoId |
To-do item id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Instance of
ToDoItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| HighPriority | boolean |
None. |
|
| Content | string |
None. |
|
| AddedDate | date |
None. |
|
| CompletedDate | date |
None. |
|
| UserId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"highPriority": true,
"content": "sample string 3",
"addedDate": "2025-11-01T05:54:50.6498082-05:00",
"completedDate": "2025-11-01T05:54:50.6498082-05:00",
"userId": 5
}
text/html
Sample:
{"id":1,"highPriority":true,"content":"sample string 3","addedDate":"2025-11-01T05:54:50.6498082-05:00","completedDate":"2025-11-01T05:54:50.6498082-05:00","userId":5}
application/xml, text/xml
Sample:
<ToDoItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities"> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id> <AddedDate>2025-11-01T05:54:50.6498082-05:00</AddedDate> <CompletedDate>2025-11-01T05:54:50.6498082-05:00</CompletedDate> <Content>sample string 3</Content> <HighPriority>true</HighPriority> <UserId>5</UserId> </ToDoItem>