breweries
The breweries
API retrieves a list of all of the breweries whose beers are carried by the current account.
Parameters
- api_key (string) Required - The API key for the account
- last_updated_at (datetime) Optional - If this parameter is supplied, only breweries whose last edited date is after the supplied date and time will be returned. The parameter should be formatted as "YYYY-MM-DD HH:MM:SS" and will be interpreted as a UTC date and time value.
Response
The breweries
API returns a JSON array of breweries. Each member of the array includes these attributes:
- id - Unique identifier.
- updated_at - The date that this winery was last edited.
- created_at - The initial date that this winery was created.
- name - The display name of the brewery.
- description - The description of the brewery.
Notes
The URL for the request contains assigned
.
The id
attribute is used by the beers API to indicate the brewery for each wine.
Sample Request
https://dashboard.onpremisewine.com/breweries/assigned.json?api_key=ABCDEF123456
Sample Response
{
"breweries": [
{
"id": 2250,
"updated_at": "2012-09-19T14:00:12-07:00",
"created_at": "2012-08-31T13:27:46-07:00",
"name": "Little Dog Brewery",
"description": "A small craft brewery in the hills of West Virginia, Little Dog prides itself on handcrafted and unusual beers."
}
]
}