Unlink Account
POSThttps://api.uber.com/v1/identity/unlink-account
The unlink account endpoint unlinks the requested third party account to the Uber user that has authorized the application through a Client Credentials Access Token.
¶ Resource
POST /v1/identity/unlink-account
¶ Authorization
OAuth 2.0 client access token that has the identity.unlink-account
scope
¶ POST Parameters
Parameter | Type | Description |
---|---|---|
thirdPartyUserID |
string |
The unique identifier of the user’s third party account. |
clientID |
string |
The unique identifier of the client. |
accountType (optional) |
enum |
Distinguishes the type of third party account being unlinked. Must be configured prior to use, please contact 3p-identity-group@uber.com. |
¶ Example Request
Replace <TOKEN>
in the example below with a client access token
curl -X POST \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Accept-Language: en_US' \
-H 'Content-Type: application/json' \
-d '{
"thirdPartyUserID": "{THIRD_PARTY_USER_ID}",
"clientID": "{CLIENT_ID}"
}' "https://api.uber.com/v1/identity/unlink-account"
¶ Response for Example Request
Status-Code: 200 OK
{}
¶ Subsequent response for Example Request
If subsequent requests are made with Example Request
it will also succeed. It will not return a conflict because the account is already unlinked to the requested thirdPartyUserID
Status-Code: 200 OK
{}
¶ Unauthorized Request
Replace <BAD_TOKEN>
in the example below with a client access token that does not have the identity.unlink-account
scope
curl -X POST \
-H 'Authorization: Bearer <BAD_TOKEN>' \
-H 'Accept-Language: en_US' \
-H 'Content-Type: application/json' \
-d '{
"thirdPartyUserID": "{THIRD_PARTY_USER_ID}",
"clientID": "{CLIENT_ID}"
}' "https://api.uber.com/v1/identity/unlink-account"
¶ Unauthorized Response
Status-Code: 401 UNAUTHORIZED
{"code":"unauthorized","message":"This endpoint requires at least one of the following scopes: identity.unlink-account"}