Skip to content

Create activity log

POST
/api/v1/activity-logs
curl --request POST \
--url https://localhost:10001/api/v1/activity-logs \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "action": "example", "createdAt": "example", "id": 1, "logs": {}, "organizationId": 1, "organizationName": "example", "projectId": 1, "projectName": "example", "resource": "example", "userEmail": "example", "userId": "example", "userName": "example" }'

Record a new activity log for the active organization or a project and return the persisted record

Activity log payload

Media type application/json
object
action
string
createdAt
string
id
integer
logs
object
organizationId
integer
organizationName
string
projectId
integer
projectName
string
resource
string
userEmail
string
userId
string
userName
string
Example generated
{
"action": "example",
"createdAt": "example",
"id": 1,
"logs": {},
"organizationId": 1,
"organizationName": "example",
"projectId": 1,
"projectName": "example",
"resource": "example",
"userEmail": "example",
"userId": "example",
"userName": "example"
}

Created activity log

Media type application/json
object
action
string
createdAt
string
id
integer
logs
object
organizationId
integer
organizationName
string
projectId
integer
projectName
string
resource
string
userEmail
string
userId
string
userName
string
Example generated
{
"action": "example",
"createdAt": "example",
"id": 1,
"logs": {},
"organizationId": 1,
"organizationName": "example",
"projectId": 1,
"projectName": "example",
"resource": "example",
"userEmail": "example",
"userId": "example",
"userName": "example"
}

Bad request - Invalid request body or project not in active organization

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Unauthorized - Authentication required

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Forbidden - No access to the organization or project

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Organization or project not found

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Internal server error

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}