POST api/v2/users/{UserId}/externalauthenticationlinks.{json|xml}
Scopes
Users › Modify External Authentication Links users.externalauthenticationlinks.modify
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| ExternalUserId | string | Request Body | External Id of the the user with the External Authentication Provider | Required | ||
| ProviderId | string | Request Body | Id of the External Authentication Provider | Required | ||
| UserId | int | Path | Id of the User | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api/v2/users/{UserId}/externalauthenticationlinks.json',
data: {
'UserId': '6',
'ExternalUserId': 'externaluserid',
'ProviderId': 'providerid'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"ExternalAuthenticationLink": {"UserId":6,"ProviderId":"providerid","ExternalUserId":"externaluserid","Warnings":[],"Errors":[]},
"Errors": ["string","string"]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<ExternalAuthenticationLink>
<UserId>6</UserId>
<ProviderId>providerid</ProviderId>
<ExternalUserId>externaluserid</ExternalUserId>
</ExternalAuthenticationLink>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
</Response>