Create a new collection managed by the current API user. If the user specifies a set of locations for the collections, users managing the whole set of locations can also manage the collection.
Security
X-API-KEY or Authorization
ContentCollection object to create
Mandatory - the type of content collection. Values can be: MENU, PEOPLE, PRODUCTS, SERVICES, or CUSTOM
Enum:"MENU""PEOPLE""PRODUCTS""CUSTOM""SERVICES""EVENTS""FAQ"
Location Ids that should be associated with this collection
Special field for FE indicating if the collection is read-only for the logged in user
Example:false
Only applicable to Menu content collections - indicates the cuisine the restaurant serves
Enum:"AMERICAN""ASIAN""BRAZILIAN""BREAKFAST""BRUNCH""CHICKEN""CHINESE""FAMILY""FAST_FOOD""FRENCH"
- https://uberall.com/apihttps://uberall.com/api/collections
- Mock Serverhttps://docs.uberall.com/_mock/apis/swagger/collections
- X-API-KEY
- Authorization
curl -i -X POST \
https://uberall.com/api/collections \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"id": 0,
"identifier": "string",
"name": "string",
"description": "string",
"type": "MENU",
"contentLists": [
{
"id": 0,
"title": "Lunch Menu",
"type": "MENU",
"description": "string",
"translations": [
{
"hu": {
"title": "Magyar"
},
"fr": {
"title": "Titre Français"
}
}
],
"items": [
{
"title": "string",
"description": "string",
"identifier": "string",
"listName": "string",
"id": 0,
"price": 0,
"currency": "EUR",
"category": "Starters, Drinks, Desert, etc.",
"image": {
"id": 0,
"url": "string",
"type": "LOGO",
"description": "string",
"uid": "string"
},
"url": "string",
"priceMax": 0,
"caloriesLow": 0,
"caloriesHigh": 0,
"allergens": "Eggs, Dairy, Wheat, etc.",
"dietaryRestrictions": "Vegetarian, Halal, etc."
}
]
}
],
"locationIds": [
0
],
"isReadOnly": false,
"cuisineType": "AMERICAN",
"url": "string"
}'Collection created
Enum:"SUCCESS""PENDING""QUOTA_LIMIT_EXCEED""NOT_AUTHORIZED""FORBIDDEN""BAD_ACCESS_TOKEN""BAD_PRIVATE_KEY""BAD_PUBLIC_KEY""MISSING_PARAMETER""INVALID_PARAMETER"
Response
{ "status": "SUCCESS", "message": "string", "warnings": [ "string" ], "response": { "collection": { … } } }