curl --request PATCH \
--url http://localhost:3000/api/civilians/{id} \
--header 'Content-Type: application/json' \
--cookie __Host-argus-session= \
--data '
{
"address": "2 Park Lane",
"occupation": null,
"status": "INACTIVE"
}
'import requests
url = "http://localhost:3000/api/civilians/{id}"
payload = {
"address": "2 Park Lane",
"occupation": None,
"status": "INACTIVE"
}
headers = {
"cookie": "__Host-argus-session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: '__Host-argus-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '2 Park Lane', occupation: null, status: 'INACTIVE'})
};
fetch('http://localhost:3000/api/civilians/{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_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/civilians/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '2 Park Lane',
'occupation' => null,
'status' => 'INACTIVE'
]),
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/civilians/{id}"
payload := strings.NewReader("{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("http://localhost:3000/api/civilians/{id}")
.header("cookie", "__Host-argus-session=")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/civilians/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["cookie"] = '__Host-argus-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmg6a1civ000fl508civ00001",
"reference": "CIV-000123",
"ownerId": "cmg5x1k2a0000l508a1b2c3d4",
"fullName": "Amelia Hart",
"dateOfBirth": "1990-04-12",
"gender": "FEMALE",
"address": "2 Park Lane",
"phone": "020 7946 0000",
"occupation": null,
"imageUrl": null,
"notes": "Private backstory",
"status": "INACTIVE",
"createdAt": "2026-10-06T19:30:00.000Z",
"updatedAt": "2026-10-06T19:42:10.000Z"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Request validation failed.",
"details": [
{
"path": [
"address"
],
"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: civilians.manage_own."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NOT_FOUND",
"message": "Character not found."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "IDENTITY_LOCKED",
"message": "Name and date of birth are fixed once a character has an official history."
},
"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"
}Update a character
Permission: civilians.manage_own. The character’s owner, or anyone with civilians.manage.
Access: Browser session only.
Changes profile fields and status. Official data cannot be changed here. Once a character has any official history its name and date of birth are fixed for the owner; civilians.manage can still correct them. Administrative edits are audited as civilian.updated.
curl --request PATCH \
--url http://localhost:3000/api/civilians/{id} \
--header 'Content-Type: application/json' \
--cookie __Host-argus-session= \
--data '
{
"address": "2 Park Lane",
"occupation": null,
"status": "INACTIVE"
}
'import requests
url = "http://localhost:3000/api/civilians/{id}"
payload = {
"address": "2 Park Lane",
"occupation": None,
"status": "INACTIVE"
}
headers = {
"cookie": "__Host-argus-session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: '__Host-argus-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '2 Park Lane', occupation: null, status: 'INACTIVE'})
};
fetch('http://localhost:3000/api/civilians/{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_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/civilians/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '2 Park Lane',
'occupation' => null,
'status' => 'INACTIVE'
]),
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/civilians/{id}"
payload := strings.NewReader("{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("http://localhost:3000/api/civilians/{id}")
.header("cookie", "__Host-argus-session=")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/civilians/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["cookie"] = '__Host-argus-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"2 Park Lane\",\n \"occupation\": null,\n \"status\": \"INACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmg6a1civ000fl508civ00001",
"reference": "CIV-000123",
"ownerId": "cmg5x1k2a0000l508a1b2c3d4",
"fullName": "Amelia Hart",
"dateOfBirth": "1990-04-12",
"gender": "FEMALE",
"address": "2 Park Lane",
"phone": "020 7946 0000",
"occupation": null,
"imageUrl": null,
"notes": "Private backstory",
"status": "INACTIVE",
"createdAt": "2026-10-06T19:30:00.000Z",
"updatedAt": "2026-10-06T19:42:10.000Z"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Request validation failed.",
"details": [
{
"path": [
"address"
],
"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: civilians.manage_own."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "NOT_FOUND",
"message": "Character not found."
},
"requestId": "3f1c9d5e-7a42-4f0b-9c1e-8b6d2a4e5f70"
}{
"error": {
"code": "IDENTITY_LOCKED",
"message": "Name and date of birth are fixed once a character has an official history."
},
"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.
Path Parameters
Civilian ID. Argus record identifier.
1 - 64^[a-zA-Z0-9_-]+$Body
Send only the fields to change. null clears an optional field.
Letters, spaces, apostrophes, hyphens and full stops. Runs of spaces are collapsed.
2 - 80YYYY-MM-DD, from 1900-01-01 to today.
MALE, FEMALE, NON_BINARY, UNSPECIFIED 3 - 200^\+?[0-9][0-9 ()-]{2,19}$2 - 100HTTPS only. Argus stores the link and never fetches it.
2048Private to the owner; never shown in the PNC.
1 - 2000ACTIVE, INACTIVE, DECEASED Response
Success.
Show child attributes
Show child attributes