Updates used part with the specified key
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters :
job_part_usage| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier |
Required |
| jobs_id |
Foreign key of jobs |
globally unique identifier | |
| job_approval_id |
Job approval Id |
globally unique identifier | |
| article_stock_location_id |
In case of stock management enabled, the stock that has been used |
globally unique identifier | |
| article_id |
Foreign key of article. Can be empty if user keys in manually the object |
globally unique identifier | |
| is_dummy |
In case of dummy |
boolean | |
| article_code |
Article code |
string |
Max length: 255 |
| article_name |
Article name |
string |
Max length: 255 |
| article_description |
Article description |
string |
Max length: 255 |
| working_date |
Date when the part has been used |
date | |
| quantity |
Quantity |
decimal number | |
| serial_number |
When the article.use_serial then the serial should be saved here |
string |
Max length: 255 |
| price |
Unit price of the part. Computed with the price logic or filled via purchase_order_details.price |
decimal number | |
| is_under_warranty |
In case the logic detect that the parts was in warranty, this field will be set to true and the discount will be set equal to the price |
boolean | |
| discount |
Manual discount , in money, added by the technician |
decimal number | |
| purchase_order_details_id |
Foreign key of purchase_order_details, if the line was generated based on a purchase_order_details |
globally unique identifier | |
| user_id |
User Id |
globally unique identifier | |
| remark | string |
Max length: 255 |
|
| no_warranty_reason | string |
Max length: 255 |
|
| db_unit_of_measure_id | globally unique identifier | ||
| included_on_last_stock_compute | boolean | ||
| signed_by_company |
Needed for integration |
boolean | |
| company_vat_id | globally unique identifier | ||
| vat_value | decimal number | ||
| vat_rate | decimal number | ||
| invoice_id | globally unique identifier | ||
| invoice_details_id | globally unique identifier | ||
| is_customized | boolean | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{
"id": "20340750-26db-45db-bc37-342e9a1a3ad4",
"jobs_id": "56b84e40-ccc1-4409-b417-24e5c1164f3f",
"job_approval_id": "e481550d-019b-4fe4-beae-e03933488480",
"article_stock_location_id": "8c5369dc-8e0b-42d0-b5b9-e129334e8ff2",
"article_id": "6c1d45b3-38fa-477a-87ed-91723dc838e7",
"is_dummy": true,
"article_code": "sample string 7",
"article_name": "sample string 8",
"article_description": "sample string 9",
"working_date": "2026-03-07T13:15:26.7238551+00:00",
"quantity": 11.0,
"serial_number": "sample string 12",
"price": 13.0,
"is_under_warranty": true,
"discount": 15.0,
"purchase_order_details_id": "63547a87-e4e9-47f8-a91f-87fc1ca5d179",
"user_id": "51f0bc7b-c6b5-46e2-9aea-09c5da3355c2",
"remark": "sample string 18",
"no_warranty_reason": "sample string 19",
"db_unit_of_measure_id": "ec362747-ccdb-418a-a69a-4464e375b3e6",
"included_on_last_stock_compute": true,
"signed_by_company": true,
"company_vat_id": "3fc50873-0db7-400a-929a-9bdebc56026f",
"vat_value": 24.0,
"vat_rate": 25.0,
"invoice_id": "3a923968-a1fb-46cd-bbdb-ec99343d5ff0",
"invoice_details_id": "599ad8bd-b808-4869-b83a-84c73ab9c842",
"is_customized": true,
"modified_dateutc": "2026-03-07T13:15:26.7238551+00:00"
}
application/xml, text/xml
<job_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <article_code>sample string 7</article_code> <article_description>sample string 9</article_description> <article_id>6c1d45b3-38fa-477a-87ed-91723dc838e7</article_id> <article_name>sample string 8</article_name> <article_stock_location_id>8c5369dc-8e0b-42d0-b5b9-e129334e8ff2</article_stock_location_id> <company_vat_id>3fc50873-0db7-400a-929a-9bdebc56026f</company_vat_id> <db_unit_of_measure_id>ec362747-ccdb-418a-a69a-4464e375b3e6</db_unit_of_measure_id> <discount>15</discount> <id>20340750-26db-45db-bc37-342e9a1a3ad4</id> <included_on_last_stock_compute>true</included_on_last_stock_compute> <invoice_details_id>599ad8bd-b808-4869-b83a-84c73ab9c842</invoice_details_id> <invoice_id>3a923968-a1fb-46cd-bbdb-ec99343d5ff0</invoice_id> <is_customized>true</is_customized> <is_dummy>true</is_dummy> <is_under_warranty>true</is_under_warranty> <job_approval_id>e481550d-019b-4fe4-beae-e03933488480</job_approval_id> <jobs_id>56b84e40-ccc1-4409-b417-24e5c1164f3f</jobs_id> <modified_dateutc>2026-03-07T13:15:26.723Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <purchase_order_details_id>63547a87-e4e9-47f8-a91f-87fc1ca5d179</purchase_order_details_id> <quantity>11</quantity> <remark>sample string 18</remark> <serial_number>sample string 12</serial_number> <signed_by_company>true</signed_by_company> <user_id>51f0bc7b-c6b5-46e2-9aea-09c5da3355c2</user_id> <vat_rate>25</vat_rate> <vat_value>24</vat_value> <working_date>2026-03-07T13:15:26.723Z</working_date> </job_part_usage>
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.