Unlink

Location /api/apps/{appID}/users/{accountType}:{address}/facebook/unlink
This resource allows to unlink the accessed user from a Facebook account.

Request Headers (Applies to all methods)

Authorization
header
Required: Yes

POST

/api/apps/{appID}/users/{accountType}:{address}/facebook/unlink

Description

Unlink the accessed user from Facebook.

Security

Only the administrator and the user himself can access this method.

Note

This request requires empty body.

Headers
Name Required? type Description
Authorization Yes string Authorization header. OAuth2 Bearer token
Responses
204

Content-Type (None)

The user has been unlinked successfully.
Note This response has no contents.
404

Content-Type application/vnd.kii.UserNotFoundException+json

The user was not found.
Contents
Name Type Description
errorCode string Error code "USER_NOT_FOUND".
message string The error message.
field string The field used for searching the user. This can be the userID or address field.
value string The field value used for searching the user.
appID string The ID of the application.
401

Content-Type application/vnd.kii.UnauthorizedAccessException+json

Not authorized to unlink the user.
Contents
Name Type Description
errorCode string Error code "UNAUTHORIZED".
message string The error message.
authenticatedAppID string The authenticated appID.
authenticatedPrincipalID string The authenticated principal ID (userID or thingID).
409

Content-Type application/vnd.kii.UserNotLinkedException+json

The user was not linked with the Facebook account.
Contents
Name Type Description
errorCode string Error code "USER_NOT_LINKED".
message string The error message.
userID string The ID of the user.