PUT /template-mappings/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
attribute string | null
Attribute
-
columnType string | null
Column type
Values are
attribute
,placeholder
, ororderFlag
. -
Country format
Values are
full
,alpha2
, oralpha3
. Default value isalpha2
. -
createdAt string(date-time)
Created at
-
dateFormat string | null
Date format
-
Format reference
Default value is
false
. -
Header
-
id integer(int32)
Id
-
object string | null
Object
Values are
channel
,company
,currency
,customer
,dropship_provider
,inventory_feed_variant
,product
,purchase_item
,purchase_shipping_rate
,purchase
,sale_item
,sale_shipping_rate
,sale
,tracking_event
,transfer_refund
,transfer
,variant
, orvendor
. -
orderEnd string | null
Order end
-
orderMiddle string | null
Order middle
-
orderStart string | null
Order start
-
placeholder string | null
Placeholder
-
position integer(int32) | null
Position
-
propertyName string | null
Property name
-
State format
Values are
original
,full
, orabbreviation
. Default value isoriginal
. -
Template
-
updatedAt string(date-time)
Updated at
-
weightUnit string | null
Weight unit
Values are
g
,kg
,oz
, orlb
.
PUT /template-mappings/{id}.json
curl \
-X PUT http://api.example.com/v1/template-mappings/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"attribute":"string","columnType":"attribute","countryFormat":"alpha2","createdAt":"2024-05-04T09:42:00+00:00","dateFormat":"string","formatReference":false,"header":"string","id":42,"object":"channel","orderEnd":"string","orderMiddle":"string","orderStart":"string","placeholder":"string","position":42,"propertyName":"string","stateFormat":"original","templateId":42,"updatedAt":"2024-05-04T09:42:00+00:00","weightUnit":"g"}'
Request example
{
"attribute": "string",
"columnType": "attribute",
"countryFormat": "alpha2",
"createdAt": "2024-05-04T09:42:00+00:00",
"dateFormat": "string",
"formatReference": false,
"header": "string",
"id": 42,
"object": "channel",
"orderEnd": "string",
"orderMiddle": "string",
"orderStart": "string",
"placeholder": "string",
"position": 42,
"propertyName": "string",
"stateFormat": "original",
"templateId": 42,
"updatedAt": "2024-05-04T09:42:00+00:00",
"weightUnit": "g"
}