Add new entity to Countries
POST/Countries
Add new entity to Countries
Request
- application/json
Body
required
New entity
iso string
name string
active boolean
englishName string
phonePrefix string
capital string
Responses
- 201
- default
Created entity
- application/json
- Schema
- Example (from schema)
Schema
iso string
name string
active boolean
englishName string
phonePrefix string
capital string
{
"iso": "string",
"name": "string",
"active": true,
"englishName": "string",
"phonePrefix": "string",
"capital": "string"
}
error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
error
object
required
code stringrequired
message stringrequired
target string
details
object[]
code stringrequired
message stringrequired
target string
innererror object
The structure of this object is service-specific
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}
Loading...