Aller au contenu
scango.ch
Français
Esc
naviguerouvrir⌘Japerçu

Block identity

Add a blocked identity. Requires a Write key. Returns 403 if identity logs are not enabled for the organization.

POST/identity-logs/blocked
Autorisation
AutorisationJeton Bearer (API key) · headerobligatoire
Clé API de l’organisation.
Corps de la requête
obligatoireapplication/json
commentstringobligatoire
first_namestringobligatoire
last_namestringobligatoire
rawMrzstringobligatoire
birthDatestring
Optional birth date: `YYYY-MM-DD`, or ISO 8601 datetime with `Z` or a numeric offset (e.g. `1990-01-01T00:00:00.000Z`, `1990-01-01T12:00:00+02:00`). Timezone-less datetimes are rejected. Omitted or empty means no birth date is stored.
Réponses
200Created
successbooleanobligatoire
idstringobligatoire
400Bad request
errorValidationErrorobligatoire
Détails de validation.
Afficher les propriétés
formErrorsstring[]obligatoire
fieldErrorsobjectobligatoire
403Unauthorized, or identity logs not enabled for this organization
statusCodeintegerobligatoire
Code de statut HTTP
messagestringobligatoire
Message d’erreur lisible
timestampstring<date-time>obligatoire
pathstringobligatoire
Chemin de la requête
Requête
curl -X POST "https://dashboard.scango.ch/api/v1/identity-logs/blocked" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "comment": "string",
  "first_name": "string",
  "last_name": "string",
  "rawMrz": "string",
  "birthDate": "string"
}'
Réponse
{
  "success": true,
  "id": "string"
}