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_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