personalizer.io Documentation

Help Page Home

PUT marketing/v1/Products

Sets targeting info (detail params) of a batch of products, each product has its individual detail params.

Request Information

URI Parameters

None.

Body Parameters

Collection of ItemDetails
NameTypeDescriptionComments
ID integer

Vendor string

Prevalence integer

ItemTypeID integer

Source ItemTargetSource

Attributes Collection of ItemAttribute

TargetingRulesCategory TargetingRuleCategory

TargetingRules Collection of ItemTargetingRuleInfo

TargetedKeywords Collection of ItemTargetedKeywordInfo

TargetedUserSegments Collection of ItemTargetedUserSegments

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Vendor": "sample string 2",
    "Prevalence": 1,
    "ItemTypeID": 1,
    "Source": "Manual",
    "Attributes": [
      {
        "Title": "sample string 1",
        "SourceType": "Platform",
        "Values": [
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          },
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          }
        ]
      },
      {
        "Title": "sample string 1",
        "SourceType": "Platform",
        "Values": [
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          },
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          }
        ]
      }
    ],
    "TargetingRulesCategory": "Unknown",
    "TargetingRules": [
      {
        "ItemID": 1,
        "TargetingRuleID": 2,
        "Effect": "None",
        "Auto": true,
        "TargetingRuleAttributes": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      },
      {
        "ItemID": 1,
        "TargetingRuleID": 2,
        "Effect": "None",
        "Auto": true,
        "TargetingRuleAttributes": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      }
    ],
    "TargetedKeywords": [
      {
        "KeywordID": 1,
        "Auto": true
      },
      {
        "KeywordID": 1,
        "Auto": true
      }
    ],
    "TargetedUserSegments": [
      {
        "UserSegmentGuid": "3f897baf-1709-429a-8287-51ca1aa5f979",
        "Auto": true
      },
      {
        "UserSegmentGuid": "3f897baf-1709-429a-8287-51ca1aa5f979",
        "Auto": true
      }
    ]
  },
  {
    "ID": 1,
    "Vendor": "sample string 2",
    "Prevalence": 1,
    "ItemTypeID": 1,
    "Source": "Manual",
    "Attributes": [
      {
        "Title": "sample string 1",
        "SourceType": "Platform",
        "Values": [
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          },
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          }
        ]
      },
      {
        "Title": "sample string 1",
        "SourceType": "Platform",
        "Values": [
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          },
          {
            "Title": "sample string 1",
            "Parameters": [
              "sample string 1",
              "sample string 2"
            ]
          }
        ]
      }
    ],
    "TargetingRulesCategory": "Unknown",
    "TargetingRules": [
      {
        "ItemID": 1,
        "TargetingRuleID": 2,
        "Effect": "None",
        "Auto": true,
        "TargetingRuleAttributes": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      },
      {
        "ItemID": 1,
        "TargetingRuleID": 2,
        "Effect": "None",
        "Auto": true,
        "TargetingRuleAttributes": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      }
    ],
    "TargetedKeywords": [
      {
        "KeywordID": 1,
        "Auto": true
      },
      {
        "KeywordID": 1,
        "Auto": true
      }
    ],
    "TargetedUserSegments": [
      {
        "UserSegmentGuid": "3f897baf-1709-429a-8287-51ca1aa5f979",
        "Auto": true
      },
      {
        "UserSegmentGuid": "3f897baf-1709-429a-8287-51ca1aa5f979",
        "Auto": true
      }
    ]
  }
]

Response Information

Resource Description

None.