Block identity
Add a blocked identity. Requires a Write key. Returns 403 if identity logs are not enabled for the organization.
POST
/identity-logs/blockedAutorisierung
AutorisierungBearer-Token (API key) · headererforderlichOrganisations-API-Key.
Request-Body
erforderlichapplication/jsoncommentstringerforderlichfirst_namestringerforderlichlast_namestringerforderlichrawMrzstringerforderlichbirthDatestringOptional 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.
Antworten
200Created
successbooleanerforderlichidstringerforderlich400Bad request
errorValidationErrorerforderlichValidierungsdetails.
Eigenschaften anzeigenEigenschaften ausblenden
formErrorsstring[]erforderlichfieldErrorsobjecterforderlich403Unauthorized, or identity logs not enabled for this organization
statusCodeintegererforderlichHTTP-Statuscode
messagestringerforderlichLesbare Fehlermeldung
timestampstring<date-time>erforderlichpathstringerforderlichRequest-Pfad
Anfrage
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"
}'const response = await fetch("https://dashboard.scango.ch/api/v1/identity-logs/blocked", {
method: "POST",
headers: {
"Autorisierung": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"comment": "string",
"first_name": "string",
"last_name": "string",
"rawMrz": "string",
"birthDate": "string"
})
});Antwort
{
"success": true,
"id": "string"
}{
"error": {
"formErrors": [
"string"
],
"fieldErrors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}
}{
"statusCode": 0,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z",
"path": "string"
}