Get one audit log entry, with readable payloads
curl --request GET \
--url https://api.meetcampfire.com/ca/api/v1/audit-log/{id}import requests
url = "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/v1/audit-log/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/ca/api/v1/audit-log/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/v1/audit-log/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"operation": "<string>",
"model": "<string>",
"object_id": 123,
"parent_model": "<string>",
"parent_object_id": 123,
"parent_draft_queue": 123,
"created_by": 123,
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"approved_by": 123,
"approved_by_name": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"reason": "<string>",
"old_payload": null,
"new_payload": null,
"workflow_name": "<string>",
"approvers": [
{}
]
}Settings
Get one audit log entry, with readable payloads
Retrieve one approved audit log entry by id, with its payloads expanded into readable values. Access is the same as for the list: an entry the list hides is a 404 here.
GET
/
ca
/
api
/
v1
/
audit-log
/
{id}
Get one audit log entry, with readable payloads
curl --request GET \
--url https://api.meetcampfire.com/ca/api/v1/audit-log/{id}import requests
url = "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/v1/audit-log/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/ca/api/v1/audit-log/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/ca/api/v1/audit-log/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/v1/audit-log/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"operation": "<string>",
"model": "<string>",
"object_id": 123,
"parent_model": "<string>",
"parent_object_id": 123,
"parent_draft_queue": 123,
"created_by": 123,
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"approved_by": 123,
"approved_by_name": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"reason": "<string>",
"old_payload": null,
"new_payload": null,
"workflow_name": "<string>",
"approvers": [
{}
]
}Response
The published shape of an audit entry, for the API docs; AuditLogEntrySerializer produces it.