Create activity log
const url = 'https://localhost:10001/api/v1/activity-logs';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"action":"example","logs":{},"projectId":1,"resource":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:10001/api/v1/activity-logs \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "action": "example", "logs": {}, "projectId": 1, "resource": "example" }'Record a new activity log for the active organization or a project and return the persisted record
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Activity log payload
object
object
Must be in the active org; optional
Example generated
{ "action": "example", "logs": {}, "projectId": 1, "resource": "example"}Responses
Section titled “ Responses ”Created activity log
An audit entry recording who acted on which resource and when
object
object
Resolved from the active org
Resolved from organizationId
Must be in the active org
Urn:uuid form
Example generated
{ "action": "example", "logs": {}, "projectId": 1, "resource": "example", "userEmail": "example", "userId": "example", "userName": "example"}Bad request - Invalid request body or project not in active organization
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No access to the organization or project
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Organization or project not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}