POST api/bkd/presences/{str_code}/{id_booking_room}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
str_code

string

Required

id_booking_room

integer

Required

Body Parameters

Presence
NameDescriptionTypeAdditional information
id

integer

None.

id_master

integer

None.

customer

Customer

None.

id_presence_type

integer

None.

checkin

string

None.

checkout

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_master": 1,
  "customer": {
    "name": "sample string 1",
    "surname": "sample string 2",
    "sex": "sample string 3",
    "birth_date": "sample string 4",
    "email": "sample string 5",
    "phone": "sample string 6",
    "country": "sample string 7",
    "province": "sample string 8",
    "municipality": "sample string 9",
    "zip": "sample string 10",
    "address": "sample string 11",
    "doc_type": "sample string 12",
    "doc_num": "sample string 13"
  },
  "id_presence_type": 1,
  "checkin": "sample string 2",
  "checkout": "sample string 3"
}

application/xml, text/xml

Sample:
<Presence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Booking.Model">
  <checkin>sample string 2</checkin>
  <checkout>sample string 3</checkout>
  <customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Anagrafic.Models">
    <d2p1:address>sample string 11</d2p1:address>
    <d2p1:birth_date>sample string 4</d2p1:birth_date>
    <d2p1:country>sample string 7</d2p1:country>
    <d2p1:doc_num>sample string 13</d2p1:doc_num>
    <d2p1:doc_type>sample string 12</d2p1:doc_type>
    <d2p1:email>sample string 5</d2p1:email>
    <d2p1:municipality>sample string 9</d2p1:municipality>
    <d2p1:name>sample string 1</d2p1:name>
    <d2p1:phone>sample string 6</d2p1:phone>
    <d2p1:province>sample string 8</d2p1:province>
    <d2p1:sex>sample string 3</d2p1:sex>
    <d2p1:surname>sample string 2</d2p1:surname>
    <d2p1:zip>sample string 10</d2p1:zip>
  </customer>
  <id>1</id>
  <id_master>1</id_master>
  <id_presence_type>1</id_presence_type>
</Presence>

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

Response Information

Resource Description

Presence
NameDescriptionTypeAdditional information
id

integer

None.

id_master

integer

None.

customer

Customer

None.

id_presence_type

integer

None.

checkin

string

None.

checkout

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_master": 1,
  "customer": {
    "name": "sample string 1",
    "surname": "sample string 2",
    "sex": "sample string 3",
    "birth_date": "sample string 4",
    "email": "sample string 5",
    "phone": "sample string 6",
    "country": "sample string 7",
    "province": "sample string 8",
    "municipality": "sample string 9",
    "zip": "sample string 10",
    "address": "sample string 11",
    "doc_type": "sample string 12",
    "doc_num": "sample string 13"
  },
  "id_presence_type": 1,
  "checkin": "sample string 2",
  "checkout": "sample string 3"
}

application/xml, text/xml

Sample:
<Presence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Booking.Model">
  <checkin>sample string 2</checkin>
  <checkout>sample string 3</checkout>
  <customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Anagrafic.Models">
    <d2p1:address>sample string 11</d2p1:address>
    <d2p1:birth_date>sample string 4</d2p1:birth_date>
    <d2p1:country>sample string 7</d2p1:country>
    <d2p1:doc_num>sample string 13</d2p1:doc_num>
    <d2p1:doc_type>sample string 12</d2p1:doc_type>
    <d2p1:email>sample string 5</d2p1:email>
    <d2p1:municipality>sample string 9</d2p1:municipality>
    <d2p1:name>sample string 1</d2p1:name>
    <d2p1:phone>sample string 6</d2p1:phone>
    <d2p1:province>sample string 8</d2p1:province>
    <d2p1:sex>sample string 3</d2p1:sex>
    <d2p1:surname>sample string 2</d2p1:surname>
    <d2p1:zip>sample string 10</d2p1:zip>
  </customer>
  <id>1</id>
  <id_master>1</id_master>
  <id_presence_type>1</id_presence_type>
</Presence>