Open Beer Database

A free, public database and API for beer information.

Sign up for an API token.

Already have an account? Sign in.

POST /breweries

Create a new brewery.

Parameters

All parameters are required.

Name Type Description
brewery hash Attributes of the new brewery.
name string The name of the brewery.
url string The URL of the brewery.
token string Token of the API user creating the brewery. Private only.

Errors

Status Reason
400 Invalid record. Responds with a JSON object containing errors.
401 Unauthorized.
406 Invalid format.

Example

POST /v1/breweries.json HTTP/1.1
Host: api.openbeerdatabase.com
Content-Type: application/json; charset=utf-8
Content-Length: length

{ "brewery" : {
    "name" : "Strawberry Harvest"
  }
}
HTTP/1.1 201 Created
Location: http://api.openbeerdatabase.com/v1/breweries/id.json