Skip to main content
POST
/
tags
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";

const latitudesh = new Latitudesh({
  bearer: process.env["LATITUDESH_BEARER"] ?? "",
});

async function run() {
  const result = await latitudesh.tags.create({
    data: {
      type: "tags",
      attributes: {
        name: "Tag Name",
        description: "Tag Description",
        color: "#bebebe",
      },
    },
  });

  console.log(result);
}

run();
{
  "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