POST api/Alerts/SaveOrUpdateAlert

Request Information

URI Parameters

None.

Body Parameters

SaveUpdateAlertsRequestVM
NameDescriptionTypeAdditional information
AdminUserId

string

Required

Id

string

None.

Type

AlertTypes

Required

Message

string

Required

StartDate

date

Required

EndDate

date

None.

StartTime

DateTimeViewModel

None.

EndTime

DateTimeViewModel

None.

Button

AlertButttonVM

None.

Request Formats

application/json, text/json

Sample:
{
  "AdminUserId": "sample string 1",
  "Id": "sample string 2",
  "Type": "System",
  "Message": "sample string 3",
  "StartDate": "2024-11-20T13:10:30.2101935+00:00",
  "EndDate": "2024-11-20T13:10:30.2101935+00:00",
  "StartTime": {
    "Date": "2024-11-20T13:10:30.2101935+00:00",
    "Hour": 1,
    "Minute": 2,
    "AM": true
  },
  "EndTime": {
    "Date": "2024-11-20T13:10:30.2101935+00:00",
    "Hour": 1,
    "Minute": 2,
    "AM": true
  },
  "Button": {
    "Text": "sample string 1",
    "Color": {
      "HexValue": "sample string 1",
      "RgbValue": {
        "R": "sample string 1",
        "G": "sample string 2",
        "B": "sample string 3",
        "A": "sample string 4"
      },
      "Gradient": "sample string 2"
    },
    "URL": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<SaveUpdateAlertsRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.AlertsAndNotifications">
  <Button xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.DTO_Models.AlertsAndNotifications">
    <d2p1:Color xmlns:d3p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Elements">
      <d3p1:Gradient>sample string 2</d3p1:Gradient>
      <d3p1:HexValue>sample string 1</d3p1:HexValue>
      <d3p1:RgbValue>
        <d3p1:A>sample string 4</d3p1:A>
        <d3p1:B>sample string 3</d3p1:B>
        <d3p1:G>sample string 2</d3p1:G>
        <d3p1:R>sample string 1</d3p1:R>
      </d3p1:RgbValue>
    </d2p1:Color>
    <d2p1:Text>sample string 1</d2p1:Text>
    <d2p1:URL>sample string 2</d2p1:URL>
  </Button>
  <EndDate>2024-11-20T13:10:30.2101935+00:00</EndDate>
  <EndTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommonModel">
    <d2p1:AM>true</d2p1:AM>
    <d2p1:Date>2024-11-20T13:10:30.2101935+00:00</d2p1:Date>
    <d2p1:Hour>1</d2p1:Hour>
    <d2p1:Minute>2</d2p1:Minute>
  </EndTime>
  <Id>sample string 2</Id>
  <Message>sample string 3</Message>
  <StartDate>2024-11-20T13:10:30.2101935+00:00</StartDate>
  <StartTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommonModel">
    <d2p1:AM>true</d2p1:AM>
    <d2p1:Date>2024-11-20T13:10:30.2101935+00:00</d2p1:Date>
    <d2p1:Hour>1</d2p1:Hour>
    <d2p1:Minute>2</d2p1:Minute>
  </StartTime>
  <Type>System</Type>
  <AdminUserId>sample string 1</AdminUserId>
</SaveUpdateAlertsRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.