---
title: "Creates an attachment and adds it to an existing work order"
method: POST
path: "/v1/resourceowner/workorders/{workOrderId}/attachments"
tags: ["ResourceOwnerWorkOrder"]
---

# Creates an attachment and adds it to an existing work order

`POST /v1/resourceowner/workorders/{workOrderId}/attachments`

## Path parameters

- `workOrderId` integer, required

## Request body

- WorkOrderAttachmentModelPOST
  - `URL` string, required
  - `Description` string
  - `AttachmentType` 0 | 1 | 2, required

## Response `200`

Success

## Other responses

- `201` — Successfully created
- `403` — Forbidden access to resource
- `500` — Internal server error

---

[API](https://skmtc.net/automile/apis/automile-api.md) · [All operations](https://skmtc.net/automile/apis/automile-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/automile/automile-api/revisions/bd42075f6b02/schema)
