POST api/apartment/create

Request Information

URI Parameters

None.

Body Parameters

aptData
NameDescriptionTypeAdditional information
id

integer

None.

usr_id

integer

None.

year_amount

decimal number

None.

month_amount

decimal number

None.

amount_used

decimal number

None.

valid_from

date

None.

valid_to

date

None.

year

integer

None.

file_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "usr_id": 2,
  "year_amount": 3.0,
  "month_amount": 4.0,
  "amount_used": 5.0,
  "valid_from": "2025-05-22T16:55:54.850169+02:00",
  "valid_to": "2025-05-22T16:55:54.850169+02:00",
  "year": 7,
  "file_id": 8
}

application/xml, text/xml

Sample:
<aptData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <amount_used>5</amount_used>
  <file_id>8</file_id>
  <id>1</id>
  <month_amount>4</month_amount>
  <usr_id>2</usr_id>
  <valid_from>2025-05-22T16:55:54.850169+02:00</valid_from>
  <valid_to>2025-05-22T16:55:54.850169+02:00</valid_to>
  <year>7</year>
  <year_amount>3</year_amount>
</aptData>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.