This function will add a new dispatcher record to the database. INPUTS==> dispatcher information (Dispatcher Entity, Dispatcher Id, Name, Location, Phone Number, System Owner, Export Start Date, Export End Date). RETURN==> (result)
None.
AddDispatcherRequest.
AddDispatcherRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| DispEntity |
Dispatcher Entity. |
integer |
None. |
| DispatchId |
Dispatcher Id. |
string |
Required Matching regular expression pattern: [A-F0-9]{6} String length: inclusive between 6 and 6 |
| Name |
Name. |
string |
Required Max length: 50 |
| Location |
Location. |
string |
Max length: 50 |
| PhoneNo |
Phone Number. |
string |
Data type: PhoneNumber Max length: 20 |
| DispatcherBlock |
Dispatcher Block. |
string |
Max length: 32 |
| SystemOwner |
System Owner. |
boolean |
None. |
| ExportStartDate |
Export Start Date. |
string |
Required Max length: 10 |
| ExportEndDate |
Export End Date. |
string |
Required Max length: 10 |
| IsResetUserTouchKey | boolean |
None. |
|
| IsResetTamper | boolean |
None. |
|
| IsDownloadAudit | boolean |
None. |
|
| IsOpenLock | boolean |
None. |
{
"DispEntity": 1,
"DispatchId": "sample string 1",
"Name": "sample string 2",
"Location": "sample string 3",
"PhoneNo": "sample string 4",
"DispatcherBlock": "sample string 5",
"SystemOwner": true,
"ExportStartDate": "sample string 6",
"ExportEndDate": "sample string 7",
"IsResetUserTouchKey": true,
"IsResetTamper": true,
"IsDownloadAudit": true,
"IsOpenLock": true
}
<AddDispatcherRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests.Dispatcher"> <DispEntity>1</DispEntity> <DispatchId>sample string 1</DispatchId> <DispatcherBlock>sample string 5</DispatcherBlock> <ExportEndDate>sample string 7</ExportEndDate> <ExportStartDate>sample string 6</ExportStartDate> <IsDownloadAudit>true</IsDownloadAudit> <IsOpenLock>true</IsOpenLock> <IsResetTamper>true</IsResetTamper> <IsResetUserTouchKey>true</IsResetUserTouchKey> <Location>sample string 3</Location> <Name>sample string 2</Name> <PhoneNo>sample string 4</PhoneNo> <SystemOwner>true</SystemOwner> </AddDispatcherRequest>
Sample not available.
AddDispatcherResponse
AddDispatcherResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | ResponseHeader |
None. |
|
| Body | AddDispatcherResponseBody |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
Message |
string |
None. |
| StatusCode |
Status code |
ResponseStatus |
None. |
| Status |
Status |
string |
None. |
| ErrorId |
Error id |
string |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess |
Flag to show if dispatcher successfully added |
boolean |
None. |
{
"Header": {
"Message": "sample string 1",
"StatusCode": 0,
"Status": "sample string 2",
"ErrorId": "sample string 3"
},
"Body": {
"IsSuccess": true
}
}
<AddDispatcherResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses.Dispatcher">
<Body xmlns:d2p1="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses.Dispatcher" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses">
<d2p1:IsSuccess>true</d2p1:IsSuccess>
</Body>
<Header xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses">
<ErrorId>sample string 3</ErrorId>
<Message>sample string 1</Message>
<Status>sample string 2</Status>
<StatusCode>Ok</StatusCode>
</Header>
</AddDispatcherResponse>