---
title: "Update an image group by ID"
method: PUT
path: "/contracts/{contract_id}/image_groups/{image_group_id}"
tags: ["Contract - Images"]
---

# Update an image group by ID

`PUT /contracts/{contract_id}/image_groups/{image_group_id}`

## Request

- Base URL: `https://api.oneflow.com/v1`
- URL: `https://api.oneflow.com/v1/contracts/{contract_id}/image_groups/{image_group_id}`
- Auth: none declared. Required headers: `x-oneflow-api-token`, `x-oneflow-user-email`

Use this endpoint to update the configuration of a specific image group in a contract.

## Path parameters

- `contract_id` integer, required
- `image_group_id` integer, required

## Headers

- `x-oneflow-api-token` string, required
- `x-oneflow-user-email` string, email, required

## Request body

- object: Request body for updating an image group configuration.
  - `_private_ownerside` object: Image group attributes that are private to the ownerside.
    - `custom_id` string, nullable, required

## Response `200`

Returns the updated contract image group.

- object: An image group and its associated image in the contract.
  - `_private_ownerside` object, nullable, required: Image group data that is private to the ownerside.
    - `created_time` string, datetime, required
    - `custom_id` string, nullable, required
    - `updated_time` string, datetime, nullable, required
  - `files` object[], required: A list of image files in the group.
    - `_private_ownerside` object, nullable, required: File data that is private to the ownerside.
      - `created_time` string, datetime, required
      - `updated_time` string, datetime, nullable, required
    - `alt_text` string, nullable, required: The alternative text of the image.
    - `extension` string, nullable, required: The image extension.
    - `id` integer, required
    - `size` integer, nullable, required: The size of the image in bytes.
  - `id` integer, required
  - `type` 'image', required: The type of the image group. The only available type is `image`.

## Other responses

- `400`: Invalid format or content of the request.
- `401`: The API token or the user email is invalid.
- `403`: The request is not authorized by the server.
- `404`: A required entity is missing.
- `409`: A conflict occurred with the current state of the target resource.

## Changes

- **2026-11-03** `0a4e1e88ac45`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/changes/contracts/:contract_id/image_groups/:image_group_id/put.md)

---

[API](https://skmtc.dev/oneflow/apis/public-api-for-oneflow.md) - [All operations](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/llms.txt) - [OpenAPI document](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/revisions/0a4e1e88ac45?raw)
