POST api/verreferent2kompetenz/validate

Request Information

URI Parameters

None.

Body Parameters

VerReferent2KompetenzValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

VerReferent2Kompetenz

None.

Id

integer

Required

ReferentId

integer

Required

KompetenzId

integer

Required

Beginn

date

Required

Ende

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "ReferentId": 2,
    "KompetenzId": 3,
    "Beginn": "2025-10-25T20:52:45.906285+02:00",
    "Ende": "2025-10-25T20:52:45.906285+02:00"
  },
  "Id": 2,
  "ReferentId": 3,
  "KompetenzId": 4,
  "Beginn": "2025-10-25T20:52:45.906285+02:00",
  "Ende": "2025-10-25T20:52:45.906285+02:00"
}

application/xml, text/xml

Sample:
<VerReferent2KompetenzValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Ver.Models">
  <Beginn>2025-10-25T20:52:45.906285+02:00</Beginn>
  <Ende>2025-10-25T20:52:45.906285+02:00</Ende>
  <Id>2</Id>
  <KompetenzId>4</KompetenzId>
  <ReferentId>3</ReferentId>
  <Reason>1</Reason>
  <Rec>
    <Beginn>2025-10-25T20:52:45.906285+02:00</Beginn>
    <Ende>2025-10-25T20:52:45.906285+02:00</Ende>
    <Id>1</Id>
    <KompetenzId>3</KompetenzId>
    <ReferentId>2</ReferentId>
  </Rec>
</VerReferent2KompetenzValidate>

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

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>