POST api/alerts/InsertAlert?token={token}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
Required |
Body Parameters
Alert| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| contractId | integer |
None. |
|
| alert1 | boolean |
None. |
|
| dateSend1 | date |
None. |
|
| alert2 | boolean |
None. |
|
| dateSend2 | date |
None. |
|
| alert3 | boolean |
None. |
|
| dateSend3 | date |
None. |
|
| alert4 | boolean |
None. |
|
| dateSend4 | date |
None. |
|
| active | boolean |
None. |
|
| dateSend5 | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"contractId": 2,
"alert1": true,
"dateSend1": "2025-12-13T11:11:41.3725245-03:00",
"alert2": true,
"dateSend2": "2025-12-13T11:11:41.3725245-03:00",
"alert3": true,
"dateSend3": "2025-12-13T11:11:41.3725245-03:00",
"alert4": true,
"dateSend4": "2025-12-13T11:11:41.3725245-03:00",
"active": true,
"dateSend5": "2025-12-13T11:11:41.3725245-03:00"
}
application/xml, text/xml
Sample:
<Alert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models"> <active>true</active> <alert1>true</alert1> <alert2>true</alert2> <alert3>true</alert3> <alert4>true</alert4> <contractId>2</contractId> <dateSend1>2025-12-13T11:11:41.3725245-03:00</dateSend1> <dateSend2>2025-12-13T11:11:41.3725245-03:00</dateSend2> <dateSend3>2025-12-13T11:11:41.3725245-03:00</dateSend3> <dateSend4>2025-12-13T11:11:41.3725245-03:00</dateSend4> <dateSend5>2025-12-13T11:11:41.3725245-03:00</dateSend5> <id>1</id> </Alert>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>