Skip to main content
POST
/
tags
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os


with Latitudesh(
    bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:

    res = latitudesh.tags.create(data={
        "type": latitudesh_python_sdk.CreateTagTagsType.TAGS,
        "attributes": {
            "name": "Tag Name",
            "description": "Tag Description",
            "color": "#bebebe",
        },
    })

    # Handle response
    print(res)
{
  "data": {
    "id": "tag_7rE4rnrKowTjojXneKprFRjGg19",
    "type": "tags",
    "attributes": {
      "name": "Tag Name",
      "slug": "tag-name",
      "description": "Tag Description",
      "color": "#bebebe",
      "team": {
        "id": "team_MLv6NBEZrzI5a3XkP5k8cLjYG2o",
        "name": "570 Team",
        "slug": "570-team",
        "description": "570 Team",
        "address": "Apt. 638 652 Randall Neck, VonRuedenmouth, KS 94389",
        "status": "verified",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Body

data
object

Response

201 - application/vnd.api+json

Created

data
object
meta
object
I