discourse/spec/requests/api/schemas/json/user_create_request.json
Blake Erickson 2d8a62aec1
DEV: Update create user w/ custom fields api docs (#30133)
Since the example specifies json use a json formatted example instead of
form-data.

https://meta.discourse.org/t/161413/5
2024-12-05 12:28:48 -07:00

43 lines
738 B
JSON

{
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"password": {
"type": "string"
},
"username": {
"type": "string"
},
"active": {
"type": "boolean",
"description": "This param requires an api key in the request header or it will be ignored"
},
"approved": {
"type": "boolean"
},
"user_fields": {
"type": "object",
"additionalProperties": true,
"properties": {
"1": {
"type": "boolean"
}
}
},
"external_ids": {
"type": "object"
}
},
"required": [
"name",
"email",
"password",
"username"
]
}