Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:43:25+00:00 2026-05-13T19:43:25+00:00

I know REST is meant to be resource-oriented, which roughly translates to CRUD operations

  • 0

I know REST is meant to be resource-oriented, which roughly translates to CRUD operations on these resources using standard HTTP methods. But what I just wanted to update a part of a resource?

For example, let’s say I have Payment resource and I wanted to mark its status as “paid“. I don’t want to POST the whole Payment object through HTTP (sometimes I don’t even have all the data).

What would be the RESTful way of doing this? I’ve seen that Twitter uses the following approach for updating Twitter statuses:

http://api.twitter.com/1/statuses/update.xml?status=playing with cURL and the Twitter API

Is this approach in “the spirit” of REST?

UPDATE: PUT -> POST

Some links I found in the meantime:

  • PUT or POST: The REST of the Story
  • PUT is not UPDATE
  • PATCH Method for HTTP
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:43:25+00:00Added an answer on May 13, 2026 at 7:43 pm

    The ideal way of doing this is to change a part (sub resource) of the resource and have the server return a 303 See Other with Location header to point to the altered resource. The 303 See Other tells the client that as the result of the request some other resource has changed and that the client should update the representation it holds.

    In your example (media types hypothetical, of course):

    1. Client retrieves payment representation
    GET /payments/2
    
    200 Ok
    Content-Type: application/payment+xml
    
    <payment>
      <status href="/payments/2/status" value="pending"/>
    </payment>
    
    2. Client updates status
    PUT /payments/2/status
    Content-Type: text/plain
    
    payed
    
    303 See Other
    Location: /payments/2
    
    3. Client follows the 303 redirect 
    GET /payments/2
    
    200 Ok
    Content-Type: application/payment+xml
    
    <payment>
      <status href="/payments/2/status" value="payed"/>
    </payment>
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mule has many endpoints, components, etc. for example like http:rest-service-component. How do I know
Disclaimer: I know IDisposable should be implemented when dealing with unmanaged resources. The rest
I know in earlier versions of the WCF REST Starter Kit the HttpClient class
I know it goes against the REST architecture but, from a pragmatic viewpoint, what
I would like to know how to provide a Ruby application with a REST
Does anyone know if (and how) I can build an application (Java/Ruby/whatever) doing REST
Does anyone know of a Twitter service proxy in particular, or a general-purpose REST
I'm developing a REST google app engine application. I want to know if it's
I'm trying to write a REST API. I honestly do not know anything related
Know if it's possible to access the iPhone compass in Safari using JavaScript? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.