POST api/krnelement2sportart/preparenew

Request Information

URI Parameters

None.

Body Parameters

Collection of KeyValue
NameDescriptionTypeAdditional information
Id

integer

Required

Value

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Value": "sample string 2"
  },
  {
    "Id": 1,
    "Value": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <KeyValue>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </KeyValue>
  <KeyValue>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </KeyValue>
</ArrayOfKeyValue>

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 'List`1'.

Response Information

Resource Description

KrnElement2Sportart
NameDescriptionTypeAdditional information
Id

integer

Required

PersonId

integer

None.

OrganisationId

integer

None.

SportartId

integer

Required

Beginn

date

None.

Ende

date

None.

RowGuid

globally unique identifier

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PersonId": 1,
  "OrganisationId": 1,
  "SportartId": 2,
  "Beginn": "2025-10-25T21:03:46.863679+02:00",
  "Ende": "2025-10-25T21:03:46.863679+02:00",
  "RowGuid": "cdfc22e3-508e-4906-b7e6-3e4ed547a9ee"
}

application/xml, text/xml

Sample:
<KrnElement2Sportart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
  <Beginn>2025-10-25T21:03:46.863679+02:00</Beginn>
  <Ende>2025-10-25T21:03:46.863679+02:00</Ende>
  <Id>1</Id>
  <OrganisationId>1</OrganisationId>
  <PersonId>1</PersonId>
  <RowGuid>cdfc22e3-508e-4906-b7e6-3e4ed547a9ee</RowGuid>
  <SportartId>2</SportartId>
</KrnElement2Sportart>