You may only change a limited set of fields on an existing Transaction
$ curl -i \ -H "Accept: application/json; version=1" \ -H "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQyLCJpYXQiOjE0NjM2OTQ4MjN9.k48v-R-un93KdIXqp9Zi12JOGJCu8uibtrWjscFCTqc" \ -X PUT \ -H 'Content-type: application/json' \ -d '{"transaction": { "extended": { "contract_id": 78923 }}' \ https://api.record360.com/api/transactions/42 HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Cache-Control: max-age=0, private, must-revalidate { "transaction": { ... "extended": { "contract_id": 78923 } } }
Param name | Description |
---|---|
transaction
required |
Transaction attributes Validations:
|
transaction[asset_id]
optional , nil allowed |
ID of the corresponding Asset Validations:
|
transaction[location_id]
optional |
Location ID (manager only)- required even if draft if inspection (transaction) is created by managers Validations:
|
transaction[department_id]
optional , nil allowed |
Department ID Validations:
|
transaction[work_order_id]
optional , nil allowed |
Work Order ID Validations:
|
transaction[task_id]
optional , nil allowed |
Task ID Validations:
|
transaction[check_in]
optional , nil allowed |
Check-in/-out? Validations:
|
transaction[draft]
optional , nil allowed |
Is it a draft? Validations:
|
transaction[damage]
optional , nil allowed |
Damage? Validations:
|
transaction[email_recipients]
optional , nil allowed |
Email addresses for transaction summary email Validations:
|
transaction[sms_recipients]
optional , nil allowed |
Phone numbers for transaction summary PDF - in format ‘+12065554321’ Validations:
|
transaction[geo_coord]
optional , nil allowed |
Geographical location (longitude, latitude) Validations:
|
transaction[notations]
optional , nil allowed |
Notations Validations:
|
transaction[notations_extended]
optional , nil allowed |
Notations extended for Inline data like media Validations:
|
transaction[workflow_id]
optional , nil allowed |
Workflow ID Validations:
|
transaction[photos]
optional |
Photos Validations:
|
transaction[photos][image]
required |
File ID of uploaded image Validations:
|
transaction[photos][notation]
optional , nil allowed |
Notation (damage type) Validations:
|
transaction[photos][damage_area]
optional , nil allowed |
Damage area in photo (left,top (,right,bottom) Validations:
|
transaction[photos][geo_coord]
optional , nil allowed |
Location (longitude, latitude) Validations:
|
transaction[photos][created_at]
required |
Creation time Validations:
|
transaction[photos][instruction_id]
optional , nil allowed |
Instructions for Photo Validations:
|
transaction[photos][overlays]
optional , nil allowed |
Overlays the server will add to photo to indicate region of interest Validations:
|
transaction[photos][overlays][type]
required |
Type of overlay (must be ‘symbol’) Validations:
|
transaction[photos][overlays][cx]
required |
Left position as a float value between 0 and 1 (percentage from left) Validations:
|
transaction[photos][overlays][cy]
required |
Top position as a float value between 0 and 1 (percentage from top) Validations:
|
transaction[photos][overlays][symbol]
optional , nil allowed |
Symbol to overlay (must be ‘ring’, ‘ring@2x’, ‘ring@3x’) Validations:
|
transaction[videos]
optional |
Videos Validations:
|
transaction[videos][video]
required |
File ID of uploaded video Validations:
|
transaction[videos][duration]
optional |
Length of video file (in seconds) Validations:
|
transaction[videos][geo_coord]
optional , nil allowed |
Location (longitude, latitude) Validations:
|
transaction[videos][created_at]
required |
Creation time Validations:
|
transaction[signatures]
optional |
Signatures Validations:
|
transaction[signatures][name]
optional , nil allowed |
Name of the signatory Validations:
|
transaction[signatures][image]
optional , nil allowed |
File ID of uploaded signature image Validations:
|
transaction[signatures][geo_coord]
optional , nil allowed |
Location (longitude, latitude) Validations:
|
transaction[signatures][created_at]
required |
Creation time Validations:
|
transaction[files]
optional |
Attached files Validations:
|
transaction[files][file]
required |
File ID of uploaded attachment Validations:
|
transaction[files][description]
optional , nil allowed |
Description Validations:
|
transaction[ident_docs]
optional |
Identification documents Validations:
|
transaction[ident_docs][front_image]
required |
File ID of uploaded image for document front Validations:
|
transaction[ident_docs][back_image]
optional , nil allowed |
File ID of uploaded image for document back Validations:
|
transaction[ident_docs][identity]
optional |
Identity information (varies by document type) Validations:
|
transaction[forms]
optional |
Form data Validations:
|
transaction[forms][form_template_id]
required |
FormTemplate ID Validations:
|
transaction[forms][values]
required |
Form field values Validations:
|
transaction[extended]
optional , nil allowed |
Extended data Validations:
|
transaction[recalls]
optional , nil allowed |
Vehicle recall data Validations:
|