---
title: "Add Attachments to Work Request Note"
method: POST
path: "/workrequest/{workRequestId}/notes/{noteId}/attachments"
tags: ["Attachments"]
---

# Add Attachments to Work Request Note

`POST /workrequest/{workRequestId}/notes/{noteId}/attachments`

## Request

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

*In limited availability phase.*
            <br />Add Attachments to Work Request Note. Returns list of attachments Id for successful request.

## Path parameters

- `workRequestId` integer, required
- `noteId` integer, required

## Request body `multipart/form-data`

- ServiceChannelServicesMessagingAttachmentsAddAttachmentRequest[]
  - `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/> 503 - Validation fails; <br/> 8020 - InvalidWorkRequestIdentifier;
- `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)
