Assets
Replace an asset
Replaces one asset with another for the specified work order, or when the work order has no asset, attaches it.
<br />Successful response returns AssetId and information about asset validation.
<br />Note: A work order and an asset should belong to the same trade and location.
<br />Note: This method cannot be used if a work order has more than one asset attached.
put/assets/workorders/{workorderId}/attach
Request
- Base URLhttps://sb2api.servicechannel.com/v3
- AuthOAuth 2Authorization codehttps://sb2login.servicechannel.com/oauth/authorizeToken URLhttps://sb2login.servicechannel.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workorderIdinteger required
Unique numeric identifier of the work order you want to assign an asset to. To retrieve IDs of work orders, use the GET /workorders method.
Request body
Response
The ID of the asset attached to the work order is in the response.
Changes
No recorded changes to this operation across all 1 revision of this API.