---
title: "Update a resource group"
method: PUT
path: "/api/v4/projects/{id}/resource_groups/{key}"
tags: ["ci_resource_groups"]
---

# Update a resource group

`PUT /api/v4/projects/{id}/resource_groups/{key}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/resource_groups/{key}`
- Auth: none declared

Updates the properties for a specified resource group. It returns `200` if the resource group was successfully updated. In case of an error, a status code `400` is returned.

## Path parameters

- `id` string, required
- `key` string, required

## Request body

- PutApiV4ProjectsIdResourceGroupsKey: Update a resource group
  - `process_mode` 'unordered' | 'oldest_first' | 'newest_first' | 'newest_ready_first': The process mode of the resource group

## Response `200`

Update a resource group

- APIEntitiesCiResourceGroup: API_Entities_Ci_ResourceGroup model
  - `id` integer, required
  - `key` string, required
  - `process_mode` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
