---
title: "Update repository configuration"
method: PATCH
path: "/prebuilts-repository/configs/{name}"
tags: ["Prebuilts Repository"]
---

# Update repository configuration

`PATCH /prebuilts-repository/configs/{name}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/prebuilts-repository/configs/{name}`
- Auth: none declared

Updates an existing repository configuration.

## Path parameters

- `name` string, required

## Request body

- object
  - `updates` PrebuiltsRepositoryConfigsNamePatchRequestBodyContentApplicationJsonSchemaUpdates
    - `enabled` boolean: A flag that denotes if the repository configuration is connected
    - `type` 'gitlab': The type of Repository
    - `hostname` string: The hostname of the Respository endpoint
    - `path` string: The path of the Repository endpoint
    - `credentials` PrebuiltsRepositoryConfigsNamePatchRequestBodyContentApplicationJsonSchemaUpdatesCredentials
      - `token` string: An access token used to make HTTP requests

## Response `200`

The result of the update process

- PrebuiltsRepositoryUpdateRepositoryConfigResponse200
  - `status` 'OK' | 'Created': The status of the API request.
  - `message` string: Message containing either confirmation of the operation or the reason for the failure of the operation.
  - `data` IapRepositorySchema: This is the schema for a Repository Configuration used to fetch Prebuilts
    - `enabled` unknown, required
    - `type` unknown, required
    - `hostname` unknown, required
    - `path` unknown, required
    - `credentials` unknown, required
    - `versionStatus` 'current' | 'latest': The version status of the Pre-built Automation in relation to the current IAP version

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Prebuilts Repository` added
  - api tag `prebuiltsRepository` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/prebuilts-repository/configs/:name/patch.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
