PUT api/Resources

Request Information

URI Parameters

None.

Body Parameters

ResourceItemDTO
NameDescriptionTypeAdditional information
ContentItemId

integer

None.

Body

string

None.

DateCreatedUTC

string

None.

ContentDescription

string

None.

IsPublished

boolean

None.

LastModifiedUTC

string

None.

RemoteLink

string

None.

PublicationDateUTC

string

None.

Title

string

None.

NestRemoteContent

boolean

None.

VersionId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ContentItemId": 1,
  "Body": "sample string 1",
  "DateCreatedUTC": "sample string 2",
  "ContentDescription": "sample string 3",
  "IsPublished": true,
  "LastModifiedUTC": "sample string 5",
  "RemoteLink": "sample string 6",
  "PublicationDateUTC": "sample string 7",
  "Title": "sample string 8",
  "NestRemoteContent": true,
  "VersionId": "sample string 10"
}

application/xml, text/xml

Sample:
<ResourceItemDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bulletin.Model.DTO">
  <Body>sample string 1</Body>
  <ContentDescription>sample string 3</ContentDescription>
  <ContentItemId>1</ContentItemId>
  <DateCreatedUTC>sample string 2</DateCreatedUTC>
  <IsPublished>true</IsPublished>
  <LastModifiedUTC>sample string 5</LastModifiedUTC>
  <NestRemoteContent>true</NestRemoteContent>
  <PublicationDateUTC>sample string 7</PublicationDateUTC>
  <RemoteLink>sample string 6</RemoteLink>
  <Title>sample string 8</Title>
  <VersionId>sample string 10</VersionId>
</ResourceItemDTO>

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 'ResourceItemDTO'.

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.