Create a new FavoriteList
POST/v2/favoritelists
Create a new FavoriteList
Request
- application/json
Body
required
Create FavoriteList input
Favorite List product IDs list
List of product sources
Favorite List cluster IDs list
List of cluster sources
Favorite List is default
Possible values: <= 64 characters
Favorite List name
Favorite List company ID
companySource
object
Source ID
Name of the source
Favorite List contact ID
contactSource
object
Source ID
Name of the source
Favorite List customer ID
customerSource
object
Source ID
Name of the source
Responses
- 201
- 400
- 403
- 500
FavoriteList created
- application/json
- Schema
- Example (from schema)
Schema
Possible values: <= 64 characters
Favorite List name
Favorite List company ID
Favorite List contact ID
Favorite List customer ID
Favorite List product IDs list
Favorite List cluster IDs list
Default Favorite List
Favorite List slug
Favorite List date created
Favorite List date modified
Favorite List identifier
{
"name": "MyFavoriteList",
"companyId": 1111,
"contactId": 1111,
"customerId": 1111,
"productIds": [
1111,
2222,
3333
],
"clusterIds": [
1111,
2222,
3333
],
"isDefault": true,
"slug": "my-favorite-list-slug",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"id": "64e896addf2137b255101f49"
}
Bad request
Forbidden
Unknown create FavoriteList error