Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Returns the new version of the blind or an error.

Parameters

id
uuid
required
The id of the blind to be updated
blind.name
string
required
A name for the blind
blind.number_of_bottles
integer
The number of bottles to select for the blind. Defaults to 4.
blind.proof_low
integer
The lowest proof that should be picked for the blind.
blind.proof_high
integer
The highest proof that should be picked for the blind.
blind.price_low
integer
The lowest price that should be picked for the blind.
blind.price_high
integer
The highest price that should be picked for the blind.
blind.types
array
The types that the blind should be selected from (e.g., “rye”, “bourbon”, “santori”).
blind.distillery_ids
array
An array of uuids of distilleries that the blind should be picked from.

Returns

Returns a newly edited blind if successfully updated by the logged in user on the platinum tier who owns the blind. Returns a 422 if the blind cannot be saved. Returns a 403 if the logged in user is not a Platinum Tier member. Returns a `404 if the logged in user is not the owner of the blind.
  curl -H "Authorization: $ACCESS_TOKEN" \
    --request POST \
    --url https://api.onlydrams.app/api/v1/blinds/:id
  {
    "id":"0694a6c3-a3e3-4eba-884c-7ccc714a02c4",
    "name":"Hastur",
    "number_of_bottles":4,
    "proof_low":null,
    "proof_high":null,
    "price_low":null,
    "price_high":null,
    "types":null,
    "distillery_ids":null,
    "user": User
  }