PUT api/v2/accounts/{accountId}
Request
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| accountId | integer |
Required |
Body Parameters
AccountUpdate| Name | Description | Type | Additional 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": "2026-02-02T21:10:53.9027525Z",
"ReferenceKey": "sample string 6",
"AccountTypeId": 7,
"PriceListId": 1,
"RegistryValidatorId": 1,
"CultureId": "sample string 8",
"Emails": {
"Inserted": [
{
"Email": "sample string 1",
"EmailTypeId": 2,
"RequiredValue": true
},
{
"Email": "sample string 1",
"EmailTypeId": 2,
"RequiredValue": true
}
],
"Modified": [
{
"Id": 1,
"Email": "sample string 2",
"EmailTypeId": 3,
"RequiredValue": true
},
{
"Id": 1,
"Email": "sample string 2",
"EmailTypeId": 3,
"RequiredValue": true
}
],
"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": "2026-02-02T21:10:53.9027525Z",
"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": "2026-02-02T21:10:53.9027525Z",
"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": "2026-02-02T21:10:53.9027525Z",
"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": "2026-02-02T21:10:53.9027525Z",
"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,
"RequiredValue": true
},
{
"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,
"RequiredValue": true
}
],
"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,
"RequiredValue": true
},
{
"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,
"RequiredValue": true
}
],
"Deleted": [
1,
2
]
},
"AccountAccount": {
"Inserted": [
{
"RelationshipAccountTypeId": 1,
"RelationshipAccountId": 2,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
},
{
"RelationshipAccountTypeId": 1,
"RelationshipAccountId": 2,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
}
],
"Modified": [
{
"Id": 1,
"RelationshipAccountTypeId": 2,
"RelationshipAccountId": 3,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
},
{
"Id": 1,
"RelationshipAccountTypeId": 2,
"RelationshipAccountId": 3,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
}
],
"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":"2026-02-02T21:10:53.9027525Z","ReferenceKey":"sample string 6","AccountTypeId":7,"PriceListId":1,"RegistryValidatorId":1,"CultureId":"sample string 8","Emails":{"Inserted":[{"Email":"sample string 1","EmailTypeId":2,"RequiredValue":true},{"Email":"sample string 1","EmailTypeId":2,"RequiredValue":true}],"Modified":[{"Id":1,"Email":"sample string 2","EmailTypeId":3,"RequiredValue":true},{"Id":1,"Email":"sample string 2","EmailTypeId":3,"RequiredValue":true}],"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":"2026-02-02T21:10:53.9027525Z","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":"2026-02-02T21:10:53.9027525Z","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":"2026-02-02T21:10:53.9027525Z","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":"2026-02-02T21:10:53.9027525Z","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,"RequiredValue":true},{"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,"RequiredValue":true}],"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,"RequiredValue":true},{"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,"RequiredValue":true}],"Deleted":[1,2]},"AccountAccount":{"Inserted":[{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true},{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true}],"Modified":[{"Id":1,"RelationshipAccountTypeId":2,"RelationshipAccountId":3,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true},{"Id":1,"RelationshipAccountTypeId":2,"RelationshipAccountId":3,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true}],"Deleted":[1,2]}}
Response
IHttpActionResultResponse Format
application/json, text/json, text/html
Sample:
Sample not available.