PUT api/clientoperations/{id}
Edits an existent client operation.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Identifier of the client operation. |
string |
Required |
Body Parameters
Modified client operation to save.
ClientOperationInputModelName | Description | Type | Additional information |
---|---|---|---|
ReferenceCode |
Gets or sets the client operation reference code. |
string |
Required String length: inclusive between 0 and 25 |
ReferenceDescription |
Gets or sets the client operation reference description. |
string |
String length: inclusive between 0 and 300 |
PartName |
Gets or sets the client operation Part name. |
string |
Required String length: inclusive between 0 and 300 |
ActionId |
Gets or sets the action id. |
integer |
Required Range: inclusive between 1 and 2147483647 |
JobId |
Gets or sets the job id. |
integer |
None. |
TechnicityId |
Gets or sets the technicity id. |
integer |
None. |
Quantity |
Gets or sets the quantity of the parts in the operation. |
decimal number |
Range: inclusive between 0 and 1,79769313486232E+308 |
Price |
Gets or sets the price of the part reference in the operation. |
decimal number |
None. |
LabourTime |
Gets or sets the labour time wasted in the operation. |
decimal number |
Range: inclusive between 0 and 1,79769313486232E+308 |
LabourPrice |
Gets or sets the labour price of the operation. |
decimal number |
Range: inclusive between 0 and 1,79769313486232E+308 |
TotalPrice |
Gets or sets the total price of the operation. |
decimal number |
Range: inclusive between -1,79769313486232E+308 and 1,79769313486232E+308 |
GroupName |
Gets or sets the group name of the client operation. |
string |
String length: inclusive between 0 and 255 |
ClientId |
Gets or sets the client id. |
integer |
Required Range: inclusive between 1 and 2147483647 |
IsTaxExc |
Gets or sets a value indicating whether a user operation is excludes (true) or not (false) the tax. |
boolean |
None. |
Request Formats
application/json, text/json
{ "referenceCode": "sample string 1", "referenceDescription": "sample string 2", "partName": "sample string 3", "actionId": 4, "jobId": 1, "technicityId": 1, "quantity": 5.1, "price": 6.1, "labourTime": 7.1, "labourPrice": 8.1, "totalPrice": 9.1, "groupName": "sample string 10", "clientId": 11, "isTaxExc": true }
application/xml, text/xml
<ClientOperationInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtApi.DistributedServices.ApiRest.Models.ClientOperations"> <ActionId>4</ActionId> <ClientId>11</ClientId> <GroupName>sample string 10</GroupName> <IsTaxExc>true</IsTaxExc> <JobId>1</JobId> <LabourPrice>8.1</LabourPrice> <LabourTime>7.1</LabourTime> <PartName>sample string 3</PartName> <Price>6.1</Price> <Quantity>5.1</Quantity> <ReferenceCode>sample string 1</ReferenceCode> <ReferenceDescription>sample string 2</ReferenceDescription> <TechnicityId>1</TechnicityId> <TotalPrice>9.1</TotalPrice> </ClientOperationInputModel>
application/x-www-form-urlencoded
Response Information
Resource Description
The location at which the content has been modified.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.