PUT api/v1/units/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Unit
NameDescriptionTypeAdditional information
id

globally unique identifier

Required

property

CodeList

None.

name

string

None.

order_number

integer

None.

hall

string

None.

light_height

string

None.

file

File

None.

price

decimal number

None.

available_area_from

decimal number

None.

is_on_request

boolean

None.

available_area_to

decimal number

None.

availability

string

None.

available_now

boolean

None.

floor

decimal number

None.

floor_text

string

None.

floor_text_en

string

None.

exact_size

decimal number

None.

available_from

date

None.

asking_rent_m2

decimal number

None.

asking_rent_m2_currency

CodeListSystem

None.

asking_rent_monthly

decimal number

None.

asking_rent_monthly_currency

CodeListSystem

None.

unit_lease_term

CodeListSystem

None.

unit_category

CodeList

None.

active

boolean

None.

deleted

boolean

Required

system_information

SystemInformation

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "0bf117e0-40f4-40ae-af52-d4c8bfc61e58",
  "property": {
    "id": "4774d566-c3ac-402f-af57-d5f2981cf1cb",
    "name": "sample string 2",
    "deleted": true,
    "system_information": {
      "creation": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
          "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
          "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
          "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
          "code": "sample string 5",
          "code2": "sample string 6",
          "title": "sample string 9",
          "introduction": "sample string 10",
          "first_name": "sample string 11",
          "last_name": "sample string 12"
        },
        "date": "2024-06-20T06:19:14Z"
      },
      "last_change": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
          "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
          "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
          "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
          "code": "sample string 5",
          "code2": "sample string 6",
          "title": "sample string 9",
          "introduction": "sample string 10",
          "first_name": "sample string 11",
          "last_name": "sample string 12"
        },
        "date": "2024-06-20T06:19:14Z"
      }
    }
  },
  "name": "sample string 2",
  "order_number": 3,
  "hall": "sample string 4",
  "light_height": "sample string 5",
  "file": {
    "id": "6104b1b1-2d19-46f4-9fe0-9a64680d92ea",
    "name": "sample string 2"
  },
  "price": 1.0,
  "available_area_from": 1.0,
  "is_on_request": true,
  "available_area_to": 1.0,
  "availability": "sample string 7",
  "available_now": true,
  "floor": 1.0,
  "floor_text": "sample string 9",
  "floor_text_en": "sample string 10",
  "exact_size": 1.0,
  "available_from": "2024-06-20T06:19:14Z",
  "asking_rent_m2": 1.0,
  "asking_rent_m2_currency": {
    "id": 1,
    "name": "sample string 2",
    "code": "sample string 3"
  },
  "asking_rent_monthly": 1.0,
  "asking_rent_monthly_currency": {
    "id": 1,
    "name": "sample string 2",
    "code": "sample string 3"
  },
  "unit_lease_term": {
    "id": 1,
    "name": "sample string 2",
    "code": "sample string 3"
  },
  "unit_category": {
    "id": "4774d566-c3ac-402f-af57-d5f2981cf1cb",
    "name": "sample string 2",
    "deleted": true,
    "system_information": {
      "creation": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
          "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
          "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
          "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
          "code": "sample string 5",
          "code2": "sample string 6",
          "title": "sample string 9",
          "introduction": "sample string 10",
          "first_name": "sample string 11",
          "last_name": "sample string 12"
        },
        "date": "2024-06-20T06:19:14Z"
      },
      "last_change": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
          "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
          "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
          "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
          "code": "sample string 5",
          "code2": "sample string 6",
          "title": "sample string 9",
          "introduction": "sample string 10",
          "first_name": "sample string 11",
          "last_name": "sample string 12"
        },
        "date": "2024-06-20T06:19:14Z"
      }
    }
  },
  "active": true,
  "deleted": true,
  "system_information": {
    "creation": {
      "user": {
        "full_name": "sample string 12 sample string 11",
        "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
        "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
        "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
        "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
        "code": "sample string 5",
        "code2": "sample string 6",
        "title": "sample string 9",
        "introduction": "sample string 10",
        "first_name": "sample string 11",
        "last_name": "sample string 12"
      },
      "date": "2024-06-20T06:19:14Z"
    },
    "last_change": {
      "user": {
        "full_name": "sample string 12 sample string 11",
        "id": "5ff12730-25c7-4523-8713-6a1bd07da660",
        "image_id": "bf9e4637-637e-4376-a31d-3f435f9f38cc",
        "id_user_work_position": "a9e28822-3af6-472e-8d0b-a344c0ef13ae",
        "id_shift": "1a6a95ed-b8e5-4c1b-bdaa-54b848f51681",
        "code": "sample string 5",
        "code2": "sample string 6",
        "title": "sample string 9",
        "introduction": "sample string 10",
        "first_name": "sample string 11",
        "last_name": "sample string 12"
      },
      "date": "2024-06-20T06:19:14Z"
    }
  }
}

application/xml, text/xml

Sample:
<Unit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
  <active>true</active>
  <asking_rent_m2>1</asking_rent_m2>
  <asking_rent_m2_currency>
    <code>sample string 3</code>
    <id>1</id>
    <name>sample string 2</name>
  </asking_rent_m2_currency>
  <asking_rent_monthly>1</asking_rent_monthly>
  <asking_rent_monthly_currency>
    <code>sample string 3</code>
    <id>1</id>
    <name>sample string 2</name>
  </asking_rent_monthly_currency>
  <availability>sample string 7</availability>
  <available_area_from>1</available_area_from>
  <available_area_to>1</available_area_to>
  <available_from>2024-06-20T08:19:14.2975934+02:00</available_from>
  <available_now>true</available_now>
  <deleted>true</deleted>
  <exact_size>1</exact_size>
  <file>
    <id>6104b1b1-2d19-46f4-9fe0-9a64680d92ea</id>
    <name>sample string 2</name>
  </file>
  <floor>1</floor>
  <floor_text>sample string 9</floor_text>
  <floor_text_en>sample string 10</floor_text_en>
  <hall>sample string 4</hall>
  <id>0bf117e0-40f4-40ae-af52-d4c8bfc61e58</id>
  <is_on_request>true</is_on_request>
  <light_height>sample string 5</light_height>
  <name>sample string 2</name>
  <order_number>3</order_number>
  <price>1</price>
  <property>
    <deleted>true</deleted>
    <id>4774d566-c3ac-402f-af57-d5f2981cf1cb</id>
    <name>sample string 2</name>
    <system_information>
      <creation>
        <date>2024-06-20T08:19:14.2975934+02:00</date>
        <user>
          <code>sample string 5</code>
          <code2>sample string 6</code2>
          <first_name>sample string 11</first_name>
          <full_name>sample string 12 sample string 11</full_name>
          <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
          <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
          <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
          <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
          <introduction>sample string 10</introduction>
          <last_name>sample string 12</last_name>
          <title>sample string 9</title>
        </user>
      </creation>
      <last_change>
        <date>2024-06-20T08:19:14.2975934+02:00</date>
        <user>
          <code>sample string 5</code>
          <code2>sample string 6</code2>
          <first_name>sample string 11</first_name>
          <full_name>sample string 12 sample string 11</full_name>
          <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
          <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
          <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
          <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
          <introduction>sample string 10</introduction>
          <last_name>sample string 12</last_name>
          <title>sample string 9</title>
        </user>
      </last_change>
    </system_information>
  </property>
  <system_information>
    <creation>
      <date>2024-06-20T08:19:14.2975934+02:00</date>
      <user>
        <code>sample string 5</code>
        <code2>sample string 6</code2>
        <first_name>sample string 11</first_name>
        <full_name>sample string 12 sample string 11</full_name>
        <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
        <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
        <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
        <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
        <introduction>sample string 10</introduction>
        <last_name>sample string 12</last_name>
        <title>sample string 9</title>
      </user>
    </creation>
    <last_change>
      <date>2024-06-20T08:19:14.2975934+02:00</date>
      <user>
        <code>sample string 5</code>
        <code2>sample string 6</code2>
        <first_name>sample string 11</first_name>
        <full_name>sample string 12 sample string 11</full_name>
        <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
        <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
        <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
        <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
        <introduction>sample string 10</introduction>
        <last_name>sample string 12</last_name>
        <title>sample string 9</title>
      </user>
    </last_change>
  </system_information>
  <unit_category>
    <deleted>true</deleted>
    <id>4774d566-c3ac-402f-af57-d5f2981cf1cb</id>
    <name>sample string 2</name>
    <system_information>
      <creation>
        <date>2024-06-20T08:19:14.2975934+02:00</date>
        <user>
          <code>sample string 5</code>
          <code2>sample string 6</code2>
          <first_name>sample string 11</first_name>
          <full_name>sample string 12 sample string 11</full_name>
          <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
          <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
          <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
          <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
          <introduction>sample string 10</introduction>
          <last_name>sample string 12</last_name>
          <title>sample string 9</title>
        </user>
      </creation>
      <last_change>
        <date>2024-06-20T08:19:14.2975934+02:00</date>
        <user>
          <code>sample string 5</code>
          <code2>sample string 6</code2>
          <first_name>sample string 11</first_name>
          <full_name>sample string 12 sample string 11</full_name>
          <id>5ff12730-25c7-4523-8713-6a1bd07da660</id>
          <id_shift>1a6a95ed-b8e5-4c1b-bdaa-54b848f51681</id_shift>
          <id_user_work_position>a9e28822-3af6-472e-8d0b-a344c0ef13ae</id_user_work_position>
          <image_id>bf9e4637-637e-4376-a31d-3f435f9f38cc</image_id>
          <introduction>sample string 10</introduction>
          <last_name>sample string 12</last_name>
          <title>sample string 9</title>
        </user>
      </last_change>
    </system_information>
  </unit_category>
  <unit_lease_term>
    <code>sample string 3</code>
    <id>1</id>
    <name>sample string 2</name>
  </unit_lease_term>
</Unit>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
messages

Collection of ResultMessage

None.

count_of_errors

integer

None.

id

Object

None.

name

string

None.

data

Object

None.

url

string

None.

text

string

None.

inner_exception

string

None.

Response Formats

application/json, text/json

Sample:
{
  "messages": [
    {
      "type": 1,
      "code": 1,
      "message": "sample string 1",
      "field": "sample string 2"
    },
    {
      "type": 1,
      "code": 1,
      "message": "sample string 1",
      "field": "sample string 2"
    }
  ],
  "count_of_errors": 1,
  "id": {},
  "name": "sample string 3",
  "data": {},
  "url": "sample string 5",
  "text": "sample string 6",
  "inner_exception": "sample string 7"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UP.Core.Data">
  <count_of_errors>1</count_of_errors>
  <data />
  <id />
  <inner_exception>sample string 7</inner_exception>
  <messages>
    <ResultMessage>
      <code>1</code>
      <field>sample string 2</field>
      <message>sample string 1</message>
      <type>1</type>
    </ResultMessage>
    <ResultMessage>
      <code>1</code>
      <field>sample string 2</field>
      <message>sample string 1</message>
      <type>1</type>
    </ResultMessage>
  </messages>
  <name>sample string 3</name>
  <text>sample string 6</text>
  <url>sample string 5</url>
</Result>