Create parent for user
POST/user/federated/createParent
Create parent for unlinked federated user
Request
- application/json
 
Body
provider string
Possible values: [discord, facebook, google, twitch, twitter, ultra]
Provider for federated user
username string
Preferred username for parent
Responses
- 200
 - 400
 - 401
 - 403
 - default
 
Returns the username of the created user
- application/json
 
- Schema
 - Example (from schema)
 
Schema
username string
Returns the username of the created user
{
  "username": "string"
}
Bad Request
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Bad Request"
}
Unauthorized
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Unauthorized access"
}
Forbidden
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Forbidden access"
}
Unexpected error
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "An unexpected error occured"
}
Loading...