Skip to main content

Wine Comments

Get all Wine Comments

This endpoint retrieves all wine comments associated to current user.

warning

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

HTTP Request

GET /v1/wine-comments

Example

$ curl --request GET --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'

Get a specific Wine Comment

This endpoint lets you get a specific wine comment.

HTTP Request

GET /v1/wine-comments/single

Query parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint

Example

$ curl --request GET --url 'https://app.winesitting.com/v1/wine-comments/single?format=0.75&wine_id=15777' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'

Create a Wine Comment

This endpoint lets you create a wine comment.

HTTP Request

POST /v1/wine-comments

Wine Comment parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint
commentrequiredstring

Example

$ curl --request POST --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 2",
"format": "0.75",
"wine_id": 15777
},
'

Edit a Wine Comment

This endpoint lets you edit a wine comment.

HTTP Request

PUT /v1/wine-comments

Wine Comment parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint
commentrequiredstring

Example

$ curl --request PUT --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 2",
"format": "0.75",
"wine_id": 15777
},
'

Delete a Wine Comment

This endpoint lets you delete a wine comment.

HTTP Request

DELETE /v1/wine-comments

Parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint

Example

$ curl --request DELETE --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"format": "0.75",
"wine_id": 15777
},
'