PUT
/
v1
/
retailers
/
{retailer_id}
/
fabric
/
{fabric_id}
/
templates
/
{id}
curl --request PUT \
  --url https://marketplace-api.fabric.inc/v1/retailers/{retailer_id}/fabric/{fabric_id}/templates/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "production template",
  "code": "production template",
  "description": "Template for product and variant attributes in fabric PIM for the connected account of production staff",
  "direction": "export",
  "data_type": "products"
}'
{
  "id": 16,
  "name": "production template",
  "code": "production template",
  "description": "Template for product and variant attributes in fabric PIM for the connected account of production staff",
  "direction": "export",
  "data_type": "products",
  "template_mappings": [
    {
      "template list": "response"
    }
  ],
  "created_at": "2025-03-10T15:24:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

retailer_id
integer
required

The unique retailer ID. In the Dropship UI this is called the Merchant ID. To find your Merchant ID, click your merchant name in the top nav.

Example:

1001

fabric_id
integer
required

This ID maps to your Platform Account ID. To find this ID login to Dropship and click Merchant Settings > Integrations. In the options field, select configuration. The fabric Settings page is displayed with your Platform Account ID.

id
integer
required

The unique template identifier.

Body

application/json

Response

200 - application/json

Ok

The response is of type object.