POST api/krnorg2org/validate

Request Information

URI Parameters

None.

Body Parameters

KrnOrg2OrgValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

KrnOrg2Org

None.

Id

integer

Required

BeziehungstypId

integer

Required

OrganisationId1

integer

Required

OrganisationId2

integer

Required

Bemerkung

string

None.

Beginn

date

None.

Ende

date

None.

RowGuid

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "BeziehungstypId": 2,
    "OrganisationId1": 3,
    "OrganisationId2": 4,
    "Bemerkung": "sample string 5",
    "Beginn": "2025-10-25T21:00:52.004164+02:00",
    "Ende": "2025-10-25T21:00:52.004164+02:00",
    "RowGuid": "5e5350f6-b66b-417b-bbb6-b6db9dc75ae7"
  },
  "Id": 2,
  "BeziehungstypId": 3,
  "OrganisationId1": 4,
  "OrganisationId2": 5,
  "Bemerkung": "sample string 6",
  "Beginn": "2025-10-25T21:00:52.004164+02:00",
  "Ende": "2025-10-25T21:00:52.004164+02:00",
  "RowGuid": "2052b8b2-8adc-483d-9af2-437997c3c514"
}

application/xml, text/xml

Sample:
<KrnOrg2OrgValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
  <Beginn>2025-10-25T21:00:52.004164+02:00</Beginn>
  <Bemerkung>sample string 6</Bemerkung>
  <BeziehungstypId>3</BeziehungstypId>
  <Ende>2025-10-25T21:00:52.004164+02:00</Ende>
  <Id>2</Id>
  <OrganisationId1>4</OrganisationId1>
  <OrganisationId2>5</OrganisationId2>
  <RowGuid>2052b8b2-8adc-483d-9af2-437997c3c514</RowGuid>
  <Reason>1</Reason>
  <Rec>
    <Beginn>2025-10-25T21:00:52.004164+02:00</Beginn>
    <Bemerkung>sample string 5</Bemerkung>
    <BeziehungstypId>2</BeziehungstypId>
    <Ende>2025-10-25T21:00:52.004164+02:00</Ende>
    <Id>1</Id>
    <OrganisationId1>3</OrganisationId1>
    <OrganisationId2>4</OrganisationId2>
    <RowGuid>5e5350f6-b66b-417b-bbb6-b6db9dc75ae7</RowGuid>
  </Rec>
</KrnOrg2OrgValidate>

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

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>