POST api/krnkarteninhaber/validate

Request Information

URI Parameters

None.

Body Parameters

KrnKarteninhaberValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

KrnKarteninhaber

None.

Id

integer

Required

KartentypId

integer

Required

PersonId

integer

Required

Nummer

string

None.

Beginn

date

Required

Ende

date

None.

RowGuid

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "KartentypId": 2,
    "PersonId": 3,
    "Nummer": "sample string 4",
    "Beginn": "2025-10-25T23:38:07.2179425+02:00",
    "Ende": "2025-10-25T23:38:07.2179425+02:00",
    "RowGuid": "00b056fe-d1a7-4599-9e85-48af366d5f18"
  },
  "Id": 2,
  "KartentypId": 3,
  "PersonId": 4,
  "Nummer": "sample string 5",
  "Beginn": "2025-10-25T23:38:07.2189417+02:00",
  "Ende": "2025-10-25T23:38:07.2189417+02:00",
  "RowGuid": "79640b69-740b-4a71-a4ee-776d8d414efb"
}

application/xml, text/xml

Sample:
<KrnKarteninhaberValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
  <Beginn>2025-10-25T23:38:07.2189417+02:00</Beginn>
  <Ende>2025-10-25T23:38:07.2189417+02:00</Ende>
  <Id>2</Id>
  <KartentypId>3</KartentypId>
  <Nummer>sample string 5</Nummer>
  <PersonId>4</PersonId>
  <RowGuid>79640b69-740b-4a71-a4ee-776d8d414efb</RowGuid>
  <Reason>1</Reason>
  <Rec>
    <Beginn>2025-10-25T23:38:07.2179425+02:00</Beginn>
    <Ende>2025-10-25T23:38:07.2179425+02:00</Ende>
    <Id>1</Id>
    <KartentypId>2</KartentypId>
    <Nummer>sample string 4</Nummer>
    <PersonId>3</PersonId>
    <RowGuid>00b056fe-d1a7-4599-9e85-48af366d5f18</RowGuid>
  </Rec>
</KrnKarteninhaberValidate>

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

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>