Update a Brand

Update by ID

PUT https://api.moltin.com/v2/brands/:id

This endpoint will update an existing Brand by ID.

Path Parameters

NameTypeDescription

id

string

The ID for the requested Brand

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API

Request Body

NameTypeDescription

type

string

This represents the type of object being returned

id

string

The ID of the requested brand

status

string

live or draft depending on the status

description

string

Any description for this brand

slug

string

A unique slug identifier for the brand

name

string

The name of the brand

{
  "data": {
    "id": "c46e07d2-23ef-4b3b-8437-7bcdbf38bc4c",
    "type": "brand",
    "status": "live",
    "name": "Trendy Lamp Co",
    "slug": "trendy-lamp-co",
    "description": "Trendy lamps.",
    "meta": {
      "timestamps": {
        "created_at": "2018-04-05T08:48:39+00:00",
        "updated_at": "2018-04-23T11:09:30+00:00"
      }
    },
    "relationships": {}
  }
}
curl -X PUT https://api.moltin.com/v2/brands/:id \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \
     -d $'{
       "data": {
         "type": "brand",
         "id": "c46e07d2-23ef-4b3b-8437-7bcdbf38bc4c",
         "name": "Trendy Lamp Co.",
         "slug": "trendy-lamp-co",
         "description": "Trendy lamps.",
         "status": "live"
       }
     }'

Last updated