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

NameDescriptionTypeAdditional information
id

Account Id

System.String

Required

Body Parameters

Account

Altai.Web.Services.Models.Account
NameDescriptionTypeAdditional 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.

Request Formats

application/json, text/json

Sample:
{
  "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",
    "DietaryRestriction": "sample string 6",
    "Email": "sample string 7",
    "EmergencyContactName": "sample string 8",
    "EmergencyContactPhone": "sample string 9",
    "EmploymentStatus": "sample string 10",
    "District": {
      "Id": "65865c9d-c39d-4a08-a373-ce1aa5820780",
      "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": "65865c9d-c39d-4a08-a373-ce1aa5820780",
      "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",
        "EndDate": "sample string 5",
        "PaidThruDate": "sample string 6",
        "BillThruDate": "sample string 7",
        "Status": "sample string 8",
        "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",
          "MinExperienceRequired": 8,
          "MinGlobalExperienceRequired": 9
        },
        "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 9",
        "WebProductNextCategoryId": "sample string 10",
        "WebCategoryFilterId": "sample string 11",
        "AvailableForRenewal": true,
        "International": true
      },
      {
        "Id": "sample string 1",
        "CycleStartDate": "sample string 2",
        "CycleEndDate": "sample string 3",
        "StartDate": "sample string 4",
        "EndDate": "sample string 5",
        "PaidThruDate": "sample string 6",
        "BillThruDate": "sample string 7",
        "Status": "sample string 8",
        "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",
          "MinExperienceRequired": 8,
          "MinGlobalExperienceRequired": 9
        },
        "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 9",
        "WebProductNextCategoryId": "sample string 10",
        "WebCategoryFilterId": "sample string 11",
        "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",
          "MinExperienceRequired": 8,
          "MinGlobalExperienceRequired": 9
        },
        "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",
          "MinExperienceRequired": 8,
          "MinGlobalExperienceRequired": 9
        },
        "PortalAdminType": "sample string 7",
        "StartDate": "sample string 8",
        "EndDate": "sample string 9"
      }
    ],
    "PriceLevelId": "221ca929-2387-45b0-b34a-f58b408aa028",
    "PriceListName": "sample string 37",
    "IsSiteAdmin": true,
    "ShipToAddressLine2": "sample string 39",
    "ShipToEmail": "sample string 40",
    "ShipToTelephone1": "sample string 41",
    "ShipToState": "sample string 42",
    "ShipToCity": "sample string 43",
    "ShipToAddressLine1": "sample string 44",
    "ShipToPostalCode": "sample string 45",
    "ShipToLastName": "sample string 46",
    "ShipToCountry": "sample string 47",
    "ShipToFirstName": "sample string 48"
  },
  "Participations": [
    {
      "Id": "sample string 1",
      "CycleStartDate": "sample string 2",
      "CycleEndDate": "sample string 3",
      "StartDate": "sample string 4",
      "EndDate": "sample string 5",
      "PaidThruDate": "sample string 6",
      "BillThruDate": "sample string 7",
      "Status": "sample string 8",
      "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",
        "MinExperienceRequired": 8,
        "MinGlobalExperienceRequired": 9
      },
      "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 9",
      "WebProductNextCategoryId": "sample string 10",
      "WebCategoryFilterId": "sample string 11",
      "AvailableForRenewal": true,
      "International": true
    },
    {
      "Id": "sample string 1",
      "CycleStartDate": "sample string 2",
      "CycleEndDate": "sample string 3",
      "StartDate": "sample string 4",
      "EndDate": "sample string 5",
      "PaidThruDate": "sample string 6",
      "BillThruDate": "sample string 7",
      "Status": "sample string 8",
      "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",
        "MinExperienceRequired": 8,
        "MinGlobalExperienceRequired": 9
      },
      "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 9",
      "WebProductNextCategoryId": "sample string 10",
      "WebCategoryFilterId": "sample string 11",
      "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"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional 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.