POST api/Reporting/SendPresence

Request Information

URI Parameters

None.

Body Parameters

ParamsGetPresence
NameDescriptionTypeAdditional information
token

string

None.

key

string

None.

aPresenceData

Collection of aPresenceData

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "key": "sample string 2",
  "aPresenceData": [
    {
      "id_agreement_day": 1,
      "longitude": 1.1,
      "latitude": 1.1,
      "timestamp": "2025-12-26T05:08:35.9473907+01:00",
      "cpt_check": 1,
      "presence": true,
      "codeAbsenceReason": "sample string 4"
    },
    {
      "id_agreement_day": 1,
      "longitude": 1.1,
      "latitude": 1.1,
      "timestamp": "2025-12-26T05:08:35.9473907+01:00",
      "cpt_check": 1,
      "presence": true,
      "codeAbsenceReason": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<ParamsGetPresence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSReportix.Models">
  <aPresenceData>
    <aPresenceData>
      <codeAbsenceReason>sample string 4</codeAbsenceReason>
      <cpt_check>1</cpt_check>
      <id_agreement_day>1</id_agreement_day>
      <latitude>1.1</latitude>
      <longitude>1.1</longitude>
      <presence>true</presence>
      <timestamp>2025-12-26T05:08:35.9473907+01:00</timestamp>
    </aPresenceData>
    <aPresenceData>
      <codeAbsenceReason>sample string 4</codeAbsenceReason>
      <cpt_check>1</cpt_check>
      <id_agreement_day>1</id_agreement_day>
      <latitude>1.1</latitude>
      <longitude>1.1</longitude>
      <presence>true</presence>
      <timestamp>2025-12-26T05:08:35.9473907+01:00</timestamp>
    </aPresenceData>
  </aPresenceData>
  <key>sample string 2</key>
  <token>sample string 1</token>
</ParamsGetPresence>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>