POST api/Agent/InsertUpdate
Insert/Update agents.
Request Information
URI Parameters
None.
Body Parameters
InsertUpdateAgentName | Description | Type | Additional information |
---|---|---|---|
DatabaseId | globally unique identifier |
None. |
|
FirstName | string |
Required |
|
AgentType | AgentTypeMain |
Required |
|
LastName | string |
None. |
|
string |
None. |
||
Phone | string |
None. |
|
CellPhone | string |
None. |
|
Fax | string |
None. |
|
Active | boolean |
None. |
|
NPNNumber | string |
None. |
|
AddressLine1 | string |
None. |
|
AddressLine2 | string |
None. |
|
City | string |
None. |
|
StateAbbrevation | string |
None. |
|
County | string |
None. |
|
ZipCode | string |
None. |
|
LicenseNumber | string |
None. |
|
PrimaryOfficeDatabaseId | globally unique identifier |
None. |
|
WorkGroupName | Collection of string |
None. |
|
DeleteOtherWorkGroups | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "databaseId": "fcb1ef36-e4ee-4768-b931-406577e0fcef", "firstName": "sample string 2", "agentType": 0, "lastName": "sample string 3", "email": "sample string 4", "phone": "sample string 5", "cellPhone": "sample string 6", "fax": "sample string 7", "active": true, "npnNumber": "sample string 9", "addressLine1": "sample string 10", "addressLine2": "sample string 11", "city": "sample string 12", "stateAbbrevation": "sample string 13", "county": "sample string 14", "zipCode": "sample string 15", "licenseNumber": "sample string 16", "primaryOfficeDatabaseId": "f7f010da-b827-445b-940c-80046850fcf4", "workGroupName": [ "sample string 1", "sample string 2" ], "deleteOtherWorkGroups": true }
application/xml, text/xml
Sample:
<InsertUpdateAgent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Active>true</Active> <AddressLine1>sample string 10</AddressLine1> <AddressLine2>sample string 11</AddressLine2> <AgentType>Commercial</AgentType> <CellPhone>sample string 6</CellPhone> <City>sample string 12</City> <County>sample string 14</County> <DatabaseId>fcb1ef36-e4ee-4768-b931-406577e0fcef</DatabaseId> <DeleteOtherWorkGroups>true</DeleteOtherWorkGroups> <Email>sample string 4</Email> <Fax>sample string 7</Fax> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <LicenseNumber>sample string 16</LicenseNumber> <NPNNumber>sample string 9</NPNNumber> <Phone>sample string 5</Phone> <PrimaryOfficeDatabaseId>f7f010da-b827-445b-940c-80046850fcf4</PrimaryOfficeDatabaseId> <StateAbbrevation>sample string 13</StateAbbrevation> <WorkGroupName xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </WorkGroupName> <ZipCode>sample string 15</ZipCode> </InsertUpdateAgent>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultWithDatabaseIdName | Description | Type | Additional information |
---|---|---|---|
DatabaseId | globally unique identifier |
None. |
|
Status | ApiStatus |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "databaseId": "abee18c2-9bcc-4706-9c4c-142ea9f9e449", "status": 0, "message": "sample string 2" }
application/xml, text/xml
Sample:
<NowCertsApiResultWithDatabaseId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Message>sample string 2</Message> <Status>Error</Status> <DatabaseId>abee18c2-9bcc-4706-9c4c-142ea9f9e449</DatabaseId> </NowCertsApiResultWithDatabaseId>