Forums | Users |
Search | Signup | Login

Location response on PUT?

Subscribe to Location response on PUT? 3 post(s), 2 voice(s)

 
Avatar cheesegrits 51 post(s)

Should the API return a Location header after a PUT, as it does after a POST, giving the ID of affected record?

Not a biggie, obviously we already know the ID of the record we just edited, just wondering if I’m missing something.

-- hugh
 
Avatar Joshua Frappier Administrator 241 post(s)

Hugh,

Don’t worry, you are not missing something. The Location header is only sent on POST’s, since you already know the location of the resource in all other cases.

Josh

 
Avatar cheesegrits 51 post(s)

Cool.

I’m really happy with the API. It’s working flawlessly, and I hope to finally have our vB forum integration stuff live by the end of today.

Thanks for all your hard work, and as always your quick responses to my questions.

-- hugh