PUT api/users/me/useroperations/{id}

Edits an existent user operation.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Identifier of the user operation.

string

Required

Body Parameters

Modified user operation to save.

UserOperationInputModel
NameDescriptionTypeAdditional information
ReferenceCode

Gets or sets the user operation reference code.

string

Required

String length: inclusive between 0 and 25

ReferenceDescription

Gets or sets the user operation reference description.

string

String length: inclusive between 0 and 300

PartName

Gets or sets the user 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 user group name of the user operation.

string

String length: inclusive between 0 and 255

OperationTypeId

Gets or sets the operation type id of the user operation.

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

Sample:
{
  "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",
  "operationTypeId": 11,
  "isTaxExc": true
}

application/xml, text/xml

Sample:
<UserOperationInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtApi.DistributedServices.ApiRest.Models.Users">
  <ActionId>4</ActionId>
  <GroupName>sample string 10</GroupName>
  <IsTaxExc>true</IsTaxExc>
  <JobId>1</JobId>
  <LabourPrice>8.1</LabourPrice>
  <LabourTime>7.1</LabourTime>
  <OperationTypeId>11</OperationTypeId>
  <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>
</UserOperationInputModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserOperationInputModel'.

Response Information

Resource Description

The location at which the content has been modified.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.