PUT api/v2/accounts/{accountId}

Request

URI Parameters

NameDescriptionTypeAdditional information
accountId

integer

Required

Body Parameters

AccountUpdate
NameDescriptionTypeAdditional information
Id

integer

Identification

string

Complement

string

Color

string

Active

boolean

ActivationUserId

integer

ActivationDateTime

date

ReferenceKey

string

AccountTypeId

integer

PriceListId

integer

RegistryValidatorId

integer

CultureId

string

Emails

DeltaOfAccountEmailNewAndAccountEmailUpdate

Infos

DeltaOfAccountInfoNewAndAccountInfoUpdate

Addresses

DeltaOfAccountAddressNewAndAccountAddressUpdate

AccountAccount

DeltaOfAccountAccountNewAndAccountAccountUpdate

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Identification": "sample string 2",
  "Complement": "sample string 3",
  "Color": "sample string 4",
  "Active": true,
  "ActivationUserId": 1,
  "ActivationDateTime": "2025-08-04T18:39:45.2733658Z",
  "ReferenceKey": "sample string 6",
  "AccountTypeId": 7,
  "PriceListId": 1,
  "RegistryValidatorId": 1,
  "CultureId": "sample string 8",
  "Emails": {
    "Inserted": [
      {
        "Email": "sample string 1",
        "EmailTypeId": 2
      },
      {
        "Email": "sample string 1",
        "EmailTypeId": 2
      }
    ],
    "Modified": [
      {
        "Id": 1,
        "Email": "sample string 2",
        "EmailTypeId": 3
      },
      {
        "Id": 1,
        "Email": "sample string 2",
        "EmailTypeId": 3
      }
    ],
    "Deleted": [
      1,
      2
    ]
  },
  "Infos": {
    "Inserted": [
      {
        "InfoId": 1,
        "InfoTypeId": 2,
        "MeasurementUnitId": 1,
        "DisplayValue": "sample string 3",
        "ForceScale": 1,
        "ForceSignifDigits": 1,
        "ValueText": "sample string 4",
        "ValueInteger": 1,
        "ValueFloat": 1.1,
        "ValueDateTime": "2025-08-04T18:39:45.2733658Z",
        "ValueBoolean": true,
        "ValueAccountId": 1,
        "DependentInfoId": 1,
        "Inherited": true,
        "RequiredValue": true,
        "Order": 7
      },
      {
        "InfoId": 1,
        "InfoTypeId": 2,
        "MeasurementUnitId": 1,
        "DisplayValue": "sample string 3",
        "ForceScale": 1,
        "ForceSignifDigits": 1,
        "ValueText": "sample string 4",
        "ValueInteger": 1,
        "ValueFloat": 1.1,
        "ValueDateTime": "2025-08-04T18:39:45.2733658Z",
        "ValueBoolean": true,
        "ValueAccountId": 1,
        "DependentInfoId": 1,
        "Inherited": true,
        "RequiredValue": true,
        "Order": 7
      }
    ],
    "Modified": [
      {
        "Id": 1,
        "InfoId": 2,
        "InfoTypeId": 3,
        "MeasurementUnitId": 1,
        "DisplayValue": "sample string 4",
        "ForceScale": 1,
        "ForceSignifDigits": 1,
        "ValueText": "sample string 5",
        "ValueInteger": 1,
        "ValueFloat": 1.1,
        "ValueDateTime": "2025-08-04T18:39:45.2733658Z",
        "ValueBoolean": true,
        "ValueAccountId": 1,
        "DependentInfoId": 1,
        "Inherited": true,
        "RequiredValue": true,
        "Order": 8
      },
      {
        "Id": 1,
        "InfoId": 2,
        "InfoTypeId": 3,
        "MeasurementUnitId": 1,
        "DisplayValue": "sample string 4",
        "ForceScale": 1,
        "ForceSignifDigits": 1,
        "ValueText": "sample string 5",
        "ValueInteger": 1,
        "ValueFloat": 1.1,
        "ValueDateTime": "2025-08-04T18:39:45.2733658Z",
        "ValueBoolean": true,
        "ValueAccountId": 1,
        "DependentInfoId": 1,
        "Inherited": true,
        "RequiredValue": true,
        "Order": 8
      }
    ],
    "Deleted": [
      1,
      2
    ]
  },
  "Addresses": {
    "Inserted": [
      {
        "District": "sample string 1",
        "ZipCode": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "Latitude": 1.1,
        "Longitude": 1.1,
        "Notes": "sample string 5",
        "AddressTypeId": 6,
        "CityId": 7
      },
      {
        "District": "sample string 1",
        "ZipCode": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "Latitude": 1.1,
        "Longitude": 1.1,
        "Notes": "sample string 5",
        "AddressTypeId": 6,
        "CityId": 7
      }
    ],
    "Modified": [
      {
        "Id": 1,
        "District": "sample string 2",
        "ZipCode": "sample string 3",
        "Address1": "sample string 4",
        "Address2": "sample string 5",
        "Latitude": 1.1,
        "Longitude": 1.1,
        "Notes": "sample string 6",
        "AddressTypeId": 7,
        "CityId": 8
      },
      {
        "Id": 1,
        "District": "sample string 2",
        "ZipCode": "sample string 3",
        "Address1": "sample string 4",
        "Address2": "sample string 5",
        "Latitude": 1.1,
        "Longitude": 1.1,
        "Notes": "sample string 6",
        "AddressTypeId": 7,
        "CityId": 8
      }
    ],
    "Deleted": [
      1,
      2
    ]
  },
  "AccountAccount": {
    "Inserted": [
      {
        "RelationshipAccountTypeId": 1,
        "RelationshipAccountId": 2,
        "Active": true,
        "AccountPrimaryId": 1,
        "AccountSecondaryId": 1
      },
      {
        "RelationshipAccountTypeId": 1,
        "RelationshipAccountId": 2,
        "Active": true,
        "AccountPrimaryId": 1,
        "AccountSecondaryId": 1
      }
    ],
    "Modified": [
      {
        "Id": 1,
        "RelationshipAccountTypeId": 2,
        "RelationshipAccountId": 3,
        "Active": true,
        "AccountPrimaryId": 1,
        "AccountSecondaryId": 1
      },
      {
        "Id": 1,
        "RelationshipAccountTypeId": 2,
        "RelationshipAccountId": 3,
        "Active": true,
        "AccountPrimaryId": 1,
        "AccountSecondaryId": 1
      }
    ],
    "Deleted": [
      1,
      2
    ]
  }
}

text/html

Sample:
{"Id":1,"Identification":"sample string 2","Complement":"sample string 3","Color":"sample string 4","Active":true,"ActivationUserId":1,"ActivationDateTime":"2025-08-04T18:39:45.2733658Z","ReferenceKey":"sample string 6","AccountTypeId":7,"PriceListId":1,"RegistryValidatorId":1,"CultureId":"sample string 8","Emails":{"Inserted":[{"Email":"sample string 1","EmailTypeId":2},{"Email":"sample string 1","EmailTypeId":2}],"Modified":[{"Id":1,"Email":"sample string 2","EmailTypeId":3},{"Id":1,"Email":"sample string 2","EmailTypeId":3}],"Deleted":[1,2]},"Infos":{"Inserted":[{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:45.2733658Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7},{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:45.2733658Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7}],"Modified":[{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:45.2733658Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8},{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:45.2733658Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8}],"Deleted":[1,2]},"Addresses":{"Inserted":[{"District":"sample string 1","ZipCode":"sample string 2","Address1":"sample string 3","Address2":"sample string 4","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 5","AddressTypeId":6,"CityId":7},{"District":"sample string 1","ZipCode":"sample string 2","Address1":"sample string 3","Address2":"sample string 4","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 5","AddressTypeId":6,"CityId":7}],"Modified":[{"Id":1,"District":"sample string 2","ZipCode":"sample string 3","Address1":"sample string 4","Address2":"sample string 5","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 6","AddressTypeId":7,"CityId":8},{"Id":1,"District":"sample string 2","ZipCode":"sample string 3","Address1":"sample string 4","Address2":"sample string 5","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 6","AddressTypeId":7,"CityId":8}],"Deleted":[1,2]},"AccountAccount":{"Inserted":[{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1},{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1}],"Modified":[{"Id":1,"RelationshipAccountTypeId":2,"RelationshipAccountId":3,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1},{"Id":1,"RelationshipAccountTypeId":2,"RelationshipAccountId":3,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1}],"Deleted":[1,2]}}

Response

IHttpActionResult

Response Format

application/json, text/json, text/html

Sample:

Sample not available.