PUT api/Account/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
AccountRequestName | Description | Type | Additional information |
---|---|---|---|
Account | Account |
None. |
Request Formats
application/json, text/json
Sample:
{ "Account": { "Id": "b1e891ec-c837-4a92-b572-f5f5413ca26c", "Name": "sample string 2", "Acronym": "sample string 3", "Number": "sample string 4", "DefaultPriceLevel": "sample string 5", "Member": true, "AddressName": "sample string 7", "Address1": "sample string 8", "Address2": "sample string 9", "Address3": "sample string 10", "City": "sample string 11", "State": "sample string 12", "PostalCode": "sample string 13", "Country": "sample string 14", "MainPhone": "sample string 15", "Fax": "sample string 16", "Email": "sample string 17", "WebSite": "sample string 18", "Facebook": "sample string 19", "Twitter": "sample string 20", "LinkedIn": "sample string 21", "Instgram": "sample string 22", "YouTube": "sample string 23", "PrimaryContact": { "Id": "af5716ed-4cb4-4e60-9c91-318918554848", "Number": "sample string 2", "Name": "sample string 3" }, "Custom": { "Attribute": [ { "Type": 0, "Key": "sample string 1", "Value": "sample string 2", "FormattedValue": "sample string 3" }, { "Type": 0, "Key": "sample string 1", "Value": "sample string 2", "FormattedValue": "sample string 3" } ] } } }
application/xml, text/xml
Sample:
<AccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Account"> <Account> <Acronym>sample string 3</Acronym> <Address1>sample string 8</Address1> <Address2>sample string 9</Address2> <Address3>sample string 10</Address3> <AddressName>sample string 7</AddressName> <City>sample string 11</City> <Country>sample string 14</Country> <Custom> <Attribute xmlns:d4p1="http://schemas.datacontract.org/2004/07/Protech.UX.API.CRMEntity"> <d4p1:Attribute> <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Type>text</d4p1:Type> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:Attribute> <d4p1:Attribute> <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Type>text</d4p1:Type> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:Attribute> </Attribute> </Custom> <DefaultPriceLevel>sample string 5</DefaultPriceLevel> <Email>sample string 17</Email> <Facebook>sample string 19</Facebook> <Fax>sample string 16</Fax> <Id>b1e891ec-c837-4a92-b572-f5f5413ca26c</Id> <Instgram>sample string 22</Instgram> <LinkedIn>sample string 21</LinkedIn> <MainPhone>sample string 15</MainPhone> <Member>true</Member> <Name>sample string 2</Name> <Number>sample string 4</Number> <PostalCode>sample string 13</PostalCode> <PrimaryContact> <Id>af5716ed-4cb4-4e60-9c91-318918554848</Id> <Name>sample string 3</Name> <Number>sample string 2</Number> </PrimaryContact> <State>sample string 12</State> <Twitter>sample string 20</Twitter> <WebSite>sample string 18</WebSite> <YouTube>sample string 23</YouTube> </Account> </AccountRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponseName | Description | Type | Additional information |
---|---|---|---|
Status | Status |
None. |
|
Id | globally unique identifier |
None. |
|
Description | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 0, "Id": "4c757eff-04c7-4102-bd94-47b7520e2a4d", "Description": "sample string 2" }
application/xml, text/xml
Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Response"> <Description>sample string 2</Description> <Id>4c757eff-04c7-4102-bd94-47b7520e2a4d</Id> <Status>Success</Status> </APIResponse>