Success API Responses

200 OK

If a request succeeds, it will return a status code in the 200 range and often a JSON (or XML if requested) response.
  • Usually for GET, PUT, DELETE

201 CREATED

Creating new objects like messages or tasks will usually return a "201 Created" status. However, updating records will usually return a "200 OK" status code.
  • Usually for POST

If a request fails, a non-200 status code will be returned, possibly with error information.

304 Not Modified

This means the request is coming from cache. It was first loaded with a 200 success. Since your last call, no data has changed so your request comes from cache. You will usually see this on the front end where the api is called. If you use developer tools in your browser you will most certainly come across this!

Feedback

If you have any feedback or suggestions, feel free to contact us at api@teamwork.com.