curl --request POST \
--url http://localhost:3000/api/pnc/records \
--header 'Content-Type: application/json' \
--cookie __Host-argus-session= \
--data '
{
"civilianId": "cmg6a1civ000fl508civ00001",
"type": "CITATION",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit"
}
'import requests
url = "http://localhost:3000/api/pnc/records"
payload = {
"civilianId": "cmg6a1civ000fl508civ00001",
"type": "CITATION",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit"
}
headers = {
"cookie": "__Host-argus-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: '__Host-argus-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
civilianId: 'cmg6a1civ000fl508civ00001',
type: 'CITATION',
title: 'Speeding on Park Lane',
description: '47 mph in a 30 mph limit'
})
};
fetch('http://localhost:3000/api/pnc/records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/pnc/records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'civilianId' => 'cmg6a1civ000fl508civ00001',
'type' => 'CITATION',
'title' => 'Speeding on Park Lane',
'description' => '47 mph in a 30 mph limit'
]),
CURLOPT_COOKIE => "__Host-argus-session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/pnc/records"
payload := strings.NewReader("{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "__Host-argus-session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/pnc/records")
.header("cookie", "__Host-argus-session=")
.header("Content-Type", "application/json")
.body("{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/pnc/records")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["cookie"] = '__Host-argus-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmg6a5rec000kl508rec00001",
"reference": "REC-000045",
"type": "CITATION",
"status": "OPEN",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit",
"location": "Park Lane",
"occurredAt": "2026-10-06T19:30:00.000Z",
"fineAmount": 100,
"points": 3,
"vehicle": {
"id": "cmg6a4veh000jl508veh00001",
"plate": "LK21ABC",
"make": "BMW",
"model": "3 Series",
"colour": "Black"
},
"civilian": {
"id": "cmg6a1civ000fl508civ00001",
"reference": "CIV-000123",
"fullName": "Amelia Hart"
},
"visibleToSubject": true,
"issuedBy": {
"id": "cmg5x1k2a0000l508a1b2c3d4",
"displayName": "Olivia Officer"
},
"createdAt": "2026-10-06T19:42:10.000Z",
"updatedAt": "2026-10-06T19:42:10.000Z"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Request validation failed.",
"details": [
{
"path": [
"civilianId"
],
"message": "Invalid input"
}
]
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Sign in to continue."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission required: pnc.records.manage."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NOT_FOUND",
"message": "Civilian not found."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NO_LICENCE",
"message": "This person holds no driving licence to endorse."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "The request could not be completed."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}Create a record
Permission: pnc.records.manage. Needs a signed-in user; service credentials are refused with USER_REQUIRED.
Access: Browser session only.
Attaches an official record to a person. The recording officer is the caller. endorseLicence: true also adds points to the person’s licence as an endorsement linked to the record; that additionally needs pnc.licences.manage, a licence to endorse, and points of at least 1.
curl --request POST \
--url http://localhost:3000/api/pnc/records \
--header 'Content-Type: application/json' \
--cookie __Host-argus-session= \
--data '
{
"civilianId": "cmg6a1civ000fl508civ00001",
"type": "CITATION",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit"
}
'import requests
url = "http://localhost:3000/api/pnc/records"
payload = {
"civilianId": "cmg6a1civ000fl508civ00001",
"type": "CITATION",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit"
}
headers = {
"cookie": "__Host-argus-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: '__Host-argus-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
civilianId: 'cmg6a1civ000fl508civ00001',
type: 'CITATION',
title: 'Speeding on Park Lane',
description: '47 mph in a 30 mph limit'
})
};
fetch('http://localhost:3000/api/pnc/records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/pnc/records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'civilianId' => 'cmg6a1civ000fl508civ00001',
'type' => 'CITATION',
'title' => 'Speeding on Park Lane',
'description' => '47 mph in a 30 mph limit'
]),
CURLOPT_COOKIE => "__Host-argus-session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/pnc/records"
payload := strings.NewReader("{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "__Host-argus-session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/pnc/records")
.header("cookie", "__Host-argus-session=")
.header("Content-Type", "application/json")
.body("{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/pnc/records")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["cookie"] = '__Host-argus-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"civilianId\": \"cmg6a1civ000fl508civ00001\",\n \"type\": \"CITATION\",\n \"title\": \"Speeding on Park Lane\",\n \"description\": \"47 mph in a 30 mph limit\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmg6a5rec000kl508rec00001",
"reference": "REC-000045",
"type": "CITATION",
"status": "OPEN",
"title": "Speeding on Park Lane",
"description": "47 mph in a 30 mph limit",
"location": "Park Lane",
"occurredAt": "2026-10-06T19:30:00.000Z",
"fineAmount": 100,
"points": 3,
"vehicle": {
"id": "cmg6a4veh000jl508veh00001",
"plate": "LK21ABC",
"make": "BMW",
"model": "3 Series",
"colour": "Black"
},
"civilian": {
"id": "cmg6a1civ000fl508civ00001",
"reference": "CIV-000123",
"fullName": "Amelia Hart"
},
"visibleToSubject": true,
"issuedBy": {
"id": "cmg5x1k2a0000l508a1b2c3d4",
"displayName": "Olivia Officer"
},
"createdAt": "2026-10-06T19:42:10.000Z",
"updatedAt": "2026-10-06T19:42:10.000Z"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Request validation failed.",
"details": [
{
"path": [
"civilianId"
],
"message": "Invalid input"
}
]
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Sign in to continue."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission required: pnc.records.manage."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NOT_FOUND",
"message": "Civilian not found."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NO_LICENCE",
"message": "This person holds no driving licence to endorse."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "The request could not be completed."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}Authorizations
The opaque session cookie set by Discord sign-in. Named argus-session outside production. HttpOnly, so scripts cannot read it; same-origin requests send it automatically. Requests other than GET must also carry an Origin header equal to the application's own origin.
Body
Argus record identifier.
1 - 64^[a-zA-Z0-9_-]+$ARREST, CONVICTION, CITATION, WARNING, FINE, REPORT, LICENCE_OFFENCE, VEHICLE_OFFENCE 3 - 1503 - 40002 - 200ISO-8601 with a zone; must not be in the future. Defaults to now.
Whole pounds.
0 <= x <= 10000000 <= x <= 12Whether the character's owner can read the record. Defaults to true, except for REPORT.
Argus record identifier.
1 - 64^[a-zA-Z0-9_-]+$Also add points to the licence. Needs pnc.licences.manage.
Response
Created.
Show child attributes
Show child attributes