Cartup docs
  • Introduction
  • Browse Topics
  • Getting Started
  • Recommendation Configuration
    • Get Recommendation Types
    • Create Recommendation
      • Rules
    • Get Recommendation
    • Update Recommendation
    • Delete Recommendation
    • Create Themes
    • Get Theme List
    • Get Theme
    • Update Theme
    • Delete Theme
  • Recommendations
  • About Recommendations
  • Crosssell Products
  • Content Based Recommendation
  • Trending Product
  • Trending in category
  • Viewed also viewed
  • Recentviews
  • Category Based Recommendations
  • Bought Category Items
  • Bought also bought
  • Viewed Category Items
  • Inspired By Browser History
  • Based on Wishlist
  • Search
  • Search Configurations
  • Create Search Config
  • Get Search Config
  • Update Search Config
  • Delete Search Config
  • Upload Synonym
  • Upload Stop Word
  • Upload OneWay Synonym
  • Get synonym csv file
  • Get OneWay Synonym csv file
  • Get Stopwords csv file
  • Delete Synonym CSV file
  • Delete OneWaySynonym CSV file
  • Delete Stopwords CSV file
  • Search Suggestions
    • Get Search suggestions
  • Search Result
    • Get Search result
  • Shopify app configuration
  • Events Configuration
  • Shopify Widget Configuration
    • Create Widget
    • Verify the Widget
    • To create widget theme
  • Shopify badging configuration
    • To verify default badges
    • To create new badges
      • Create badge
      • Verify the badge
  • Shopify search configuration
    • To verify default search
    • To reconfigure your search
      • AI personalization & Ranking
      • Synomyns & Rules
      • Auto Facets
      • Advanced
    • To create search bar theme
    • To create search results theme
  • Shopify plp configuration
    • To configure plp
    • Verify plp
    • To create plp result theme
  • Events
  • Mobile Integration
  • iOS Integration
  • Android Integration
Powered by GitBook
On this page

Was this helpful?

  1. Recommendation Configuration

Update Recommendation

Update the exiting recommendation algorithm and the relevant page with the recommendation widget can be placed.

End Point

POST https://api.cartup.ai/v1/widget/custom/update

Headers

Name
Type
Description

Accept*

String

application/json

Content_type*

String

application/json

X-Cartup-Access-Token*

String

$CARTUP_API_KEY

X-Cartup-orgId *

String

$CARTUP_ORD_ID'

Request Body

Name
Type
Description

name*

String

Name of the recommendation (need to be unique)

divisionId*

String

HTLM tag id (need to be unique)

orgID*

String

Your org ID

orgName*

String

You org name

algoName*

String

Recommendation type

widgetShowType*

String

Type of widget - carousel/matrix

displayTitle*

String

Title you want to display on your site

maxProducts*

Integer

Maximum products to be displayed in the widget

themeId*

String

theme ID (Should be unique)

pageId*

String

Page type you want to display

includeRules

JSON String

Include rules - please refer to Rules section

excludeRules

JSON String

Exclude rules - please refer to Rules section

id*

String

Rcommendation ID(need to be unique)

{
    errMsg: null, 
    uid: "cd65e939-a48a-430b-b392-cf835efe2a04"
}
{
    "errMsg": "request json is not present in request params",
    "customWidgets": null
}

‌

Curl Example

curl --request POST 'https://api.cartup.ai/v1/widget/custom/update'
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'X-Cartup-Access-Token: $CARTUP_API_KEY'
--header 'X-Cartup-orgId : $CARTUP_ORD_ID'
-d '{
  "id": "3b856051-c508-4778-b775-5ec208965e84",
  "name": "test123",
  "divisionId": "test123",
  "orgId": "850a8b8f-a6fe-49e4-88fc-874843279d66",
  "orgName": "WorldMarts",
  "description": null,
  "algoName": "Trending Items",
  "widgetShowType": "carousel",
  "displayMode": "carousel",
  "displayTitle": "test123",
  "maxProducts": 10,
  "themeId": "fa23ac55-493b-4699-bcbf-3eebcd8ebd0d",
  "pageMappings": {
    "pageMappingList": [
      {
        "pageId": "Home Page"
      }
    ]
  },
  "includeRules": {
    "productPlacements": [],
    "rules": [],
    "categoryPlacements": [],
    "bundledProductPlacements": [
      {
        "customValues": {},
        "name": "Sahara Leggings",
        "anchorProname": "Sahara20Leggings",
        "id": "WP05",
        "bundledProducts": [
          {
            "index": 0,
            "date": "2021-10-06T10:45",
            "endDate": "2021-10-20T05:15",
            "id": "WorldMarts_10.0",
            "name": "Savvy Shoulder Tote",
            "proName": "Savvy20Shoulder20Tote",
            "duration": {
              "startDate": "2021-10-06T05:15:00.000Z",
              "endDate": "2021-10-19T23:45:00.000Z"
            },
            "date1": "2021-10-06T10:45",
            "date2": "2021-10-20T05:15",
            "showLabel": true,
            "proId": 1,
            "$$hashKey": "0KC"
          }
        ],
        "show": false
      }
    ]
  },
  "excludeRules": {
    "rules": [],
    "categoryPlacements": []
  },
  "timeZone": "Asia/Calcutta",
  "widgetTypes": [
    "trending"
  ],
  "id": "cd65e939-a48a-430b-b392-cf835efe2a04"
}'

​

Request Body

Please refer to field descriptions in the POST Body above.

‌Example

{
  "name": "test123",
  "divisionId": "test123",
  "orgId": "850a8b8f-a6fe-49e4-88fc-874843279d66",
  "orgName": "WorldMarts",
  "description": null,
  "algoName": "Trending Items",
  "widgetShowType": "carousel",
  "displayMode": "carousel",
  "displayTitle": "test123",
  "maxProducts": 10,
  "themeId": "fa23ac55-493b-4699-bcbf-3eebcd8ebd0d",
  "pageMappings": {
    "pageMappingList": [
      {
        "pageId": "Home Page"
      }
    ]
  },
  "includeRules": {
    "productPlacements": [],
    "rules": [],
    "categoryPlacements": [],
    "bundledProductPlacements": [
      {
        "customValues": {},
        "name": "Sahara Leggings",
        "anchorProname": "Sahara20Leggings",
        "id": "WP05",
        "bundledProducts": [
          {
            "index": 0,
            "date": "2021-10-06T10:45",
            "endDate": "2021-10-20T05:15",
            "id": "WorldMarts_10.0",
            "name": "Savvy Shoulder Tote",
            "proName": "Savvy20Shoulder20Tote",
            "duration": {
              "startDate": "2021-10-06T05:15:00.000Z",
              "endDate": "2021-10-19T23:45:00.000Z"
            },
            "date1": "2021-10-06T10:45",
            "date2": "2021-10-20T05:15",
            "showLabel": true,
            "proId": 1,
            "$$hashKey": "0KC"
          }
        ],
        "show": false
      }
    ]
  },
  "excludeRules": {
    "rules": [],
    "categoryPlacements": []
  },
  "timeZone": "Asia/Calcutta",
  "widgetTypes": [
    "trending"
  ],
  "id": "cd65e939-a48a-430b-b392-cf835efe2a04"
}

‌

‌

‌

‌

PreviousGet RecommendationNextDelete Recommendation

Last updated 3 years ago

Was this helpful?