Skip to main content

Read service event by UUID

Trae el evento asociado a un UUID, en caso de dejar el campo en blanco, traera todos. Su uso es para buscar todos los eventos relacionados a un servicio en cuestión.

Endpoint#

Headers

KeyValueDescription
Content-Typeapplication/json
AuthorizationBearer MdJWfp154y0HN...access_token obtained in Atenea

Url

Method: GET
URL: https://api.trust.lat/events/v1/event/service/:uuid
caution

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

Como obtener un access token

Path Variables#

KeyExampleRequiredDescription
uuid1d8914e1-c5de-46df-9918-c0369df68bfbfalseEvent id

Code Examples#

curl --location --request GET 'https://api.trust.lat/events/v1/event/service/0a62774a-8a77...' \
--header 'Authorization: Bearer 5oHKgny0aK...'

Responses#

HTTP Code: 200 OK#

{
"code": 200,
"resource": "Service Log",
"data": {
"audit_id": "",
"company_id": "6",
"created_at": "2021-07-13T22:36:33.778Z",
"description": "device created",
"operation": "CREATE",
"relevance": "INFO",
"resource": "DEVICE",
"resource_id": "1111-2222-3333-4444",
"resource_id_2": "",
"result": true,
"service": "INDEX",
"user_id": "1",
"uuid": "d538c40b..."
},
"message": "Found"
}

HTTP Code: 404 Not Found#

{
"code": 404,
"resource": "Service Log",
"message": "Not found"
}
Last updated on by Nelson Briceño