Skip to content

Update a jurisdiction (admin only)

PATCH
/api/v1/jurisdictions/{code}
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": {} }'
code
required
Code
string
Media typeapplication/json
JurisdictionUpdate
object
name
Name
Any of:
string
regulation_name
Regulation Name
Any of:
string
description
Description
Any of:
string
is_active
Is Active
Any of:
boolean
territories
Territories
Any of:
Array<string>
risk_taxonomy
Risk Taxonomy
Any of:
object
key
additional properties
any
overlay_config
Overlay Config
Any of:
object
key
additional properties
any

Example generated

{
"name": "example",
"regulation_name": "example",
"description": "example",
"is_active": true,
"territories": [
"example"
],
"risk_taxonomy": {},
"overlay_config": {}
}

Successful Response

Media typeapplication/json
object
success
required
boolean
default: true
data
required
JurisdictionRead
object
code
required
Code
string
>= 2 characters <= 16 characters
name
required
Name
string
regulation_name
Regulation Name
Any of:
string
description
Description
Any of:
string
is_active
Is Active
boolean
default: true
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
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Forbidden

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Not Found

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

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>
ValidationError
object
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": {}
}
]
}