POST /inventory-feed-mappings.json
Body Required
-
Field
Values are
optionName
,optionValue
,metaFieldName
, ormetaFieldValue
. -
inventoryFeedId integer(int32) | null
Inventory feed
-
Match type
Values are
includes
,excludes
,matches
,startsWith
, orendsWith
. -
Transform from
-
Transform to
-
Transform type
Values are
capitalize
,humanize
, ornone
. Default value isnone
.
POST
/inventory-feed-mappings.json
curl \
-X POST http://api.example.com/v1/inventory-feed-mappings.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-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": "2024-05-04T09:42:00+00:00",
"field": "optionName",
"id": 42,
"inventoryFeedId": 42,
"matchType": "includes",
"transformFrom": [
"string"
],
"transformTo": "string",
"transformType": "none",
"updatedAt": "2024-05-04T09:42:00+00:00"
}