Update a jurisdiction (admin only)
PATCH
/api/v1/jurisdictions/{code}
const url = 'https://example.com/api/v1/jurisdictions/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","regulation_name":"example","description":"example","is_active":true,"territories":["example"],"risk_taxonomy":{},"overlay_config":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/jurisdictions/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "regulation_name": "example", "description": "example", "is_active": true, "territories": [ "example" ], "risk_taxonomy": {}, "overlay_config": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”code
required
Code
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
JurisdictionUpdate
object
territories
Territories
Any of:
Array<string>
null
Example generated
{ "name": "example", "regulation_name": "example", "description": "example", "is_active": true, "territories": [ "example" ], "risk_taxonomy": {}, "overlay_config": {}}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
object
success
required
boolean
data
required
JurisdictionRead
object
code
required
Code
string
name
required
Name
string
is_active
Is Active
boolean
territories
Territories
Array<string>
risk_taxonomy
Risk Taxonomy
object
key
additional properties
any
overlay_config
Overlay Config
object
key
additional properties
any
id
required
Id
string format: uuid
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{ "success": true, "data": { "code": "EU", "name": "European Union", "regulation_name": "EU AI Act (Reg. 2024/1689)", "is_active": true, "territories": [ "EU", "DE", "FR" ] }}Unauthorized
Media typeapplication/json
ErrorResponse
object
Example
{ "error": { "code": "not_found", "correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60", "message": "AI system not found." }}Forbidden
Media typeapplication/json
ErrorResponse
object
Example
{ "error": { "code": "not_found", "correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60", "message": "AI system not found." }}Not Found
Media typeapplication/json
ErrorResponse
object
Example
{ "error": { "code": "not_found", "correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60", "message": "AI system not found." }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}