Skip to main content
POST
/
tags
Create tag
curl --request POST \
  --url https://api.sprucecollective.co.uk/tags \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>",
  "active": true,
  "color": "<string>",
  "description": "<string>",
  "site_id": "<string>"
}
'
{
  "active": true,
  "color": "<string>",
  "created_at": "<string>",
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "site_id": "<string>",
  "slug": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Tag creation data

name
string
required
slug
string
required
active
boolean
color
string
description
string
site_id
string

Response

Created

active
boolean
color
string
created_at
string
description
string
id
string
name
string
site_id
string
slug
string
updated_at
string