Skip to main content
POST
/
api
/
v1
/
tags
Crear etiqueta
curl --request POST \
  --url https://api.lapyme.com.ar/api/v1/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "scope": "customer",
  "name": "<string>",
  "color": "slate",
  "description": "<string>"
}
'
{
  "request_id": "<string>",
  "data": {
    "tag": {
      "object": "tag",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "scope": "customer",
      "name": "<string>",
      "slug": "<string>",
      "color": "slate",
      "description": "<string>",
      "archived_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "idempotent_replay": true
  },
  "warnings": [
    "<unknown>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.lapyme.com.ar/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Incluí tu API key en el header Authorization con el prefijo Bearer.

Headers

Idempotency-Key
string
required

Clave única para evitar duplicados al reintentar la misma creación de etiqueta.

Required string length: 1 - 255
X-Request-Id
string

ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.

Required string length: 1 - 255

Body

application/json
scope
enum<string>
required
Available options:
customer,
supplier,
product,
sale
name
string
required
Required string length: 1 - 70
color
enum<string> | null
Available options:
slate,
red,
orange,
amber,
yellow,
lime,
green,
teal,
cyan,
blue,
indigo,
violet,
pink
description
string | null
Maximum string length: 255

Response

Etiqueta creada exitosamente

request_id
string
required
data
object
required
warnings
any[]
required