---
title: "Update work request"
method: PATCH
path: "/workrequests/{id}"
tags: ["Work Requests"]
---

# Update work request

`PATCH /workrequests/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `skipWebhook` boolean

## Request body

- object
  - `title` string
  - `description` string, nullable
  - `priority` 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH'
  - `assetId` number, nullable
  - `locationId` number, nullable
  - `extraFields` object — Custom Fields on the entity. The object keys are the exact Custom Field labels, including spaces or special characters. (ie: "Request Type")
  - `approverTeamId` number, nullable — ID of the team that is reponsible for approving the request.
  - `creatorContactInfo` string, nullable — The creator's contact information associated with this work order request. Possible types are `EMAIL`, `PHONE`, and `OTHER`, which will be inferred from the string provided

## Response `200`

Successfully edited work request

- object
  - `workRequest` object, required
    - `id` number, required — Global ID of the work request
    - `title` string, required
    - `attachments` object[] — List of attachments linked to the Work Request
      - `id` number, required — Global ID of the attachment
      - `mimeType` string, required — MIME type of the file
      - `fileName` string, required — Attachment's file name
      - `url` string, required — Url of the file. Valid for 60 minutes.
      - `createdAt` string, date-time, required — Date & time at which the attachment was uploaded
      - `width` number, nullable — Width if the file is an image
      - `height` number, nullable — Height if the file is an image
    - `thumbnail` object, nullable
      - `id` number, required — Global ID of the attachment
      - `mimeType` string, required — MIME type of the file
      - `fileName` string, required — Attachment's file name
      - `url` string, required — Url of the file. Valid for 60 minutes.
      - `createdAt` string, date-time, required — Date & time at which the attachment was uploaded
      - `width` number, nullable — Width if the file is an image
      - `height` number, nullable — Height if the file is an image
    - `priority` 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH', required
    - `description` string, nullable
    - `requestStatus` 'PENDING' | 'REJECTED' | 'APPROVED' | 'DONE', required
    - `assetId` number, nullable
    - `locationId` number, nullable
    - `workOrderId` number, nullable — Global ID of the work order attached to the work request. A work order is created once a work request is approved.
    - `sendEmailNotification` boolean
    - `extraFields` object — Custom Fields on the entity. The object keys are the exact Custom Field labels, including spaces or special characters. (ie: "Request Type")
    - `approverTeamId` number, nullable — ID of the team that is reponsible for approving the request.
    - `creatorContactInfo` object, nullable — The creator's contact information associated with this work order request
      - `type` 'PHONE' | 'EMAIL' | 'OTHER'
      - `value` string
    - `createdAt` string, date-time — Date & time at which the work request was created
    - `updatedAt` string, date-time — Date & time at which the work request was last updated

## Other responses

- `400` — Failed to edit the work request
- `401` — Invalid token
- `404` — Could not find the specified work request.

---

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