Skip to main content

Delete Identity

Este endpoint permite eliminar una identidad (Persona-Compañia) alojada dentro del servicio, utilizando su identificador uuid para reconocerla. Este identificador es entregado como una variable de ruta.

Endpoint#

Headers

KeyValueDescription
AuthorizationBearer {{access_token}}access_token obtained in Atenea
Method: DELETE
URL: https://api.trust.lat/index/v1/identity/:uuid

Path Variables:

KeyValue ExampleDescription
uuidffffffff-ffff-ffff-ffff-ffffffffffffIdentificador único de la identidad. Obligatorio.
caution

Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea

Como obtener un access token

Code Examples#

curl --location --request DELETE 'https://api.trust.lat/index/v1/identity/ffffffff-ffff-ffff-ffff-ffffffffffff' \
--header 'Authorization: Bearer ************'

Responses#

HTTP Code: 200 OK#

Identity deleted#

{
"code": 200,
"resource": "Identity",
"data": {
"apps": [
{
"app_id": "99",
"created_at": null,
"person": {
"dni": "123456789",
"email": "abeta@example.test"
},
"tags": {
"systemic_client_type": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
},
"updated_at": null,
"version": "3"
}
],
"company_uid": "99",
"created_at": "2021-07-07T21:05:43.657Z",
"dni": "12.345.678-9",
"email": "abeta@example.test",
"former_documents": null,
"img": "https://robohash.org/123456789",
"last_name": "beta",
"load_uuid": null,
"name": "alfa",
"nationality": "CHL",
"phone_number": "+56912345678",
"status": true,
"trust_id": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"updated_at": "2021-07-07T21:05:43.657Z",
"uuid": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"message": "Deleted"
}

HTTP Code: 404 Not Found#

Identity not present in Index#

{
"code": 404,
"resource": "Identity",
"message": "Not found in database neither in former documents"
}

Identity's uuid points to a former document#

{
"code": 404,
"resource": "Identity",
"message": "Not found. Posible merge in document with uuid: ffffffff-ffff-ffff-ffff-ffffffffffff"
}
Last updated on by Claudio-Franco