Unlink
POST /users/v1/unlink
POST
/users/v1/unlink
Unlink a platform user from their current person. This will create a new person for the platform user to be associated with.
If an identity is not provided, the identity in the token will be used.
If you are modifying a user outside of your person, Required Permissions:
- For any user (including themselves) any of:
user:*
,user:modify:any
NOTE: Whenever you change the link or cross progression status of a user, it is recommended to refresh their access token. Each token does container user information, which may be incorrect after a link or cross progression change. There is no guarantee that calling other endpoints will operate on the correct user until the token has been refreshed.
Authorizations
Request Body
object
platform
Platform ID
string
platform_user_id
Platform User ID
string
Responses
200
Successful Response
400
Request inputs are not valid
Error Codes:
account_not_found
- User Account not foundcannot_modify_person
- You have insufficient permissions to modify this personcannot_unlink_cross_progression_player
- Cannot unlink the cross progression playerinvalid_token_claims
- Token has missing/invalid claims. Are you using a non-user token on a user endpoint?player_not_linked
- Player is not linkeduser_has_restrictions
- user has restrictions that prevent this operation
object
auth_success
boolean
error_code
required
string
desc
required
string
403
Error Codes:
auth_invalid_key_id
- Invalid Authorization - Invalid Key ID in Access Tokenauth_invalid_version
- Invalid Authorization - versionauth_malformed_access
- Invalid Authorization - malformed access tokenauth_not_jwt
- Invalid Authorizationauth_token_expired
- Token is expiredauth_token_format
- Invalid Authorization - {}auth_token_invalid_claim
- Token contained invalid claim value: {}auth_token_sig_invalid
- Token Signature is invalidauth_token_unknown
- Failed to parse tokeninsufficient_permissions
- Insufficient Permissions
object
auth_success
boolean
error_code
required
string
desc
required
string
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string