POST api/krnelement2socialmedia/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

KrnElement2SocialMedia
NameDescriptionTypeAdditional information
Id

integer

Required

RowGuid

globally unique identifier

Required

PersonId

integer

None.

OrganisationId

integer

None.

SocialMediaId

integer

Required

Webadresse

string

None.

Bemerkung

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RowGuid": "0f40561e-a3b2-48e9-b03f-9b34041efb57",
  "PersonId": 1,
  "OrganisationId": 1,
  "SocialMediaId": 3,
  "Webadresse": "sample string 4",
  "Bemerkung": "sample string 5"
}

application/xml, text/xml

Sample:
<KrnElement2SocialMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
  <Bemerkung>sample string 5</Bemerkung>
  <Id>1</Id>
  <OrganisationId>1</OrganisationId>
  <PersonId>1</PersonId>
  <RowGuid>0f40561e-a3b2-48e9-b03f-9b34041efb57</RowGuid>
  <SocialMediaId>3</SocialMediaId>
  <Webadresse>sample string 4</Webadresse>
</KrnElement2SocialMedia>