Create collection

This API avialable only for user access-token integration
POST
/v1beta/collections

This endpoint allows to create collection.

Request Body

ATTRIBUTETYPEDESCRIPTION
namestring

Name of the collection

descriptionstring

Description for the collection

privacystring

'private' | 'public' (default: 'private')

Sample Request

curl "https://graph.whisk.com/v1beta/collections" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <Access-Token>" \ -d '{ "name": "My collection" }'

Response

Sample Response

{ "id": "97f77cceca5d11e7ae7e42010a9a0035", "name": "My favorite recipes", "description": "My favorite recipes", "privacy": "private", "createdAt": 1525352769 }