Todo.ly REST API Method: PUT /User/Id

Updates the current user based on the input parameters. For the sake of consistency this method uses the same URL pattern as the rest of the methods, however the Id of the user is not used. Currently only the authenticated user can be updated. Regardless the user id parameter the Authenticated user will be updated. Use 0 in the URL instead of the user Id.

URL:

https://todo.ly/api/user/0.format

Formats:

xml, json

HTTP Method(s):

PUT, POST.

Requires Authentication:

true

Parameters:

This method requires a UserObject as input parameter, although it doesn’t require all the fields of the UserObject.
The supplied fields will be updated on the server. For example if the UserObject only contains the Email address, then only that field will be updated. It always updates the authenticated user.

Example Parameter input in XML format:

<UserObject>
  <Email>newEmail@email.com</Email>
</UserObject>

Usage examples:

https://todo.ly/api/user/0.xml

Response:

The response contains the details of the updated user

<UserObject> 
  <Id>12346</Id> 
  <Email>newEmail@email.com</Email> 
  <FullName>Joe Blow</FullName> 
  <TimeZone>0</TimeZone> 
  <IsProUser>false</IsProUser> 
  <DefaultProjectId>124</DefaultProjectId> 
  <AddItemMoreExpanded>false</AddItemMoreExpanded> 
  <EditDueDateMoreExpanded>true</EditDueDateMoreExpanded> 
  <ListSortType>0</ListSortType> 
  <FirstDayOfWeek>1</FirstDayOfWeek> 
  <NewTaskDueDate>0</NewTaskDueDate> 
</UserObject>