UAG - Account Notes¶
Note
The note_access_level attribute indicates the user’s access to account-related notes:
none– no access,read– read-only access,write– full access (read and modify).
This value is defined by the note_access setting on the associated Safe.
To change it via API, use the following request:
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://<host>/api/v2/safe/<safe_id> \
-d '{"note_access": "read"}'
For full details, refer to the section Safes.
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Account Note ID. |
|
|
string |
yes |
Immutable. Account ID. |
|
string |
yes |
Text of the note. |
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the AccountNoteModel¶
Request
Method |
|
Path |
|
GET /api/v2/objspec/account_note
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/account_note'
Get Account Notes¶
Request
Method |
|
Path |
|
GET /api/v2/account/<account_id>/note
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
https://10.0.0.1/api/v2/account/8169529724050079749/note
Response
{
"note": "Note content.",
"result": "success"
}
Update Account Note¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
PATCH /api/v2/account/<account_id>/note
Example Request
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.0.0.1/api/v2/account/8169529724050079749/note \
-d '{"note": "Updated note."}'
Response
{
"note": "Updated note.",
"result": "success"
}