# Update account

This endpoint adds, updates or removes the "resource_activity_log" property.

Method Path Operation*
PATCH /account update_account

*

In order for a user to perform the "update_account" operation, the "update_account" permission must be included in the list of allowed actions in the statement of the user's role.

# Request

Parameter Type In Description
resource_access_log
required
dictionary body
Dictionary defining the Resource Access Log tables configured for the account. The key is a Rule, the value is a dictionary with Resource Access Log table names (keys) and their (optional) "dimensions" attributes.
Attribute Type In Description
dimensions dictionary body Key-value pairs:
- key: name of the dimension under which the Resource Access Log entry is to be stored.
- value: Template for the value of the dimension.

*

If the "resource_access_log" field with attributes is provided in the request body, the "resource_access_log" field from the request body will replace the current "resource_access_log" field.

If no attributes are provided in the request body of "resource_access_log" ("resource_access_log": {}), all attributes from the current "resource_access_log" will be removed. The response will return an empty dictionary ("resource_access_log": {}).

If "resource_access_log" with the value null is provided in the request body, all attributes from the current "resource_access_log" will be removed. The response will not return the "resource_access_log" field.
If the request body does not contain "resource_access_log", no changes will be made to the "resource_access_log" field.

# Response

Attribute Type Description
uuid string Account UUID.
created_ts timestamp Time at which the account was created. Measured in seconds (to three decimal places) that have elapsed since the Unix epoch(opens new window).
updated_ts timestamp Time at which the account configuration was last updated. Measured in seconds (to three decimal places) that have elapsed since the Unix epoch(opens new window).
resource_access_log dictionary
Dictionary defining the Resource Access Log tables configured for the account. The key is a Rule, the value is a dictionary with Resource Access Log table names (keys) and their (optional) "dimensions" attributes.
Attribute Type In Description
dimensions dictionary body Key-value pairs:
- key: name of the dimension under which the Resource Access Log entry is to be stored.
- value: Template for the value of the dimension.

# Status codes

Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status codes section.

Was this article helpful?