Saltar al contenido principal
POST
/
v1
/
labels
/
templates
/
{templateId}
/
elements
Add a new element in the template
curl --request POST \
  --url https://api.bold-factory.com/v1/labels/templates/{templateId}/elements \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "Shape",
  "x": 123,
  "y": 123,
  "width": 123,
  "height": 123
}
'
{
  "type": "Shape",
  "x": 123,
  "y": 123,
  "width": 123,
  "height": 123,
  "id": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

templateId
string
requerido

Cuerpo

application/json
type
enum<string>
requerido
Opciones disponibles:
Shape
x
integer<int32>
requerido
y
integer<int32>
requerido
width
integer<int32>
requerido
height
integer<int32>
requerido

Respuesta

Created

type
enum<string>
requerido
Opciones disponibles:
Shape
x
integer<int32>
requerido
y
integer<int32>
requerido
width
integer<int32>
requerido
height
integer<int32>
requerido
id
string
requerido