Skip to main content
POST
/
v2
/
LegalBasisCreate
Create legal basis
curl --request POST \
  --url http://localhost:3000/v2/LegalBasisCreate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "brief": "<string>",
  "status": "active",
  "module": "<string>",
  "fulldesc": "<string>",
  "shortdesc": "<string>",
  "basistype": "<string>",
  "requiredmsg": "<string>",
  "requiredflag": true,
  "request_metadata": {}
}
'
{
  "status": "ok"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
brief
string
required

Unique identifier for the legal basis

status
enum<string>

Status of the legal basis

Available options:
active,
inactive
module
string

Module this legal basis applies to

fulldesc
string

Full description of the legal basis

shortdesc
string

Short description of the legal basis

basistype
string

Type of legal basis

requiredmsg
string

Required message for users

requiredflag
boolean

Whether this legal basis is required

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Legal basis created successfully

status
string
Example:

"ok"