[HTTP GET] ~/contacts/{contactId}
Description: Get the details for a specific contact
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
contactId |
The Contact's Encrypted UserId |
string |
Required |
Body Parameters
None
Response Information
Description
Successful Response - OK (200):
A ContactsDTO
Response Content : Contact
Name | Description | Type | Additional information |
---|---|---|---|
EncContactId | string |
None. |
|
ListId | integer |
None. |
|
Values | Dictionary of string [key] and Object [value] |
None. |
Response Codes:
-
200 - OK
- The specified Contacts were retrieved and returned successfully.
-
401 - Unauthorized
- Request has been denied as it lacks valid Authentication credentials.
-
403 - Forbidden
- The user does not have the relevant permissions to perform this action.
-
404 - NotFound
- The specified Contact was not found.
-
500 - InternalServerError
- An error occurred while processing this request.
Formats
application/json, text/json
Sample:
{ "EncContactId": "sample string 2", "ListId": 3, "Values": { "sample string 1": {}, "sample string 3": {} } }
application/csp-report
Sample:
{"EncContactId":"sample string 2","ListId":3,"Values":{"sample string 1":{},"sample string 3":{}}}
application/xml, text/xml
Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/W50API.Models.DTO"> <EncContactId xmlns="http://schemas.datacontract.org/2004/07/W50Common.Model.DTO">sample string 2</EncContactId> <Id xmlns="http://schemas.datacontract.org/2004/07/W50Common.Model.DTO">1</Id> <ListId xmlns="http://schemas.datacontract.org/2004/07/W50Common.Model.DTO">3</ListId> <Values xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/W50Common.Model.DTO"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </Values> </Contact>