POST api/office/update

Request Information

URI Parameters

None.

Body Parameters

Office
NameDescriptionTypeAdditional information
OfficeId

integer

None.

Code

string

Required

Name

string

Required

ScopeId

integer

None.

ScopeCode

string

None.

RankId

integer

None.

RankCode

string

None.

Description

string

None.

CreatedBy

string

String length: inclusive between 0 and 50

UpdatedBy

string

String length: inclusive between 0 and 50

CreatedOn

date

None.

UpdatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "OfficeId": 1,
  "Code": "sample string 2",
  "Name": "sample string 3",
  "ScopeId": 4,
  "ScopeCode": "sample string 5",
  "RankId": 6,
  "RankCode": "sample string 7",
  "Description": "sample string 8",
  "CreatedBy": "sample string 9",
  "UpdatedBy": "sample string 10",
  "CreatedOn": "2022-09-28T08:27:10.6297554-05:00",
  "UpdatedOn": "2022-09-28T08:27:10.6297554-05:00"
}

text/xml

Sample:
<Office xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FullGospel.Common.Parameter">
  <Code>sample string 2</Code>
  <CreatedBy>sample string 9</CreatedBy>
  <CreatedOn>2022-09-28T08:27:10.6297554-05:00</CreatedOn>
  <Description>sample string 8</Description>
  <Name>sample string 3</Name>
  <OfficeId>1</OfficeId>
  <RankCode>sample string 7</RankCode>
  <RankId>6</RankId>
  <ScopeCode>sample string 5</ScopeCode>
  <ScopeId>4</ScopeId>
  <UpdatedBy>sample string 10</UpdatedBy>
  <UpdatedOn>2022-09-28T08:27:10.6297554-05:00</UpdatedOn>
</Office>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.