POST api/resources/save

Request Information

URI Parameters

None.

Body Parameters

ResourceViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

ResourcePageName

string

None.

ResourceKey

string

None.

ResourceValue

string

None.

ResourceCulture

string

None.

ResourceTypeId

integer

None.

ResourceTooltip

string

None.

Placeholder

string

None.

ValidationError

string

None.

PortalId

integer

None.

IsActive

boolean

None.

SoilScreenId

integer

None.

CreatedDateTime

date

None.

CreatedById

integer

None.

UpdatedDateTime

date

None.

UpdatedById

integer

None.

ErrorMessage

Collection of ErrorModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ResourcePageName": "sample string 2",
  "ResourceKey": "sample string 3",
  "ResourceValue": "sample string 4",
  "ResourceCulture": "sample string 5",
  "ResourceTypeId": 6,
  "ResourceTooltip": "sample string 7",
  "Placeholder": "sample string 8",
  "ValidationError": "sample string 9",
  "PortalId": 10,
  "IsActive": true,
  "SoilScreenId": 12,
  "CreatedDateTime": "2020-09-28T02:24:59.4907395-07:00",
  "CreatedById": 14,
  "UpdatedDateTime": "2020-09-28T02:24:59.4907395-07:00",
  "UpdatedById": 16,
  "ErrorMessage": [
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    },
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ResourceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ICAC.SeepSoil.ViewModels">
  <CreatedById>14</CreatedById>
  <CreatedDateTime>2020-09-28T02:24:59.4907395-07:00</CreatedDateTime>
  <ErrorMessage>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
  </ErrorMessage>
  <UpdatedById>16</UpdatedById>
  <UpdatedDateTime>2020-09-28T02:24:59.4907395-07:00</UpdatedDateTime>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Placeholder>sample string 8</Placeholder>
  <PortalId>10</PortalId>
  <ResourceCulture>sample string 5</ResourceCulture>
  <ResourceKey>sample string 3</ResourceKey>
  <ResourcePageName>sample string 2</ResourcePageName>
  <ResourceTooltip>sample string 7</ResourceTooltip>
  <ResourceTypeId>6</ResourceTypeId>
  <ResourceValue>sample string 4</ResourceValue>
  <SoilScreenId>12</SoilScreenId>
  <ValidationError>sample string 9</ValidationError>
</ResourceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.