Account Notes¶
Account notes related endpoints enable managing messages displayed to users in the User Portal (Access Gateway).
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only; protected. Account note identifier. |
|
|
string |
yes |
Immutable. ID of the account to which the note is assigned. Requires rights to perform operations on the |
|
string |
yes |
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 |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get a Note From Account¶
Request
Method |
|
Path |
|
Example Request
GET /api/v2/account/<id>/note
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/account/9124292845052624908/note'
Response
{
"note": "Note content.",
"result": "success"
}
Assign Note to an Account¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/account/<id>/note
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/account/9124292845052624908/note' \
-d'{"note":"Note content."}'
Response
{
"result": "success"
}
Modify a Note¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/account/<id>/note
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/account/9124292845052624908/note' \
-d'{"note":"Note modified content."}'
Response
{
"result": "success"
}
Deleting a Note¶
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/account/<id>/note
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/account/9124292845052624908/note'
Response
{
"result": "success"
}