POST
/
product-templates
/
actions
/
generate
curl --request POST \
  --url https://api.fabric.inc/v3/product-templates/actions/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "ATTRIBUTE"
}'

Authorizations

Authorization
string
headerrequired

S2S access token (JWT) from fabric Identity service (during login)

Headers

x-fabric-tenant-id
string

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-request-id
string

Unique request ID

Body

application/json

Template request

type
enum<string>
required

Specify the type, such as item or bundle, for which a template file needs to be downloaded

Available options:
ITEM,
BUNDLE
categoryId
string
required

ID of leaf category where items must be imported

locale
string

If isLocalizable is true, the search is based on the localized name in specified locales. If isLocalizable is false, the search is only based on the non-localized names.

Response

200 - text/csv

The response is of type file.