Skip to main content
PATCH
/
api
/
workspace
/
{workspaceId}
/
brands
/
{brandId}
Update brand
curl --request PATCH \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/brands/{brandId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "logo_url": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "logo_url": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

brandId
string
required

Body

application/json
name
string
Required string length: 1 - 255
logo_url
string<uri> | null
description
string | null
Maximum string length: 1000

Response

Brand updated successfully

id
string
required
workspace_id
string
required
name
string
required
slug
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
logo_url
string<uri> | null
description
string | null