Already have an account? Sign in.
Create a new brewery.
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. |
| Status | Reason |
|---|---|
| 400 | Invalid record. Responds with a JSON object containing errors. |
| 401 | Unauthorized. |
| 406 | Invalid format. |
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