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:
Dan Ungureanu
2022-03-03 18:17:02 +02:00
committed by GitHub
parent a7db0ce985
commit 39ab14531a
11 changed files with 260 additions and 4 deletions

View File

@@ -486,6 +486,9 @@
]
}
]
},
"external_ids": {
"type": "object"
}
},
"required": [
@@ -547,6 +550,7 @@
"approved_by",
"suspended_by",
"silenced_by",
"groups"
"groups",
"external_ids"
]
}

View File

@@ -21,6 +21,9 @@
},
"user_fields[1]": {
"type": "boolean"
},
"external_ids": {
"type": "object"
}
},
"required": [

View File

@@ -0,0 +1,17 @@
{
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"password": {
"type": "string"
},
"external_ids": {
"type": "object"
}
}
}

View File

@@ -0,0 +1,15 @@
{
"additionalProperties": false,
"properties": {
"success": {
"type": "string"
},
"user": {
"type": "object"
}
},
"required": [
"success",
"user"
]
}