Skip to main content
POST
/
api
/
workspace
/
{workspaceId}
/
brands
Create brand
curl --request POST \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/brands \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New Brand",
  "description": "Brand description here"
}
'
{
  "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

Body

application/json
name
string
required
Required string length: 1 - 255
slug
string

URL-friendly slug (auto-generated if not provided)

logo_url
string<uri> | null
description
string | null
Maximum string length: 1000

Response

Brand created 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