Location header

The response header that gives an address: where a newly created resource lives, where a job can be watched, or where a redirect points.

In more detail

A replayed create with the same idempotency key must return the original Location, not a new one. Its value can be a full address or a path relative to the request.

Example

In the APIs course: The course service answers POST /tasks with 201 and Location: /tasks/5, and POST /jobs with 202 and Location: /jobs/1.

Related terms

Taught in

References