PUT associations({associationId})/News({itemId})

Method to update a news release

Request Information

Parameters

NameDescriptionAdditional information
associationId
association identifier

Define this parameter in the request URI.

itemId
item identifier

Define this parameter in the request URI.

item
New news data

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-04-25T10:28:12.9285955-05:00",
  "StartDate": "2024-04-25T10:28:12.9285955-05:00",
  "EndDate": "2024-04-25T10:28:12.9285955-05: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-04-25T10:28:12.9285955-05:00</DisplayReleaseDate>
  <EndDate>2024-04-25T10:28:12.9285955-05:00</EndDate>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <MemberId>1</MemberId>
  <Published>true</Published>
  <Slug>sample string 5</Slug>
  <StartDate>2024-04-25T10:28:12.9285955-05: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

Updated 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-04-25T10:28:12.9285955-05:00",
  "StartDate": "2024-04-25T10:28:12.9285955-05:00",
  "EndDate": "2024-04-25T10:28:12.9285955-05: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-04-25T10:28:12.9285955-05:00</DisplayReleaseDate>
  <EndDate>2024-04-25T10:28:12.9285955-05:00</EndDate>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <MemberId>1</MemberId>
  <Published>true</Published>
  <Slug>sample string 5</Slug>
  <StartDate>2024-04-25T10:28:12.9285955-05: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>