PUT api/PostTypes/PutPostType?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PostType
NameDescriptionTypeAdditional information
PostTypeId

integer

None.

Name

string

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PostTypeId": 1,
  "Name": "sample string 2",
  "LastChanged": "2025-08-14T03:13:09.4875912+00:00",
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<PostType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:13:09.4875912+00:00</LastChanged>
  <Name>sample string 2</Name>
  <PostTypeId>1</PostTypeId>
</PostType>

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

Response Information

Resource Description

None.