Update an account
Changes the fields you send and leaves the rest as they are; there is no PUT. An id in the body that differs from the one in the URL is refused with code 2002.
Request
- Base URLhttps://us-east.api.coevera.com/api/v100/rest/spaces/your_space_id
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Id of the Account record to update.
Query parameters
Bit mask that relaxes validation on this write. 0 (the default) validates everything. Bits: 2 skip unchanged fields, 4 skip admin-defined validations, 8 allow read-only fields, 16 skip relation checks, 32 skip value checks, 64 skip invalid recalculations, 128 skip step-checklist gates, 256 add conditional field requirements, 512 skip uniqueness checks. Add bits together (20 = 4 + 16); member names and comma lists such as 4,16 work too. A value with an internal-only bit is refused with HTTP 400, code 117.
Request body
Example request
{
"created": "2019-01-01T00:00:00",
"account_class": 1,
"account_type_id": "01234567-abcd-dcba-ffff-000000000000",
"address": "string",
"city": "string",
"comments": "string",
"country": "string",
"currency_exchange_rates_list_id": "01234567-abcd-dcba-ffff-000000000000",
"customer_type_id": "01234567-abcd-dcba-ffff-000000000000",
"email1": "string",
"email2": "string",
"email3": "string",
"email4": "string",
"email5": "string",
"home_page": "string",
"industry_id": "01234567-abcd-dcba-ffff-000000000000",
"last_ai_account_hierarchy_applied": "2019-01-01T00:00:00",
"last_ai_org_chart_applied": "2019-01-01T00:00:00",
"name": "string",
"owner_id": "01234567-abcd-dcba-ffff-000000000000",
"parent_account_id": "01234567-abcd-dcba-ffff-000000000000",
"parent_account_relation_type_id": "01234567-abcd-dcba-ffff-000000000000",
"phone1": "string",
"phone2": "string",
"phone3": "string",
"phone4": "string",
"phone5": "string",
"picture_id": "01234567-abcd-dcba-ffff-000000000000",
"quick_parent_account_name": "string",
"state_province": "string",
"unit_id": "01234567-abcd-dcba-ffff-000000000000",
"zip_code": "string",
"revision": 1
}Response
The changed Account record.
Example response
{
"success": true,
"data": {
"id": "01234567-abcd-dcba-ffff-000000000000",
"modified": "2019-01-01T00:00:00",
"created": "2019-01-01T00:00:00",
"account_class": 1,
"account_type_id": "01234567-abcd-dcba-ffff-000000000000",
"address": "string",
"city": "string",
"comments": "string",
"country": "string",
"currency_exchange_rates_list_id": "01234567-abcd-dcba-ffff-000000000000",
"customer_type_id": "01234567-abcd-dcba-ffff-000000000000",
"email1": "string",
"email2": "string",
"email3": "string",
"email4": "string",
"email5": "string",
"health_category": "01234567-abcd-dcba-ffff-000000000000",
"health_status": 1,
"home_page": "string",
"industry_id": "01234567-abcd-dcba-ffff-000000000000",
"last_ai_account_hierarchy_applied": "2019-01-01T00:00:00",
"last_ai_org_chart_applied": "2019-01-01T00:00:00",
"name": "string",
"owner_id": "01234567-abcd-dcba-ffff-000000000000",
"parent_account_id": "01234567-abcd-dcba-ffff-000000000000",
"parent_account_relation_type_id": "01234567-abcd-dcba-ffff-000000000000",
"phone1": "string",
"phone2": "string",
"phone3": "string",
"phone4": "string",
"phone5": "string",
"picture_id": "01234567-abcd-dcba-ffff-000000000000",
"quick_parent_account_name": "string",
"state_province": "string",
"unit_id": "01234567-abcd-dcba-ffff-000000000000",
"zip_code": "string",
"revision": 1,
"formatted_name": "string",
"modified_by_user": "2019-01-01T00:00:00"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.