Hi Indu, the answer is a bit tricky. First of all the URI must exist
before the request. Then you have several options:
a) If you want complete replacement of the state use PUT. It has the
big advantage of being idempotent. Do not use this for partial
updates.
b) If you want partial update use PATCH. Ensure to use a mime type
that has appropiate semantics (partial document, diff, ...). It isn't
idempotent, so you should use some mechanism to avoid problems with
duplicated request (if-match, etag). The problem is that it's only a
proposed standard, so most server don't understand it:
http://tools.ietf.org/html/rfc5789
c) The old way for partial updates is using POST instead PATCH. Not
standarized. Usually use the same practices that the ones used with
PATCH. It is good to add a header: "X-HTTP-Method-Override: PATCH" in
order to more modern server switch to PATCH semantics.
Cheers !