Making your first API request - Fabric

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

When making calls to fabric APIs, you must use the following HTTP headers to provide context.

fabric API responses are in JSON format.

Prerequisites

Before you can start using fabric APIs:

Procedure

The following steps use Create attribute as an example:

  1. Log in to Postman client.
  2. In the left menu, click Import. The import window will display.
  3. In the import window, copy and paste the following code:
   curl --request POST \
   --url https://api.fabric.inc/v3/product-attributes \
   --header 'Content-Type: application/json' \
   --header 'Authorization: Bearer <token>' \
   --header 'x-fabric-tenant-id: <tenant-id>' \
   --data '{
      "name": "Category datetime example",
      "isLocalizable": false,
      "target": "CATEGORY",
      "type": "DATETIME",
      "validation": {
         "isMandatory": false,
         "isManualOverwrite": false,
         "formula": "",
         "dateFormat": "MM/DD/YYYY"
      }
   }'
  1. To populate the headers, click the Headers tab and do the following:
  1. Click Send.