Skip to main content
POST
/
v1
/
api
/
admin
/
reference
/
regions
Créer une région
curl --request POST \
  --url http://localhost:3091/v1/api/admin/reference/regions \
  --header 'Content-Type: application/json' \
  --data '
{
  "nom": "<string>",
  "parentId": 123
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": 123,
    "nom": "<string>",
    "parentNom": "<string>",
    "childrenCount": 123
  },
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": "<string>"
  },
  "timestamp": "2023-11-07T05:31:56Z"
}

Body

application/json
nom
string
required
Maximum string length: 100
parentId
integer<int64>

Response

200 - */*

OK

success
boolean
message
string
data
object
error
object
timestamp
string<date-time>