Skip to main content
Version: v2

Wine Comments

Get all Wine Comments

warning

This endpoint gives you all wine comments, even if there is no bottle in cellar. Please use Get Bottles endpoint to get comments associated to quantity.

HTTP Request

GET /wine-comments

Example

$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-comments' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'

Get a specific Wine Comment

HTTP Request

GET /wine-comments/{{wineId}}/{{wineFormat}}

Query parameters

NameRequiredTypeDetails
wineIdrequiredint
wineFormatrequiredstringex: 0.75

Example

$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-comments/103435/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'

Create a Wine Comment

HTTP Request

POST /wine-comments

Wine Comment parameters

NameRequiredTypeDetails
formatrequiredfloatex: 0.75
wine_idrequiredint
commentrequiredstring

Example

$ curl --request POST --url 'https://app.winesitting.com/api/v2/wine-comments' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 2",
"format": 0.15,
"wine_id": 15777
},
'

Edit a Wine Comment

HTTP Request

PUT /wine-comments/{{wineId}}/{{wineFormat}}

Wine Comment parameters

See Get a specific Wine Comment for parameters.

Example

$ curl --request PUT --url 'https://app.winesitting.com/api/v2/wine-comments/15777/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 3",
"format": 0.75,
"wine_id": 15777
},
'

Delete a Wine Comment

HTTP Request

DELETE /wine-comments/{{wineId}}/{{wineFormat}}

Parameters

See Get a specific Wine Comment for parameters.

Example

$ curl --request DELETE --url 'https://app.winesitting.com/api/v2/wine-comments/15777/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \