Wishlists

Creating a Wishlist

Endpoint

POST /v1/wishlists

Parameters

Name Description
name required Name

Request

curl "https://capi.storyblok.com/v1/wishlists" -d '{"name":"My Name"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=UO8aWWZih3YpKTBV2dGMqQtt" \

Response

{
  "id": 1456,
  "uuid": "96d1af1e-f974-4684-b9e4-cd8a96cc0c5d"
}

Deleting a Wishlist

Endpoint

DELETE /v1/wishlists/:id

Request

curl "https://capi.storyblok.com/v1/wishlists/85ce9105-f7cf-4874-a298-7e02d7d6c5d0" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=YNbzQcrI0Y7w41IY6YAQaQtt" \

Getting a Wishlist

Endpoint

GET /v1/wishlists/:id

Request

Query Parameters

page=0
curl "https://capi.storyblok.com/v1/wishlists/e0bc7ce3-9e81-4ba1-8dac-40b01620ad70?page=0" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=OE0qN5JxHK6Erd4nPSLmlAtt" \

Response

{
  "id": 1455,
  "uuid": "e0bc7ce3-9e81-4ba1-8dac-40b01620ad70"
}

Getting a list of wishlists

Endpoint

GET /v1/wishlists

Parameters

Name Description
page Current page of wishlists

Request

Query Parameters

page=0
curl "https://capi.storyblok.com/v1/wishlists?page=0" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=QH22zoU218Dbf4TNBGpW9wtt" \

Response

[

]

Updating a Wishlist

Endpoint

PUT /v1/wishlists/:id

Parameters

Name Description
name required Name of Wishlist

Request

curl "https://capi.storyblok.com/v1/wishlists/3dec40ee-e4ab-4a4f-ab95-8055965fbbcf" -d '{"name":"My Name"}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=CGUuL80TVhTlSExv5Z5AVQtt" \

Response

{
  "id": 1457,
  "uuid": "3dec40ee-e4ab-4a4f-ab95-8055965fbbcf"
}