PUT api/Supplements/{supplementId}

Updates a Supplement

Request Information

URI Parameters

NameDescriptionTypeAdditional information
supplementId

integer

Required

Body Parameters

SupplementUpdateDto
NameDescriptionTypeAdditional information
VersionName

string

String length: inclusive between 0 and 60

VersionDescription

string

String length: inclusive between 0 and 2000

VersionSignedPrice

decimal number

None.

ApprovedExternally

boolean

None.

AutomaticallySendToSap

boolean

None.

TypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "versionName": "sample string 1",
  "versionDescription": "sample string 2",
  "versionSignedPrice": 1.0,
  "approvedExternally": true,
  "automaticallySendToSap": true,
  "typeId": 1
}

text/html

Sample:
{"versionName":"sample string 1","versionDescription":"sample string 2","versionSignedPrice":1.0,"approvedExternally":true,"automaticallySendToSap":true,"typeId":1}

application/xml, text/xml

Sample:
<SupplementUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SuplementAgg">
  <ApprovedExternally>true</ApprovedExternally>
  <AutomaticallySendToSap>true</AutomaticallySendToSap>
  <TypeId>1</TypeId>
  <VersionDescription>sample string 2</VersionDescription>
  <VersionName>sample string 1</VersionName>
  <VersionSignedPrice>1</VersionSignedPrice>
</SupplementUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfSupplementDto
NameDescriptionTypeAdditional information
Data

SupplementDto

None.

Success

boolean

None.

Message

string

None.

Errors

Collection of CustomError

None.

Warnings

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.