Listar Notas de una Atención

Listar las notas de una atención

GET https://api.sperant.com/v3/attentions/<id>/notes

Path Parameters

Name
Type
Description

id*

String

ID Atencion

Headers

Name
Type
Description

Authorization*

String

token

{
    "data": [
        {
            "type": "text_notes",
            "id": "24358",
            "attributes": {
                "id": 24358,
                "message": "Mensaje 2 por el cliente",
                "creator_id": 81979,
                "creator_type": "Client",
                "created_at": 1634707252
            }
        },
        {
            "type": "text_notes",
            "id": "24357",
            "attributes": {
                "id": 24357,
                "message": "Mensaje 2 por el usuario",
                "creator_id": 145,
                "creator_type": "User",
                "created_at": 1634706461
            }
        },
        {
            "type": "text_notes",
            "id": "24356",
            "attributes": {
                "id": 24356,
                "message": "Mensaje 1 por el cliente",
                "creator_id": 81979,
                "creator_type": "Client",
                "created_at": 1634706235
            }
        },
        {
            "type": "text_notes",
            "id": "24354",
            "attributes": {
                "id": 24354,
                "message": "nota 1",
                "creator_id": 145,
                "creator_type": "User",
                "created_at": 1634704345
            }
        }
    ]
}

Parámetros de retorno

Los parámetros de retorno son los siguientes:

Parámetro
Tipo de Dato
Descripción

id

integer

ID Nota

message

string

Mensaje de la nota

creator_type

string

Tipo de Creador:

"User" => Usuario

"Client" => Cliente

creator_id

integer

Id del Creador

created_at

integer

Fecha de creación

Última actualización