GET api/Entities/Accounts/SetPrimary?entityCode={entityCode}&accountId={accountId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| entityCode | string |
Required |
|
| accountId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
EntityValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| ChangesFound | boolean |
None. |
|
| Pending | boolean |
None. |
|
| Errors | Collection of ItemValidation |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"ChangesFound": true,
"Pending": true,
"Errors": [
{
"FieldName": "sample string 1",
"Message": "sample string 2"
},
{
"FieldName": "sample string 1",
"Message": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<EntityValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models.Entities">
<ChangesFound>true</ChangesFound>
<Errors>
<ItemValidation>
<FieldName>sample string 1</FieldName>
<Message>sample string 2</Message>
</ItemValidation>
<ItemValidation>
<FieldName>sample string 1</FieldName>
<Message>sample string 2</Message>
</ItemValidation>
</Errors>
<Pending>true</Pending>
<Success>true</Success>
</EntityValidationResult>