POST api/v2/Users/AddHIDCredential
Creates a HID Mobile credential for a given User
Request Information
URI Parameters
None.
Body Parameters
HidCredentialViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
Represents the ID of the User to obtain a credential for |
globally unique identifier |
None. |
| HidPartNumber |
Represents the HID Part Number - this should be configured in the BluSKY before making this call |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "63a5dca1-8e8f-4d1a-8b07-4caf93762c6c",
"HidPartNumber": "b54aae08-2639-4e55-b127-686dc29d5a2e"
}
application/xml, text/xml
Sample:
<HidCredentialViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <HidPartNumber>b54aae08-2639-4e55-b127-686dc29d5a2e</HidPartNumber> <UserId>63a5dca1-8e8f-4d1a-8b07-4caf93762c6c</UserId> </HidCredentialViewModel>
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>