PUT api/Agreements

Updates an agreement.

Request Information

URI Parameters

None.

Body Parameters

AgreementPutRequest
NameDescriptionTypeAdditional information
NewAgreementNumber

integer

None.

OwnerUserName

string

Required

Max length: 256

Number

integer

Required

Name

string

Required

Max length: 40

BranchId

integer

Required

ValidFrom

date

Required

ValidTo

date

Required

GeneralAgreementNo

integer

None.

PriceListId

globally unique identifier

Required

FixedArticlePrices

boolean

Required

FixedArticlePricesUntil

date

None.

ZoneId

integer

None.

Document

string

Max length: 4000

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "NewAgreementNumber": 1,
  "OwnerUserName": "sample string 1",
  "Number": 2,
  "Name": "sample string 3",
  "BranchId": 1,
  "ValidFrom": "2026-01-21 22:49:43",
  "ValidTo": "2026-01-21 22:49:43",
  "GeneralAgreementNo": 1,
  "PriceListId": "8bb8edd0-cbd8-4829-88da-80c77fa9fef6",
  "FixedArticlePrices": true,
  "FixedArticlePricesUntil": "2026-01-21 22:49:43",
  "ZoneId": 1,
  "Document": "sample string 8"
}

application/xml, text/xml

Sample:
<AgreementPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Agreement">
  <BranchId>1</BranchId>
  <Document>sample string 8</Document>
  <FixedArticlePrices>true</FixedArticlePrices>
  <FixedArticlePricesUntil>2026-01-21T22:49:43.1868818+01:00</FixedArticlePricesUntil>
  <GeneralAgreementNo>1</GeneralAgreementNo>
  <Name>sample string 3</Name>
  <Number>2</Number>
  <PriceListId>8bb8edd0-cbd8-4829-88da-80c77fa9fef6</PriceListId>
  <ValidFrom>2026-01-21T22:49:43.1868818+01:00</ValidFrom>
  <ValidTo>2026-01-21T22:49:43.1868818+01:00</ValidTo>
  <ZoneId>1</ZoneId>
  <OwnerUserName>sample string 1</OwnerUserName>
  <NewAgreementNumber>1</NewAgreementNumber>
</AgreementPutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AgreementPutResponse
NameDescriptionTypeAdditional information
Errors

Collection of PutAgreementError

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<AgreementPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Agreement">
  <Errors>
    <PutAgreementError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutAgreementError>
    <PutAgreementError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutAgreementError>
  </Errors>
  <Success>true</Success>
</AgreementPutResponse>