POST api/abovertragstyp/validate

Request Information

URI Parameters

None.

Body Parameters

AboVertragstypValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

AboVertragstyp

None.

Id

integer

Required

RowGuid

globally unique identifier

Required

ProduktId

integer

Required

Kuerzel

string

None.

Bezeichnung

string

None.

Berechnung

boolean

Required

BerechnungAnteil

boolean

Required

MandantReWe

integer

None.

ArtikelEinzel

string

None.

ArtikelQuartal

string

None.

ArtikelHalbjahr

string

None.

ArtikelJahr

string

None.

MindestLaufzeit

integer

Required

MindestLaufzeitId

integer

Required

Kuendigungsfrist

integer

Required

KuendigungsfristId

integer

Required

Verlaengerung

integer

Required

VerlaengerungId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "RowGuid": "e700b92e-b36d-4b70-b796-2705c336d79f",
    "ProduktId": 3,
    "Kuerzel": "sample string 4",
    "Bezeichnung": "sample string 5",
    "Berechnung": true,
    "BerechnungAnteil": true,
    "MandantReWe": 1,
    "ArtikelEinzel": "sample string 8",
    "ArtikelQuartal": "sample string 9",
    "ArtikelHalbjahr": "sample string 10",
    "ArtikelJahr": "sample string 11",
    "MindestLaufzeit": 12,
    "MindestLaufzeitId": 13,
    "Kuendigungsfrist": 14,
    "KuendigungsfristId": 15,
    "Verlaengerung": 16,
    "VerlaengerungId": 17
  },
  "Id": 2,
  "RowGuid": "d1884db9-9447-4471-b5fd-e814bbd2c7ca",
  "ProduktId": 4,
  "Kuerzel": "sample string 5",
  "Bezeichnung": "sample string 6",
  "Berechnung": true,
  "BerechnungAnteil": true,
  "MandantReWe": 1,
  "ArtikelEinzel": "sample string 9",
  "ArtikelQuartal": "sample string 10",
  "ArtikelHalbjahr": "sample string 11",
  "ArtikelJahr": "sample string 12",
  "MindestLaufzeit": 13,
  "MindestLaufzeitId": 14,
  "Kuendigungsfrist": 15,
  "KuendigungsfristId": 16,
  "Verlaengerung": 17,
  "VerlaengerungId": 18
}

application/xml, text/xml

Sample:
<AboVertragstypValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Abo.Models">
  <ArtikelEinzel>sample string 9</ArtikelEinzel>
  <ArtikelHalbjahr>sample string 11</ArtikelHalbjahr>
  <ArtikelJahr>sample string 12</ArtikelJahr>
  <ArtikelQuartal>sample string 10</ArtikelQuartal>
  <Berechnung>true</Berechnung>
  <BerechnungAnteil>true</BerechnungAnteil>
  <Bezeichnung>sample string 6</Bezeichnung>
  <Id>2</Id>
  <Kuendigungsfrist>15</Kuendigungsfrist>
  <KuendigungsfristId>16</KuendigungsfristId>
  <Kuerzel>sample string 5</Kuerzel>
  <MandantReWe>1</MandantReWe>
  <MindestLaufzeit>13</MindestLaufzeit>
  <MindestLaufzeitId>14</MindestLaufzeitId>
  <ProduktId>4</ProduktId>
  <RowGuid>d1884db9-9447-4471-b5fd-e814bbd2c7ca</RowGuid>
  <Verlaengerung>17</Verlaengerung>
  <VerlaengerungId>18</VerlaengerungId>
  <Reason>1</Reason>
  <Rec>
    <ArtikelEinzel>sample string 8</ArtikelEinzel>
    <ArtikelHalbjahr>sample string 10</ArtikelHalbjahr>
    <ArtikelJahr>sample string 11</ArtikelJahr>
    <ArtikelQuartal>sample string 9</ArtikelQuartal>
    <Berechnung>true</Berechnung>
    <BerechnungAnteil>true</BerechnungAnteil>
    <Bezeichnung>sample string 5</Bezeichnung>
    <Id>1</Id>
    <Kuendigungsfrist>14</Kuendigungsfrist>
    <KuendigungsfristId>15</KuendigungsfristId>
    <Kuerzel>sample string 4</Kuerzel>
    <MandantReWe>1</MandantReWe>
    <MindestLaufzeit>12</MindestLaufzeit>
    <MindestLaufzeitId>13</MindestLaufzeitId>
    <ProduktId>3</ProduktId>
    <RowGuid>e700b92e-b36d-4b70-b796-2705c336d79f</RowGuid>
    <Verlaengerung>16</Verlaengerung>
    <VerlaengerungId>17</VerlaengerungId>
  </Rec>
</AboVertragstypValidate>

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

Response Information

Resource Description

ValidationResult
NameDescriptionTypeAdditional information
ErrorMsg

string

None.

HintMsg

string

None.

ErrorFieldNames

Collection of string

None.

FieldName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMsg": "sample string 1",
  "HintMsg": "sample string 2",
  "ErrorFieldNames": [
    "sample string 1",
    "sample string 2"
  ],
  "FieldName": "sample string 3"
}

application/xml, text/xml

Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <ErrorFieldNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorFieldNames>
  <ErrorMsg>sample string 1</ErrorMsg>
  <FieldName>sample string 3</FieldName>
  <HintMsg>sample string 2</HintMsg>
</ValidationResult>