POST api/Announcement/Post

Request Information

URI Parameters

None.

Body Parameters

AnnouncementVM
NameDescriptionTypeAdditional information
AnnouncementId

integer

None.

Announcement

string

None.

Status

boolean

None.

CreatedOn

date

None.

CreatedBy

integer

None.

PushNotification

boolean

None.

Attachment1

string

None.

Attachment2

string

None.

Attachment3

string

None.

ParentId

integer

None.

SubGroupIds

string

None.

ObjectState

State

None.

Request Formats

application/json, text/json

Sample:
{
  "AnnouncementId": 1,
  "Announcement": "sample string 2",
  "Status": true,
  "CreatedOn": "2018-11-16T21:08:58.3187633+00:00",
  "CreatedBy": 5,
  "PushNotification": true,
  "Attachment1": "sample string 7",
  "Attachment2": "sample string 8",
  "Attachment3": "sample string 9",
  "ParentId": 10,
  "SubGroupIds": "sample string 11",
  "ObjectState": 0
}

application/xml, text/xml

Sample:
<AnnouncementVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InstantAppAPI.ViewModels">
  <Announcement>sample string 2</Announcement>
  <AnnouncementId>1</AnnouncementId>
  <Attachment1>sample string 7</Attachment1>
  <Attachment2>sample string 8</Attachment2>
  <Attachment3>sample string 9</Attachment3>
  <CreatedBy>5</CreatedBy>
  <CreatedOn>2018-11-16T21:08:58.3187633+00:00</CreatedOn>
  <ObjectState>Unchanged</ObjectState>
  <ParentId>10</ParentId>
  <PushNotification>true</PushNotification>
  <Status>true</Status>
  <SubGroupIds>sample string 11</SubGroupIds>
</AnnouncementVM>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AnnouncementVM'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.