PUT api/resource

Request Information

URI Parameters

None.

Body Parameters

ResourceModel
NameDescriptionTypeAdditional information
ResourceId

integer

None.

Title

string

Required

Max length: 100

ResourceContent

string

Required

Status

string

Required

Max length: 20

ResourceSectionId

integer

Required

ResourceGroupId

integer

None.

FileId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ResourceId": 1,
  "Title": "sample string 1",
  "ResourceContent": "sample string 2",
  "Status": "sample string 3",
  "ResourceSectionId": 4,
  "ResourceGroupId": 1,
  "FileId": 1
}

application/xml, text/xml

Sample:
<ResourceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models.Resources">
  <FileId>1</FileId>
  <ResourceContent>sample string 2</ResourceContent>
  <ResourceGroupId>1</ResourceGroupId>
  <ResourceId>1</ResourceId>
  <ResourceSectionId>4</ResourceSectionId>
  <Status>sample string 3</Status>
  <Title>sample string 1</Title>
</ResourceModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.