mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: API to create user's associated account (#15737)
Discourse users and associated accounts are created or updated when a user logins or connects the account using their account preferences. This new API can be used to create associated accounts and users too, if necessary.
This commit is contained in:
@@ -486,6 +486,9 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"external_ids": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -547,6 +550,7 @@
|
||||
"approved_by",
|
||||
"suspended_by",
|
||||
"silenced_by",
|
||||
"groups"
|
||||
"groups",
|
||||
"external_ids"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
},
|
||||
"user_fields[1]": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"external_ids": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
17
spec/requests/api/schemas/json/user_update_request.json
Normal file
17
spec/requests/api/schemas/json/user_update_request.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"external_ids": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
15
spec/requests/api/schemas/json/user_update_response.json
Normal file
15
spec/requests/api/schemas/json/user_update_response.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"success": {
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"success",
|
||||
"user"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user