PUT api/v1/subjects/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
Subject| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
|
| name | string |
None. |
|
| subject_type | CodeListSystem |
None. |
|
| address | Address |
None. |
|
| contact | Contact |
None. |
|
| registration_number | string |
None. |
|
| vat_number | string |
None. |
|
| account | string |
None. |
|
| bank_code | string |
None. |
|
| agreement | boolean |
None. |
|
| broker | boolean |
None. |
|
| deleted | boolean |
Required |
|
| system_information | SystemInformation |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "baa3b1aa-7110-4b53-8933-f0bb02228428",
"name": "sample string 2",
"subject_type": {
"id": 1,
"name": "sample string 2",
"name_en": "sample string 3",
"code": "sample string 4"
},
"address": {
"custom_location": true,
"region": "sample string 2",
"district": "sample string 3",
"city": "sample string 4",
"country": "sample string 5",
"street": "sample string 6",
"description_number": "sample string 7",
"house_number": "sample string 8",
"county": "sample string 9",
"postcode": "sample string 10",
"location": {
"lat": "sample string 1",
"lng": "sample string 2"
}
},
"contact": {
"email": "sample string 1",
"phone": "sample string 2",
"person_first_name": "sample string 3",
"person_last_name": "sample string 4"
},
"registration_number": "sample string 3",
"vat_number": "sample string 4",
"account": "sample string 5",
"bank_code": "sample string 6",
"agreement": true,
"broker": true,
"deleted": true,
"system_information": {
"creation": {
"user": {
"full_name": "sample string 12 sample string 11",
"id": "7eb58b4c-c18d-434b-a8b3-0e0235fb8669",
"image_id": "30e05c37-2324-44fd-84a2-561d08e06fc6",
"id_user_work_position": "abbefcb3-dbab-4f84-9f1d-0cc3a0f3b7bd",
"id_shift": "9f721242-584b-43a6-9ecb-6dffa63caf83",
"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": "2025-11-06T00:23:42Z"
},
"last_change": {
"user": {
"full_name": "sample string 12 sample string 11",
"id": "7eb58b4c-c18d-434b-a8b3-0e0235fb8669",
"image_id": "30e05c37-2324-44fd-84a2-561d08e06fc6",
"id_user_work_position": "abbefcb3-dbab-4f84-9f1d-0cc3a0f3b7bd",
"id_shift": "9f721242-584b-43a6-9ecb-6dffa63caf83",
"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": "2025-11-06T00:23:42Z"
}
}
}
application/xml, text/xml
Sample:
<Subject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
<account>sample string 5</account>
<address>
<city>sample string 4</city>
<country>sample string 5</country>
<county>sample string 9</county>
<custom_location>true</custom_location>
<description_number>sample string 7</description_number>
<district>sample string 3</district>
<house_number>sample string 8</house_number>
<location>
<lat>sample string 1</lat>
<lng>sample string 2</lng>
</location>
<postcode>sample string 10</postcode>
<region>sample string 2</region>
<street>sample string 6</street>
</address>
<agreement>true</agreement>
<bank_code>sample string 6</bank_code>
<broker>true</broker>
<contact>
<email>sample string 1</email>
<person_first_name>sample string 3</person_first_name>
<person_last_name>sample string 4</person_last_name>
<phone>sample string 2</phone>
</contact>
<deleted>true</deleted>
<id>baa3b1aa-7110-4b53-8933-f0bb02228428</id>
<name>sample string 2</name>
<registration_number>sample string 3</registration_number>
<subject_type>
<code>sample string 4</code>
<id>1</id>
<name>sample string 2</name>
<name_en>sample string 3</name_en>
</subject_type>
<system_information>
<creation>
<date>2025-11-06T01:23:42.2663385+01: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>7eb58b4c-c18d-434b-a8b3-0e0235fb8669</id>
<id_shift>9f721242-584b-43a6-9ecb-6dffa63caf83</id_shift>
<id_user_work_position>abbefcb3-dbab-4f84-9f1d-0cc3a0f3b7bd</id_user_work_position>
<image_id>30e05c37-2324-44fd-84a2-561d08e06fc6</image_id>
<introduction>sample string 10</introduction>
<last_name>sample string 12</last_name>
<title>sample string 9</title>
</user>
</creation>
<last_change>
<date>2025-11-06T01:23:42.2663385+01: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>7eb58b4c-c18d-434b-a8b3-0e0235fb8669</id>
<id_shift>9f721242-584b-43a6-9ecb-6dffa63caf83</id_shift>
<id_user_work_position>abbefcb3-dbab-4f84-9f1d-0cc3a0f3b7bd</id_user_work_position>
<image_id>30e05c37-2324-44fd-84a2-561d08e06fc6</image_id>
<introduction>sample string 10</introduction>
<last_name>sample string 12</last_name>
<title>sample string 9</title>
</user>
</last_change>
</system_information>
<vat_number>sample string 4</vat_number>
</Subject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result| Name | Description | Type | Additional 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>