Plytix
EndpointsProductattributes

Create-Product-Attributes

POST
/api/v3/product-attributes

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Create payload for text attributes.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v3/product-attributes" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "type": "TextAttribute"  }'
{  "data": {    "_id": "stringstringstringstring",    "name": "string",    "label": "string",    "description": "string",    "status": "ACTIVE",    "group_ids": [      "stringstringstringstring"    ],    "product_family_ids": [      "stringstringstringstring"    ],    "created": "2019-08-24T14:15:22Z",    "modified": "2019-08-24T14:15:22Z",    "type": "ProductAttribute"  },  "errors": [    {      "name": "string",      "description": "string"    }  ],  "pagination": {    "next_page": "string",    "previous_page": "string"  }}