PUT api/v1/agents/{agentUid}
Updates the agent by the specified agent UID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| agentUid |
The agent UID. |
globally unique identifier |
Required |
Body Parameters
The agent.
Agent| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
The agent name. |
string |
Required String length: inclusive between 0 and 100 |
| AddressLine1 |
The agent address line1. |
string |
String length: inclusive between 0 and 100 |
| AddressLine2 |
The agent address line2. |
string |
String length: inclusive between 0 and 100 |
| AddressLine3 |
The agent address line3. |
string |
String length: inclusive between 0 and 100 |
| AddressLine4 |
The agent address line4. |
string |
String length: inclusive between 0 and 100 |
| PostCode |
The agent post code. |
string |
String length: inclusive between 0 and 50 |
| Country |
The agent country. |
globally unique identifier |
None. |
| AgencyKey |
Gets or sets the agency key. |
string |
Required String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
{
"Name": "sample string 1",
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"PostCode": "sample string 6",
"Country": "54f2daac-e2bf-47d4-a9ea-db2637b5dcb4",
"AgencyKey": "sample string 8"
}
application/xml, text/xml
<Agent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models"> <AddressLine1>sample string 2</AddressLine1> <AddressLine2>sample string 3</AddressLine2> <AddressLine3>sample string 4</AddressLine3> <AddressLine4>sample string 5</AddressLine4> <AgencyKey>sample string 8</AgencyKey> <Country>54f2daac-e2bf-47d4-a9ea-db2637b5dcb4</Country> <Name>sample string 1</Name> <PostCode>sample string 6</PostCode> </Agent>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Returns the updated agent.
AgentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Portal |
Gets or sets the portal. |
PortalViewModel |
None. |
| Company |
Gets or sets the company. |
CompanyViewModel |
None. |
| Name |
Gets or sets the name. |
string |
None. |
| Address1 |
Gets or sets the address1. |
string |
None. |
| Address2 |
Gets or sets the address2. |
string |
None. |
| Address3 |
Gets or sets the address3. |
string |
None. |
| Address4 |
Gets or sets the address4. |
string |
None. |
| PostCode |
Gets or sets the post code. |
string |
None. |
| Country |
Gets or sets the country. |
CountryViewModel |
None. |
| AgencyKey |
Gets or sets the agency key. |
string |
None. |
| Uid |
The GUID. |
globally unique identifier |
None. |
| Links |
The links. |
Collection of Link |
None. |
| DateUpdated |
Last time the record was updated |
date |
None. |
| UpdatedBy |
Who updated the record last |
string |
None. |
Response Formats
application/json, text/json
{
"Portal": {
"Name": "sample string 1",
"Uid": "514c2a21-33f6-4942-a3f0-44eec2668d96",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 3"
},
"Company": {
"Name": "sample string 1",
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"PostCode": "sample string 6",
"Country": {
"Iso3Code": "sample string 1",
"Name": "sample string 2",
"Portal": {
"Name": "sample string 1",
"Uid": "514c2a21-33f6-4942-a3f0-44eec2668d96",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 3"
},
"CountryGuid": "f9426ef4-9143-4f6d-8c49-4049d087c851",
"Uid": "c58a680b-ec83-4679-9e08-61ad0c365813",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 5"
},
"Latitude": "sample string 7",
"Longitude": "sample string 8",
"PortalUid": "0fbab0cc-f90e-41dc-9e38-79aac92516dd",
"PortalGuid": "a2f21cdd-055f-4a07-8345-8d6bede71719",
"CompanyGuid": "9b4d9452-74fd-4efb-8c29-d616b74b7e0d",
"Uid": "69c236f7-6341-4519-8e2c-c9f71c51d08b",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 13"
},
"Name": "sample string 1",
"Address1": "sample string 2",
"Address2": "sample string 3",
"Address3": "sample string 4",
"Address4": "sample string 5",
"PostCode": "sample string 6",
"Country": {
"Iso3Code": "sample string 1",
"Name": "sample string 2",
"Portal": {
"Name": "sample string 1",
"Uid": "514c2a21-33f6-4942-a3f0-44eec2668d96",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 3"
},
"CountryGuid": "f9426ef4-9143-4f6d-8c49-4049d087c851",
"Uid": "c58a680b-ec83-4679-9e08-61ad0c365813",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 5"
},
"AgencyKey": "sample string 7",
"Uid": "62a68e09-22f3-4e43-9b16-f5f6e8c41e75",
"Links": [
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
},
{
"Href": "http://webapihelppage1.com",
"Method": "sample string 2",
"Rel": "sample string 3",
"Title": "sample string 4",
"Type": "sample string 5"
}
],
"DateUpdated": "2025-10-27T13:59:07.6624939+00:00",
"UpdatedBy": "sample string 9"
}
application/xml, text/xml
<AgentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.ViewModels">
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d2p1:Link>
<d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
<d2p1:Method>sample string 2</d2p1:Method>
<d2p1:Rel>sample string 3</d2p1:Rel>
<d2p1:Title>sample string 4</d2p1:Title>
<d2p1:Type>sample string 5</d2p1:Type>
</d2p1:Link>
<d2p1:Link>
<d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
<d2p1:Method>sample string 2</d2p1:Method>
<d2p1:Rel>sample string 3</d2p1:Rel>
<d2p1:Title>sample string 4</d2p1:Title>
<d2p1:Type>sample string 5</d2p1:Type>
</d2p1:Link>
</Links>
<Uid>62a68e09-22f3-4e43-9b16-f5f6e8c41e75</Uid>
<UpdatedBy>sample string 9</UpdatedBy>
<Address1>sample string 2</Address1>
<Address2>sample string 3</Address2>
<Address3>sample string 4</Address3>
<Address4>sample string 5</Address4>
<AgencyKey>sample string 7</AgencyKey>
<Company>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
</Links>
<Uid>69c236f7-6341-4519-8e2c-c9f71c51d08b</Uid>
<UpdatedBy>sample string 13</UpdatedBy>
<AddressLine1>sample string 2</AddressLine1>
<AddressLine2>sample string 3</AddressLine2>
<AddressLine3>sample string 4</AddressLine3>
<AddressLine4>sample string 5</AddressLine4>
<CompanyGuid>9b4d9452-74fd-4efb-8c29-d616b74b7e0d</CompanyGuid>
<Country>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d4p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d4p1:Link>
<d4p1:Href>http://webapihelppage1.com/</d4p1:Href>
<d4p1:Method>sample string 2</d4p1:Method>
<d4p1:Rel>sample string 3</d4p1:Rel>
<d4p1:Title>sample string 4</d4p1:Title>
<d4p1:Type>sample string 5</d4p1:Type>
</d4p1:Link>
<d4p1:Link>
<d4p1:Href>http://webapihelppage1.com/</d4p1:Href>
<d4p1:Method>sample string 2</d4p1:Method>
<d4p1:Rel>sample string 3</d4p1:Rel>
<d4p1:Title>sample string 4</d4p1:Title>
<d4p1:Type>sample string 5</d4p1:Type>
</d4p1:Link>
</Links>
<Uid>c58a680b-ec83-4679-9e08-61ad0c365813</Uid>
<UpdatedBy>sample string 5</UpdatedBy>
<CountryGuid>f9426ef4-9143-4f6d-8c49-4049d087c851</CountryGuid>
<Iso3Code>sample string 1</Iso3Code>
<Name>sample string 2</Name>
<Portal>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d5p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d5p1:Link>
<d5p1:Href>http://webapihelppage1.com/</d5p1:Href>
<d5p1:Method>sample string 2</d5p1:Method>
<d5p1:Rel>sample string 3</d5p1:Rel>
<d5p1:Title>sample string 4</d5p1:Title>
<d5p1:Type>sample string 5</d5p1:Type>
</d5p1:Link>
<d5p1:Link>
<d5p1:Href>http://webapihelppage1.com/</d5p1:Href>
<d5p1:Method>sample string 2</d5p1:Method>
<d5p1:Rel>sample string 3</d5p1:Rel>
<d5p1:Title>sample string 4</d5p1:Title>
<d5p1:Type>sample string 5</d5p1:Type>
</d5p1:Link>
</Links>
<Uid>514c2a21-33f6-4942-a3f0-44eec2668d96</Uid>
<UpdatedBy>sample string 3</UpdatedBy>
<Name>sample string 1</Name>
</Portal>
</Country>
<Latitude>sample string 7</Latitude>
<Longitude>sample string 8</Longitude>
<Name>sample string 1</Name>
<PortalGuid>a2f21cdd-055f-4a07-8345-8d6bede71719</PortalGuid>
<PortalUid>0fbab0cc-f90e-41dc-9e38-79aac92516dd</PortalUid>
<PostCode>sample string 6</PostCode>
</Company>
<Country>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
</Links>
<Uid>c58a680b-ec83-4679-9e08-61ad0c365813</Uid>
<UpdatedBy>sample string 5</UpdatedBy>
<CountryGuid>f9426ef4-9143-4f6d-8c49-4049d087c851</CountryGuid>
<Iso3Code>sample string 1</Iso3Code>
<Name>sample string 2</Name>
<Portal>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d4p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d4p1:Link>
<d4p1:Href>http://webapihelppage1.com/</d4p1:Href>
<d4p1:Method>sample string 2</d4p1:Method>
<d4p1:Rel>sample string 3</d4p1:Rel>
<d4p1:Title>sample string 4</d4p1:Title>
<d4p1:Type>sample string 5</d4p1:Type>
</d4p1:Link>
<d4p1:Link>
<d4p1:Href>http://webapihelppage1.com/</d4p1:Href>
<d4p1:Method>sample string 2</d4p1:Method>
<d4p1:Rel>sample string 3</d4p1:Rel>
<d4p1:Title>sample string 4</d4p1:Title>
<d4p1:Type>sample string 5</d4p1:Type>
</d4p1:Link>
</Links>
<Uid>514c2a21-33f6-4942-a3f0-44eec2668d96</Uid>
<UpdatedBy>sample string 3</UpdatedBy>
<Name>sample string 1</Name>
</Portal>
</Country>
<Name>sample string 1</Name>
<Portal>
<DateUpdated>2025-10-27T13:59:07.6624939+00:00</DateUpdated>
<Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
<d3p1:Link>
<d3p1:Href>http://webapihelppage1.com/</d3p1:Href>
<d3p1:Method>sample string 2</d3p1:Method>
<d3p1:Rel>sample string 3</d3p1:Rel>
<d3p1:Title>sample string 4</d3p1:Title>
<d3p1:Type>sample string 5</d3p1:Type>
</d3p1:Link>
</Links>
<Uid>514c2a21-33f6-4942-a3f0-44eec2668d96</Uid>
<UpdatedBy>sample string 3</UpdatedBy>
<Name>sample string 1</Name>
</Portal>
<PostCode>sample string 6</PostCode>
</AgentViewModel>