Skip to main content
GET
/
activitylogs
/
v2
/
rs
/
{activityLogId}
Get ActivityLog by Id
curl --request GET \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/activitylogs/v2/rs/{activityLogId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Session-Token: <x-session-token>'
{
  "data": {
    "id": 1,
    "comment": "Comment on the activityLog",
    "type": 1,
    "date": "2024-12-01T12:34:56.000Z",
    "createdById": 1,
    "updatedAt": "2024-12-05T14:56:23.000Z",
    "createdAt": "2024-01-15T08:45:00.000Z",
    "actions": {
      "canBeUpdated": true,
      "canBeDeleted": true
    },
    "createdBy": {
      "id": 1,
      "firstName": "John",
      "lastName": "Doe"
    },
    "sites": [
      {
        "id": 1,
        "name": "Main site",
        "isEstablishment": true,
        "establishmentId": 10
      }
    ],
    "updatableFields": {
      "comment": true,
      "type": true,
      "date": true,
      "sitIds": [
        123
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Path Parameters

activityLogId
integer
required

Unique identifier of the activityLog.

Example:

1

Query Parameters

extend
enum<string>[]

Extend options:

  • "actions-info": Give information about the actions that can be done on the activity logs

  • "created-by": Get information about the person that created the activity log

  • "sites": Get every sites linked

  • "updatable-fields": Get information about the field that can be updated

Available options:
actions-info,
created-by,
sites,
updatable-fields

Response

200 - application/json

Get the activitylog information

data
object
required