According to the RFC Put
is used to update an existing resource.
But, the Stripe API uses Post
to update objects. Why is this?
For example, in the Stripe Node Library
update: stripeMethod({
method: 'POST',
path: '{id}',
}),
the update
method calls POST
I understand that there is no Patch
method since the entire resource must be sent on every call, by why is the Put
HTTP Verb not used in that case?
(Unlike this example from an SO question about the Facebook API, the resource is identifiable by a single ID that is passed in the URL) eg the URL is simply /v1/customers/:id