---
title: "Add attachments to a WorkRequest"
method: POST
path: "/workrequest/{workRequestId}/attachments"
tags: ["Attachments"]
---

# Add attachments to a WorkRequest

`POST /workrequest/{workRequestId}/attachments`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/workrequest/{workRequestId}/attachments`
- 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/workrequest/:workRequestId/attachments/post.ts> (a function with typed inputs; its response is checked against the schema)

*In limited availability phase.*
            <br />Adds attachments to the specified WorkRequest.

## Path parameters

- `workRequestId` integer, required

## Query parameters

- `actor` string

## Request body `multipart/form-data`

- ServiceChannelServicesMessagingAttachmentsAddAttachmentsRequest
  - `Attachments` ServiceChannelServicesMessagingAttachmentsAddAttachmentRequest[], required: Required, Attachments
    - `Name` string
    - `Description` string
    - `Path` string
    - `Type` 'File' | 'RemoteStorage'
    - `MediaType` string: Mime type of the attachment
    - `Visibility` integer: Note visibility - valid values: null, 1, 2, 3
    - `IsInvoiceDigitalCopy` boolean: Mark attachment as Invoice Digital Copy
    - `IsLocationAttachment` boolean: Indicates if the attachment is copied from location

## Response `201`

Created indicates that the request resulted in a new resource created before the response was sent.

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br/>Error codes: <br/> 502 - Work Request not found;
- `401`: Indicates that the requested resource requires authentication. <br/>Error codes: <br/> 504 - API call rejected by security permissions;
- `500`: Indicates that a generic error has occurred on the server.

---

[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)
