POST api/Subcontracts/{subcontractId}/PreApprovalCheck

Execute pre / post check action.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

Body Parameters

PrePostCheckActionDto
NameDescriptionTypeAdditional information
ActionTypeId

PrePostCheckActionTypeId

None.

AutomaticallySendToSap

boolean

None.

Comment

string

None.

AdditionalEmailToNotifyOnSapError

string

None.

NotifyOnSapError

boolean

None.

HasNotifyChangesSapSendingLines

boolean

None.

SapSendingLineChanges

Collection of SapSendingLineChanges

None.

Request Formats

application/json, text/json

Sample:
{
  "actionTypeId": 1,
  "automaticallySendToSap": true,
  "comment": "sample string 2",
  "additionalEmailToNotifyOnSapError": "sample string 3",
  "notifyOnSapError": true,
  "hasNotifyChangesSapSendingLines": true,
  "sapSendingLineChanges": null
}

text/html

Sample:
{"actionTypeId":1,"automaticallySendToSap":true,"comment":"sample string 2","additionalEmailToNotifyOnSapError":"sample string 3","notifyOnSapError":true,"hasNotifyChangesSapSendingLines":true,"sapSendingLineChanges":null}

application/xml, text/xml

Sample:
<PrePostCheckActionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg.PrePostCheck">
  <ActionTypeId>Confirm</ActionTypeId>
  <AdditionalEmailToNotifyOnSapError>sample string 3</AdditionalEmailToNotifyOnSapError>
  <AutomaticallySendToSap>true</AutomaticallySendToSap>
  <Comment>sample string 2</Comment>
  <HasNotifyChangesSapSendingLines>true</HasNotifyChangesSapSendingLines>
  <NotifyOnSapError>true</NotifyOnSapError>
  <SapSendingLineChanges xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Common" i:nil="true" />
</PrePostCheckActionDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

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.