Skip to main content
POST
/
v3
/
departments
Add Department
curl --request POST \
  --url http://localhost/api/v3/departments \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "handle": "<string>",
  "brand_id": 123,
  "external_id": "<string>",
  "external_code": "<string>",
  "location_id": 123,
  "description": "<string>",
  "short_description": "<string>",
  "url": "<string>",
  "image_url": "<string>",
  "internal_note": "<string>",
  "meta": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "handle": "<string>",
    "external_id": "<string>",
    "external_code": "<string>",
    "description": "<string>",
    "short_description": "<string>",
    "url": "<string>",
    "image_url": "<string>",
    "internal_note": "<string>",
    "meta": [
      "<unknown>"
    ],
    "brand_id": 123,
    "location_id": 123,
    "brand": {
      "name": "<string>",
      "handle": "<string>"
    },
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
name
string
required
handle
string
required
brand_id
integer
required
external_id
string | null
external_code
string | null
location_id
integer | null
description
string | null
short_description
string | null
url
string | null
image_url
string | null
internal_note
string | null
meta
string[] | null

Response

Department

data
Department · object
required