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_Rz8Ka32gLoUAZJYxkMrxiR8j9Ppa",
    "type": "tags",
    "attributes": {
      "name": "Tag Name",
      "slug": "tag-name",
      "description": "Tag Description",
      "color": "#bebebe",
      "team": {
        "id": "team_P5gz2MnmXoT4JXGwobmvf8bVoV3",
        "name": "628 Team",
        "slug": "628-team",
        "description": "628 Team",
        "address": "300 Jacqueline Village, Lake Shaunmouth, NH 56746",
        "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