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

PATCH /v1/user-favorites/{entityType}/{entityId}

PATCH/v1/user-favorites/{entityType}/{entityId}

Rename or update an existing favorite (label / secondaryLabel only)

Cuerpo de la solicitud

NombreTipoDescripción
labelstring
secondaryLabelstringnull

Parámetros de ruta

NombreTipoDescripción
entityTypeobligatoriostring
entityIdobligatoriostring

Ejemplo

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

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda