POST api/v1/Users/AssignBluIDMobileCredential
API to add BluID Mobile Credential
Request Information
URI Parameters
None.
Body Parameters
BluIDMobileCredentialAssignViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
Represents the ID of the User to obtain a BluID credential for |
globally unique identifier |
Required |
| MobileCredentialPoolId |
Represents the Mobile Credential Pool from which the card will be assigned - this should be configured in the BluSKY before making this call |
globally unique identifier |
Required |
| SendEmail |
Whether we need to send email to the User |
boolean |
Required |
| APISessionId |
This API session ID will help to tag the response with the call |
globally unique identifier |
Required |
| CallbackURL |
BluB0X will call this URL once the Credential is assigned |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "5f821add-6a48-4d3a-86be-13722fb3b466",
"MobileCredentialPoolId": "210f38f1-d6b1-4c6b-a564-7d5746eb627d",
"SendEmail": true,
"APISessionId": "1ca9d33c-7f4d-4e7c-a18e-bb699bb686a6",
"CallbackURL": "sample string 5"
}
application/xml, text/xml
Sample:
<BluIDMobileCredentialAssignViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <APISessionId>1ca9d33c-7f4d-4e7c-a18e-bb699bb686a6</APISessionId> <CallbackURL>sample string 5</CallbackURL> <MobileCredentialPoolId>210f38f1-d6b1-4c6b-a564-7d5746eb627d</MobileCredentialPoolId> <SendEmail>true</SendEmail> <UserId>5f821add-6a48-4d3a-86be-13722fb3b466</UserId> </BluIDMobileCredentialAssignViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode |
Represents the result code |
integer |
None. |
| Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResultCode": 1,
"Description": "sample string 2"
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <Description>sample string 2</Description> <HttpStatusCode>Continue</HttpStatusCode> <ResultCode>1</ResultCode> </Result>