---
title: "Update a resource"
method: PATCH
path: "/v1/resources/{resourceId}"
tags: ["Resources"]
---

# Update a resource

`PATCH /v1/resources/{resourceId}`

Update the details of a single resource (required scope resources:write)

## Path parameters

- `resourceId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- UpdateResourceModel — Update resource model. At least one optional value must be provided
  - `reference` string — The internal reference of the resource - should usually be unique<br/><br/>Optional: Omit to retain current value
  - `name` string — The full name of the resource<br/><br/>Optional: Omit to retain current value
  - `groupId` integer — The unique identifier of the resource's group<br/><br/>Optional: Omit to retain current value
  - `email` string — The email address of the resource<br/><br/>Optional: Omit to retain current value
  - `mobile` string — The mobile telephone number of the resource<br/><br/>Optional: Omit to retain current value
  - `timeZoneId` string — The id of the timezone that the resource operates in<br/><br/>Optional: Omit to retain current value
  - `maxTravelDistance` integer, nullable — The maximum number of kilometres the resource will travel from start location (as crow flies)<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `fuelCard` string — The fuel card number associated to the resource<br/><br/>Optional: Omit to retain current value
  - `businessKey` string — The number associated to the resources business key<br/><br/>Optional: Omit to retain current value
  - `privateKey` string — The number associated to the resources private key<br/><br/>Optional: Omit to retain current value
  - `tachoCard` string — The tachograph driver card number associated to the resource<br/><br/>Optional: Omit to retain current value
  - `isTracked` boolean — Indicates whether tracking data should be collected for this resource<br/><br/>Optional: Omit to retain current value
  - `isTrackedOutOfHours` boolean — Indicates whether out of working hour tracking data is private<br/><br/>Optional: Omit to retain current value
  - `workingHours` WriteWorkingHourModel[] — The resources working hours / shifts, expressed relative to `timeZoneId`. If this field is supplied it will overwrite any existing working hours in the resource<br/><br/>Optional: Omit to retain current value
    - `dayOfWeek` 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday', required — <p>Possible values:</p><ul><li><b>sunday</b></li><li><b>monday</b></li><li><b>tuesday</b></li><li><b>wednesday</b></li><li><b>thursday</b></li><li><b>friday</b></li><li><b>saturday</b></li></ul>
    - `start` string, time, required — The 24H format time of day that the resource starts their shift (hh:mm)
    - `stop` string, time, required — The 24H format time of day that the resource stops their shift (hh:mm)
    - `startAtContactId` integer, nullable — The unique identifier of the contact (location) that the resource starts this shift from
  - `customFields` CustomFieldWriteModel[] — Custom fields associated with the resource. Omit or use an empty list to retain current values<br/><br/>Optional: Omit to retain current value
    - `definitionId` integer, required — The unique identifier of the associated custom field definition
    - `value` string, nullable — The value of this custom field. If set to null, any existing value will be unset

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

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