POST /inventory-feed-mappings.json

POST /inventory-feed-mappings.json
application/json

Body Required

  • field string Required

    Field

    Values are optionName or optionValue.

  • inventoryFeedId integer(int32) | null

    Inventory feed

  • matchType string Required

    Match type

    Values are includes, excludes, matches, startsWith, or endsWith.

  • transformFrom array[string] Required

    Transform from

  • transformTo string Required

    Transform to

  • transformType string Required

    Transform type

    Values are capitalize, humanize, or none. Default value is none.

Responses

  • 200

    Successful response

    Hide response attributes Show response attributes object
    • createdAt string(date-time)

      Created at

    • field string Required

      Field

      Values are optionName or optionValue.

    • id integer(int32)

      Id

    • inventoryFeedId integer(int32) | null

      Inventory feed

    • matchType string Required

      Match type

      Values are includes, excludes, matches, startsWith, or endsWith.

    • transformFrom array[string] Required

      Transform from

    • transformTo string Required

      Transform to

    • transformType string Required

      Transform type

      Values are capitalize, humanize, or none. Default value is none.

    • updatedAt string(date-time)

      Updated at

POST /inventory-feed-mappings.json
curl \
 -X POST http://api.example.com/v1/inventory-feed-mappings.json \
 -H "Content-Type: application/json" \
 -d '{"field":"optionName","inventoryFeedId":42,"matchType":"includes","transformFrom":["string"],"transformTo":"string","transformType":"none"}'
Request example
{
  "field": "optionName",
  "inventoryFeedId": 42,
  "matchType": "includes",
  "transformFrom": [
    "string"
  ],
  "transformTo": "string",
  "transformType": "none"
}
Response examples (200)
{
  "createdAt": "2023-05-04T09:42:00+00:00",
  "field": "optionName",
  "id": 42,
  "inventoryFeedId": 42,
  "matchType": "includes",
  "transformFrom": [
    "string"
  ],
  "transformTo": "string",
  "transformType": "none",
  "updatedAt": "2023-05-04T09:42:00+00:00"
}