PUT
/
product-attribute-groups
/
{id}
curl --request PUT \
  --url https://api.fabric.inc/v3/product-attribute-groups/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Dimensions",
  "description": "Dimensions of a product",
  "priority": 1,
  "attributes": [
    {
      "attributeId": "5f328bf0b5f328bf0b5f328b",
      "isReadOnly": true
    }
  ]
}'
{
  "id": "59328bf0b5f328bf0b5f3288",
  "name": "Dimensions",
  "description": "Dimensions of a product",
  "priority": 1,
  "attributes": [
    {
      "attributeId": "33328bf0b5f328bf0b5f3288",
      "name": "color",
      "type": "TEXT",
      "localizedProperties": {
        "en-US": {
          "name": "color"
        },
        "en-IN": {
          "name": "colour"
        }
      },
      "isLocalizable": true,
      "isReadOnly": true
    }
  ],
  "attributeCount": 20,
  "updatedBy": "test@email.com",
  "createdAt": "2021-04-20T10:24:36.162Z",
  "updatedAt": "2021-04-20T10:24:36.162Z"
}

Authorizations

Authorization
string
header
required

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.

Example:

"517fa9dfd42d8b00g1o3k312"

x-fabric-request-id
string

Unique request ID

Example:

"263e731c-45c8-11ed-b878-0242ac120002"

Path Parameters

id
string
required

24-character system-generated attribute group ID

Body

application/json
Request body to update attribute group
name
string
required

Attribute group name

Example:

"Dimensions"

description
string

Brief description of attribute group

Example:

"Dimensions of a product"

priority
integer

Determines attribute group's order of appearance in the UI

Example:

1

attributes
object[]

Response

200
application/json
OK
id
string

24-character system-generated attribute group ID

Example:

"59328bf0b5f328bf0b5f3288"

name
string

Attribute group name

Example:

"Dimensions"

description
string

Brief description of attribute group

Example:

"Dimensions of a product"

priority
integer

Determines attribute group's order of appearance in the UI

Example:

1

attributes
object[]
attributeCount
integer

Number of attributes in the attribute group

Example:

20

updatedBy
string

Email of user who last updated Attribute Group

Example:

"test@email.com"

createdAt
string

Attribute group creation time (UTC)

Example:

"2021-04-20T10:24:36.162Z"

updatedAt
string

Time of last update to attribute group (UTC)

Example:

"2021-04-20T10:24:36.162Z"

Was this page helpful?