API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

POST /v1/user-favorites

POST/v1/user-favorites

Add an entity to the current user favorites (idempotent)

Cuerpo de la solicitud

NombreTipoDescripción
entityTypeobligatoriostring
entityIdobligatoriostring
labelobligatoriostring
secondaryLabelstring
pathobligatoriostring

Ejemplo

curl -X POST https://api.codemeta-os.de/v1/user-favorites \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "entityType": "string",
  "entityId": "string",
  "label": "string",
  "secondaryLabel": "string",
  "path": "string"
}'
const result = await cm.user-favorites.post({
  "entityType": "string",
  "entityId": "string",
  "label": "string",
  "secondaryLabel": "string",
  "path": "string"
});

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda