Skip to main content
POST
/
activitylogs
/
v2
/
rs
Create an activity log
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/activitylogs/v2/rs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-Session-Token: <x-session-token>' \
  --data '
{
  "comment": "Comment on the activityLog",
  "type": 1,
  "date": "2024-12-01T12:34:56.000Z",
  "siteIds": [
    1,
    2,
    3
  ]
}
'
{
  "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",
    "deletedAt": "2024-01-15T08:45:00.000Z",
    "siteId": 1,
    "siteIds": [
      1
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Headers

Content-Type
enum<string>
required

Content type, must be "application/json".

Available options:
application/json
X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Body

application/json

Details required to create an activity log

comment
string
required

Comment on the activityLog.

Example:

"Comment on the activityLog"

type
enum<number>
required

ActivityLog type.

Available options:
1,
2,
3
Example:

1

date
required

Date of the activityLog.

Example:

"2024-12-01T12:34:56.000Z"

siteIds
integer[]
required

Unique identifiers of the associated sites.

Example:
[1, 2, 3]

Response

201 - application/json

The activity logs have been created

data
object
required