POST api/apartment/create
Request Information
URI Parameters
None.
Body Parameters
aptData| Name | Description | Type | Additional 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-12-15T17:02:53.7800727+01:00",
"valid_to": "2025-12-15T17:02:53.7800727+01: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-12-15T17:02:53.7800727+01:00</valid_from> <valid_to>2025-12-15T17:02:53.7800727+01:00</valid_to> <year>7</year> <year_amount>3</year_amount> </aptData>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.