---
title: "Add assets"
method: PUT
path: "/assets/workorders/attachassets"
tags: ["Assets"]
---

# Add assets

`PUT /assets/workorders/attachassets`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/assets/workorders/attachassets`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/assets/workorders/attachassets/put.ts> (a function with typed inputs; its response is checked against the schema)

Assigns several assets to the specified work order at a time. The *MultipleAssetsPerWorkOrder* FF should be enabled for the method to work properly.
            <br />***Note***: Assets added before will remain attached to the work order along with the new ones.

## Request body

- ServiceChannelServicesMessagingAssetsUpdateAssetsInWORequest
  - `RecId` integer
  - `Assets` object

## Response `200`

The specified assets are attached to the work order.

- SystemObject

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 502 — Asset is not found
- `401`: The request is not authorized. <br>Error codes: 504 — API call rejected by security permissions

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
