PUT api/Accounts/{id}
Update Account information.
Properties that are null, or are not passed in are ignored.
Properties that are an empty string will clear the field in CRM.
Possible Service Responses:
200/OK - Account updated successfully and returned in the body of the response.
404/Account Not Found - no contact found for the specified id.
500/Internal Server - unexpected server error, details in the body of the response.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Account Id |
System.String |
Required |
Body Parameters
Account
Altai.Web.Services.Models.AccountName | Description | Type | Additional information |
---|---|---|---|
MemberId | System.String |
None. |
|
Id | System.String |
None. |
|
NumberOfEmployees | System.Int32 |
None. |
|
Name | System.String |
None. |
|
PrimaryContact | Altai.Web.Services.Models.Contact |
None. |
|
Participations | System.Collections.Generic.IEnumerable`1[Altai.Web.Services.Models.Participation] |
None. |
|
MembershipEndDate | System.String |
None. |
|
AddressLine1 | System.String |
None. |
|
AddressLine2 | System.String |
None. |
|
BusinessCounty | System.String |
None. |
|
Municipality | System.String |
None. |
|
City | System.String |
None. |
|
CityLookup | Altai.Web.Services.Models.City |
None. |
|
State | System.String |
None. |
|
Zip | System.String |
None. |
|
Telephone1 | System.String |
None. |
|
StatusCode | System.String |
None. |
|
QAProgramNumber | System.String |
None. |
|
ExcludeFromHL | System.Boolean |
None. |
|
ExcludeFromHLDirectory | System.Boolean |
None. |
|
Base64Image | System.String |
None. |
|
MemberSince | System.String |
None. |
|
AccountLevel | System.String |
None. |
|
linkToProfileView | System.String |
None. |
|
linkToProfileEdit | System.String |
None. |
|
profileImpressions | System.Int32 |
None. |
|
profileClicks | System.Int32 |
None. |
|
profileLeads | System.Int32 |
None. |
Request Formats
application/json, text/json
{ "MemberId": "sample string 1", "Id": "sample string 2", "NumberOfEmployees": 3, "Name": "sample string 4", "PrimaryContact": { "WebCompanyName": "sample string 1", "AddressLine2": "sample string 2", "AddressLine1": "sample string 3", "City": "sample string 4", "Country": "sample string 5", "CountryInfo": { "Id": "sample string 1", "Code": "sample string 2", "Name": "sample string 3" }, "DietaryRestriction": "sample string 6", "Email": "sample string 7", "EmergencyContactName": "sample string 8", "EmergencyContactPhone": "sample string 9", "EmploymentStatus": "sample string 10", "District": { "Id": "0d358073-c39b-4870-a674-1b6ae61be64c", "LogicalName": "sample string 2", "Name": "sample string 3", "KeyAttributes": [], "RowVersion": "sample string 4" }, "FirstName": "sample string 11", "FullName": "sample string 12", "Gender": "sample string 13", "GraduateSchool": "sample string 14", "GraduationYear": "sample string 15", "Industry": "sample string 16", "Id": "sample string 17", "JobTitle": "sample string 18", "Telephone1": "sample string 19", "LastName": "sample string 20", "MemberId": "sample string 21", "OwnerAssociate": "sample string 22", "Password": "sample string 23", "PortalId": "sample string 24", "CanRegisterOthers": true, "ExcludeFromHL": true, "ExcludeFromHLDirectory": true, "PracticeType1": "sample string 28", "School": "sample string 29", "SpecialtyBoardsDiplomatsText": "sample string 30", "State": "sample string 31", "PostalCode": "sample string 32", "UniversityAlumni": "sample string 33", "LicenseNumber": "sample string 34", "Username": "sample string 35", "Base64Image": "sample string 36", "SelectedPosition": { "Id": "0d358073-c39b-4870-a674-1b6ae61be64c", "LogicalName": "sample string 2", "Name": "sample string 3", "KeyAttributes": [], "RowVersion": "sample string 4" }, "Participations": [ { "Id": "sample string 1", "CycleStartDate": "sample string 2", "CycleEndDate": "sample string 3", "StartDate": "sample string 4", "JoinDate": "sample string 5", "EndDate": "sample string 6", "PaidThruDate": "sample string 7", "BillThruDate": "sample string 8", "Status": "sample string 9", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "CurrentInvoice": { "ShoppingCartId": "sample string 1", "BalanceDue": 2.0, "TotalAmount": 3.0, "Number": "sample string 4", "Id": "sample string 5", "Date": "sample string 6", "StatusReason": 7, "BillToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } }, "ShipToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } } }, "ParticipationType": "sample string 10", "WebProductNextCategoryId": "sample string 11", "WebCategoryFilterId": "sample string 12", "AvailableForRenewal": true, "International": true }, { "Id": "sample string 1", "CycleStartDate": "sample string 2", "CycleEndDate": "sample string 3", "StartDate": "sample string 4", "JoinDate": "sample string 5", "EndDate": "sample string 6", "PaidThruDate": "sample string 7", "BillThruDate": "sample string 8", "Status": "sample string 9", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "CurrentInvoice": { "ShoppingCartId": "sample string 1", "BalanceDue": 2.0, "TotalAmount": 3.0, "Number": "sample string 4", "Id": "sample string 5", "Date": "sample string 6", "StatusReason": 7, "BillToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } }, "ShipToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } } }, "ParticipationType": "sample string 10", "WebProductNextCategoryId": "sample string 11", "WebCategoryFilterId": "sample string 12", "AvailableForRenewal": true, "International": true } ], "ContactRoles": [ { "IsWebAdmin": true, "CanRegisterOthers": true, "AdHocRoleName": "sample string 3" }, { "IsWebAdmin": true, "CanRegisterOthers": true, "AdHocRoleName": "sample string 3" } ], "Positions": [ { "Name": "sample string 1", "Id": "sample string 2", "ContactId": "sample string 3", "AccountId": "sample string 4", "PositionTitleId": "sample string 5", "PositionTitle": "sample string 6", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "PortalAdminType": "sample string 7", "StartDate": "sample string 8", "EndDate": "sample string 9" }, { "Name": "sample string 1", "Id": "sample string 2", "ContactId": "sample string 3", "AccountId": "sample string 4", "PositionTitleId": "sample string 5", "PositionTitle": "sample string 6", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "PortalAdminType": "sample string 7", "StartDate": "sample string 8", "EndDate": "sample string 9" } ], "PriceLevelId": "43061c36-e0a1-4b87-85c3-eb3670b5e6bf", "PriceListName": "sample string 37", "IsSiteAdmin": true, "ShipToAddressLine2": "sample string 39", "ShipToEmail": "sample string 40", "ShipToTelephone1": "sample string 41", "ShipToState": "sample string 42", "LastModifiedOn": "2024-11-15T18:29:27.26041+00:00", "ShipToCity": "sample string 43", "ShipToAddressLine1": "sample string 44", "ShipToPostalCode": "sample string 45", "ShipToLastName": "sample string 46", "ShipToCountry": "sample string 47", "ShipToFirstName": "sample string 48", "EligibleToApply": { "aPHR": "2024-11-15T18:29:27.26041+00:00", "aPHRi": "2024-11-15T18:29:27.26041+00:00", "GPHR": "2024-11-15T18:29:27.26041+00:00", "PHR": "2024-11-15T18:29:27.26041+00:00", "PHRca": "2024-11-15T18:29:27.26041+00:00", "PHRi": "2024-11-15T18:29:27.26041+00:00", "SPHR": "2024-11-15T18:29:27.26041+00:00", "SPHRi": "2024-11-15T18:29:27.26041+00:00" }, "Embargo": true, "EmbargoOverride": true, "Preferences": { "Phone": true, "Mail": true, "MarketingEmails": true, "SmsMessaging": true, "HrciNews": true, "HrciAlert": true }, "IndDesignation": "sample string 51", "HLcustomText01": "sample string 52" }, "Participations": [ { "Id": "sample string 1", "CycleStartDate": "sample string 2", "CycleEndDate": "sample string 3", "StartDate": "sample string 4", "JoinDate": "sample string 5", "EndDate": "sample string 6", "PaidThruDate": "sample string 7", "BillThruDate": "sample string 8", "Status": "sample string 9", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "CurrentInvoice": { "ShoppingCartId": "sample string 1", "BalanceDue": 2.0, "TotalAmount": 3.0, "Number": "sample string 4", "Id": "sample string 5", "Date": "sample string 6", "StatusReason": 7, "BillToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } }, "ShipToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } } }, "ParticipationType": "sample string 10", "WebProductNextCategoryId": "sample string 11", "WebCategoryFilterId": "sample string 12", "AvailableForRenewal": true, "International": true }, { "Id": "sample string 1", "CycleStartDate": "sample string 2", "CycleEndDate": "sample string 3", "StartDate": "sample string 4", "JoinDate": "sample string 5", "EndDate": "sample string 6", "PaidThruDate": "sample string 7", "BillThruDate": "sample string 8", "Status": "sample string 9", "Program": { "Id": "sample string 1", "Name": "sample string 2", "ShortName": "sample string 3", "Type": "sample string 4", "ProgramGroup": "sample string 5", "BillingTermLength": 6, "ActivePriceListId": "sample string 7" }, "CurrentInvoice": { "ShoppingCartId": "sample string 1", "BalanceDue": 2.0, "TotalAmount": 3.0, "Number": "sample string 4", "Id": "sample string 5", "Date": "sample string 6", "StatusReason": 7, "BillToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } }, "ShipToAddress": { "Name": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "Telephone": "sample string 5", "Address": { "Id": "sample string 1", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "StateOrProvince": "sample string 5", "PostalCode": "sample string 6", "Country": "sample string 7", "AddressType": "sample string 8" } } }, "ParticipationType": "sample string 10", "WebProductNextCategoryId": "sample string 11", "WebCategoryFilterId": "sample string 12", "AvailableForRenewal": true, "International": true } ], "MembershipEndDate": "sample string 5", "AddressLine1": "sample string 6", "AddressLine2": "sample string 7", "BusinessCounty": "sample string 8", "Municipality": "sample string 9", "City": "sample string 10", "CityLookup": { "Id": "sample string 1", "Name": "sample string 2" }, "State": "sample string 11", "Zip": "sample string 12", "Telephone1": "sample string 13", "StatusCode": "sample string 14", "QAProgramNumber": "sample string 15", "ExcludeFromHL": true, "ExcludeFromHLDirectory": true, "Base64Image": "sample string 18", "MemberSince": "sample string 19", "AccountLevel": "sample string 20", "linkToProfileView": "sample string 21", "linkToProfileEdit": "sample string 22", "profileImpressions": 23, "profileClicks": 24, "profileLeads": 25 }
application/xml
Sample not available.
text/xml
Sample not available.
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | System.String |
None. |
|
Headers | System.Net.Http.Headers.HttpResponseHeaders |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | System.Boolean |
None. |