Create gender
Create new gender
Body·
required
application/json
- Type: object ·attributesrequired
- enumtypeconst:genderrequiredvalues
- gender
Responses
- application/vnd.api+json
- application/vnd.api+json
- application/vnd.api+json
- application/vnd.api+json
Request Example for post/pdm/genders
curl https://demo.spysystem.dk/api/v2/pdm/genders \
--request POST \
--header 'Content-Type: application/json' \
--header 'X-Spy-Authorization: YOUR_SECRET_TOKEN' \
--data '{
"type": "gender",
"attributes": {
"name": ""
}
}'
{
"data": {
"type": "gender",
"id": "1",
"attributes": {
"name": "Gender 1"
}
}
}
