REST API Difference between PUT and PATCH?

Jan. 10, 2015
1:30 a.m.
The user endpoint supports PUT and PATCH methods.
PATCH does a partial update of the user’s configuration
PUT does a full update of the user’s configuration
It seems that for user, the field that can be modified between these two methods are display_name and cleartext_password
What is the difference exactly between partial and full update?
Are the two fields required in one case and optional in the other?
thanks

January 2015
4:03 a.m.
On Jan 10, 2015, at 12:30 PM, Andrew Stuart wrote:
What is the difference exactly between partial and full update? Are the two fields required in one case and optional in the other?
Exactly right. For all resources, PATCH allows the fields to be optional while PUT requires the fields to be present.
Cheers, -Barry
3697
Age (days ago)
3697
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrew Stuart
-
Barry Warsaw