create new / update record
| Variable | Name | Type | Format | Usage | Description |
|---|---|---|---|---|---|
| action | Action | string | |||
| body_html | Body html | string | |||
| body_text | Body text | string | |||
| code | code | string | Code of a given record List of allowed values in field (value=>name):
|
||
| create_date | Create Date | string | DATETIME | The date entry was created on | |
| create_user | Create User | string | The username of ABS user who has created an entry | ||
| description | description | string | Description of a given record | ||
| enabled | Enabled | boolean | List of allowed values in field (value=>name):
|
||
| footer_template_code | Footer template code | string | |||
| form_title | form_title | string | Service field | ||
| header_template_code | Header template code | string | |||
| id | id | integer | INT64 | Record's sequence number generated in the system. | |
| modify_date | Modify Date | string | DATETIME | The date entry was last modified on | |
| modify_user | Modify User | string | The username of ABS user who has made last changes to the entry | ||
| state | state | integer | INT64 | Record state for replication | |
| subject | subject | string | Subject | ||
| uid | uid | string | Unique record identifier which is used to distinguish between existing records | ||
| version | version | integer | INT64 | Record version for replication | |
| view_body_html | Body html | string |
{
"id": 2,
"uid": "cc022eb2-2d1f-5c89-7e14-280c5430bef1",
"version": 1508057306,
"state": 0,
"modify_date": "2022-04-05T14:47:20.494",
"modify_user": "jjakubova",
"create_date": "2021-04-19T07:39:26.141",
"create_user": "oizvekovs",
"enabled": true,
"code": "ACCOUNT_BALANCE_CHANGE",
"description": "balance change template",
"subject": "account balance change",
"body_text": "Greetings! Don't worry, be happy! Your Account {ACCOUNT} balance changed for {CURRENCY} {AMOUNT} dated {DATE}. Available Account balance {CURRENCY} {AVAILABLE_BALANCE} . Best regards.",
"header_template_code": "MAIN_HTML_HEADER",
"footer_template_code": "MAIN_HTML_FOOTER"
}
200 - Response with error when status is ERROR
| Variable | Name | Type | Format | Description |
|---|---|---|---|---|
| status | status | string | Request execution status | |
| error_description | Error Description | string | Description of error | |
| error | Error Code | string | Error code | |
| data_type | data_type | string | Type of data | |
| total_records | total_records | string | Total count of records | |
| data | data | object | data of Response |
| Variable | Name | Type | Format | Description |
|---|---|---|---|---|
| status | status | string | Request execution status | |
| error_description | Error Description | string | Description of error | |
| error | Error Code | string | Error code | |
| data_type | data_type | string | Type of data | |
| total_records | total_records | string | Total count of records |
200 - Response successfully when status is OK
| Variable | Name | Type | Format | Description |
|---|---|---|---|---|
| status | status | string | Request execution status | |
| error_description | Error Description | string | Description of error | |
| error | Error Code | string | Error code | |
| data_type | data_type | string | Type of data | |
| total_records | total_records | string | Total count of records | |
| data | data | object | data of Response |
| Variable | Name | Type | Format | Description |
|---|---|---|---|---|
| action | Action | string | ||
| body_html | Body html | string | ||
| body_text | Body text | string | ||
| code | code | string | Code of a given record | |
| create_date | Create Date | string | DATETIME | The date entry was created on |
| create_user | Create User | string | The username of ABS user who has created an entry | |
| description | description | string | Description of a given record | |
| enabled | Enabled | boolean | ||
| footer_template_code | Footer template code | string | ||
| form_title | form_title | string | Service field | |
| header_template_code | Header template code | string | ||
| id | id | integer | INT64 | Record's sequence number generated in the system. |
| modify_date | Modify Date | string | DATETIME | The date entry was last modified on |
| modify_user | Modify User | string | The username of ABS user who has made last changes to the entry | |
| state | state | integer | INT64 | Record state for replication |
| subject | subject | string | Subject | |
| uid | uid | string | Unique record identifier which is used to distinguish between existing records | |
| version | version | integer | INT64 | Record version for replication |
| view_body_html | Body html | string |
{
"enabled": true,
"code": "ACCOUNT_BALANCE_CHANGE",
"description": "balance change template",
"subject": "account balance change",
"body_text": "Greetings! Don't worry, be happy! Your Account {ACCOUNT} balance changed for {CURRENCY} {AMOUNT} dated {DATE}. Available Account balance {CURRENCY} {AVAILABLE_BALANCE} . Best regards.",
"body_html": "
\n
\nGreetings!\n
\n
\nYour Account {ACCOUNT} balance changed for {CURRENCY} {AMOUNT} dated {DATE}. \nAvailable Account balance {CURRENCY} {AVAILABLE_BALANCE} .\n
\n
\nBest regards.\n
\n",
"header_template_code": "MAIN_HTML_HEADER",
"footer_template_code": "MAIN_HTML_FOOTER",
"view_body_html": "
\n
\nGreetings!\n
\n
\nYour Account {ACCOUNT} balance changed for {CURRENCY} {AMOUNT} dated {DATE}. \nAvailable Account balance {CURRENCY} {AVAILABLE_BALANCE} .\n
\n
\nBest regards.\n
\n",
"id": 2
}