POST api/Leads

Documentation for 'PostValue'.

Request Information

Parameters

NameDescriptionAdditional information
value
Documentation for 'value'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": "70074163-1e6b-421c-917e-603281e42c10",
  "Lastname": "sample string 2",
  "Firstname": "sample string 3",
  "Title": "sample string 4",
  "Jobtitle": "sample string 5",
  "Companyname": "sample string 6",
  "City": "sample string 7",
  "Street": "sample string 8",
  "Emailaddress": "sample string 9",
  "Phonenumber": "sample string 10",
  "Website": "sample string 11",
  "Mobilephone": "sample string 12",
  "Fax": "sample string 13",
  "Imagedata": "sample string 14",
  "IdFair": "1093223f-e054-433f-9503-bb57ef83c12c",
  "Interest": [
    {
      "Key": null,
      "Value": null
    },
    {
      "Key": null,
      "Value": null
    },
    {
      "Key": null,
      "Value": null
    }
  ],
  "CreatedOn": "2026-05-08T18:34:30.4272647+02:00",
  "PostalCode": "sample string 17",
  "LeadIdentifier": "sample string 18"
}

application/xml, text/xml

Sample:
<Lead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Krohne.Events.DataObjects">
  <City>sample string 7</City>
  <Companyname>sample string 6</Companyname>
  <CreatedOn>2026-05-08T18:34:30.4272647+02:00</CreatedOn>
  <Emailaddress>sample string 9</Emailaddress>
  <Fax>sample string 13</Fax>
  <Firstname>sample string 3</Firstname>
  <Id>70074163-1e6b-421c-917e-603281e42c10</Id>
  <IdFair>1093223f-e054-433f-9503-bb57ef83c12c</IdFair>
  <Imagedata>sample string 14</Imagedata>
  <Interest>
    <SerializableKeyValuePairOfstringstring>
      <Key i:nil="true" />
      <Value i:nil="true" />
    </SerializableKeyValuePairOfstringstring>
    <SerializableKeyValuePairOfstringstring>
      <Key i:nil="true" />
      <Value i:nil="true" />
    </SerializableKeyValuePairOfstringstring>
    <SerializableKeyValuePairOfstringstring>
      <Key i:nil="true" />
      <Value i:nil="true" />
    </SerializableKeyValuePairOfstringstring>
  </Interest>
  <Jobtitle>sample string 5</Jobtitle>
  <Lastname>sample string 2</Lastname>
  <LeadIdentifier>sample string 18</LeadIdentifier>
  <Mobilephone>sample string 12</Mobilephone>
  <Phonenumber>sample string 10</Phonenumber>
  <PostalCode>sample string 17</PostalCode>
  <Street>sample string 8</Street>
  <Title>sample string 4</Title>
  <Website>sample string 11</Website>
</Lead>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
"26b13a61-3f0d-421f-9a97-b9945a2727de"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">26b13a61-3f0d-421f-9a97-b9945a2727de</guid>