POST api/Starwars/UpdateTalent/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Default value is 0

Body Parameters

TalentInfo
NameDescriptionTypeAdditional information
TalentInfoID

integer

None.

Description

string

None.

IsActive

boolean

None.

IsRanked

boolean

None.

IsForce

boolean

None.

IsConflict

boolean

None.

Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "talentInfoID": 1,
  "description": "sample string 2",
  "isActive": true,
  "isRanked": true,
  "isForce": true,
  "isConflict": true,
  "name": "sample string 7"
}

text/html

Sample:
{"talentInfoID":1,"description":"sample string 2","isActive":true,"isRanked":true,"isForce":true,"isConflict":true,"name":"sample string 7"}

application/xml, text/xml

Sample:
<TalentInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RPGAnthology.WebAPI.Models">
  <Description>sample string 2</Description>
  <IsActive>true</IsActive>
  <IsConflict>true</IsConflict>
  <IsForce>true</IsForce>
  <IsRanked>true</IsRanked>
  <Name>sample string 7</Name>
  <TalentInfoID>1</TalentInfoID>
</TalentInfo>

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

Response Information

Resource Description

TalentInfo
NameDescriptionTypeAdditional information
TalentInfoID

integer

None.

Description

string

None.

IsActive

boolean

None.

IsRanked

boolean

None.

IsForce

boolean

None.

IsConflict

boolean

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
{
  "talentInfoID": 1,
  "description": "sample string 2",
  "isActive": true,
  "isRanked": true,
  "isForce": true,
  "isConflict": true,
  "name": "sample string 7"
}

text/html

Sample:
{"talentInfoID":1,"description":"sample string 2","isActive":true,"isRanked":true,"isForce":true,"isConflict":true,"name":"sample string 7"}

application/xml, text/xml

Sample:
<TalentInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RPGAnthology.WebAPI.Models">
  <Description>sample string 2</Description>
  <IsActive>true</IsActive>
  <IsConflict>true</IsConflict>
  <IsForce>true</IsForce>
  <IsRanked>true</IsRanked>
  <Name>sample string 7</Name>
  <TalentInfoID>1</TalentInfoID>
</TalentInfo>