POST associations({associationId})/News

Method to add a news release

Request Information

Parameters

NameDescriptionAdditional information
associationId
No documentation available.

Define this parameter in the request URI.

item
News item to add

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "ImageUrl": "sample string 3",
  "BodyText": "sample string 4",
  "DisplayReleaseDate": "2024-11-21T13:05:17.7453964-06:00",
  "StartDate": "2024-11-21T13:05:17.7453964-06:00",
  "EndDate": "2024-11-21T13:05:17.7453964-06:00",
  "Types": [
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    },
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    },
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    }
  ],
  "Status": 64,
  "Approved": true,
  "Published": true,
  "MemberId": 1,
  "Slug": "sample string 5"
}

application/xml, text/xml

Sample:
<NewsReleaseResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources">
  <Approved>true</Approved>
  <BodyText>sample string 4</BodyText>
  <DisplayReleaseDate>2024-11-21T13:05:17.7453964-06:00</DisplayReleaseDate>
  <EndDate>2024-11-21T13:05:17.7453964-06:00</EndDate>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <MemberId>1</MemberId>
  <Published>true</Published>
  <Slug>sample string 5</Slug>
  <StartDate>2024-11-21T13:05:17.7453964-06:00</StartDate>
  <Status>64</Status>
  <Title>sample string 2</Title>
  <Types>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
  </Types>
</NewsReleaseResource>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

New news release

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "ImageUrl": "sample string 3",
  "BodyText": "sample string 4",
  "DisplayReleaseDate": "2024-11-21T13:05:17.7610189-06:00",
  "StartDate": "2024-11-21T13:05:17.7610189-06:00",
  "EndDate": "2024-11-21T13:05:17.7610189-06:00",
  "Types": [
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    },
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    },
    {
      "TypeName": "sample string 1",
      "TypeId": 1
    }
  ],
  "Status": 64,
  "Approved": true,
  "Published": true,
  "MemberId": 1,
  "Slug": "sample string 5"
}

application/xml, text/xml

Sample:
<NewsReleaseResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources">
  <Approved>true</Approved>
  <BodyText>sample string 4</BodyText>
  <DisplayReleaseDate>2024-11-21T13:05:17.7610189-06:00</DisplayReleaseDate>
  <EndDate>2024-11-21T13:05:17.7610189-06:00</EndDate>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <MemberId>1</MemberId>
  <Published>true</Published>
  <Slug>sample string 5</Slug>
  <StartDate>2024-11-21T13:05:17.7610189-06:00</StartDate>
  <Status>64</Status>
  <Title>sample string 2</Title>
  <Types>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
    <NewsReleaseTypeResource>
      <TypeId>1</TypeId>
      <TypeName>sample string 1</TypeName>
    </NewsReleaseTypeResource>
  </Types>
</NewsReleaseResource>