discourse/spec/requests/api/schemas/json/user_create_request.json
Alan Guo Xiang Tan 66ecfc8996
DEV: Correct users create API docs (#31578)
The API docs is incorrect as the `active` param is only permitted when
an admin API key
is used. This has always been the case since
429f27ec96
2025-03-03 16:42:46 +08:00

42 lines
744 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 admin 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"
]
}