Make your first API request
This section provides you the instructions to use the Create Attribute endpoint. With this endpoint, you can create attributes that can be assigned to a product or category.Prerequisites:
- Generate the access token by following the instructions in the Getting Started with fabric APIs.
- Get the
x-fabric-tenant-idby following the instructions in the Getting the Account ID.
Procedure
- Open your preferred API testing tool or command-line interface.
- To run the following API call, set the following headers in the request with the corresponding values and add the payload as in the example:
x-fabric-tenant-id: Replace<Tenant-Id>with your fabric tenant ID.Authorization: Replace<Generated-access-token>with the access token obtained from the previous steps.Content-Type: Set this header toapplication/json.
https://api.fabric.inc/v3/product-attributes endpoint.A response with the status code 200 is returned with the following information:
