---
title: "Update Registry Repository"
method: PATCH
path: "/registry/repos/{repository_id}"
tags: ["registry-repositories"]
---

# Update Registry Repository

`PATCH /registry/repos/{repository_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/registry/repos/{repository_id}`
- Auth: API key in cookie `fastapiusersauth`

Update an existing registry repository.

## Path parameters

- `repository_id` string, uuid, required

## Request body

- RegistryRepositoryUpdate
  - `last_synced_at` string, date-time, nullable
  - `commit_sha` string, nullable: The commit SHA of the repository
  - `origin` string, nullable: The origin of the repository

## Response `200`

Successful Response

- RegistryRepositoryRead
  - `id` string, uuid, required
  - `origin` string, required
  - `last_synced_at` string, date-time, nullable, required
  - `commit_sha` string, nullable, required
  - `current_version_id` string, uuid, nullable
  - `actions` RegistryActionRead[], required
    - `name` string, required: The name of the action
    - `description` string, required: The description of the action
    - `namespace` string, required: The namespace of the action
    - `type` 'udf' | 'template', required: The type of the action
    - `origin` string, required: The origin of the action as a url
    - `secrets` RegistrySecretType[], nullable: The secrets required by the action
      - union
        - RegistrySecret
          - `type` 'custom'
          - `name` string, required
          - `keys` string[], nullable
          - `optional_keys` string[], nullable
          - `optional` boolean
          - `secret_type` 'custom' | 'ssh_key' | 'mtls' | 'ca_cert'
        - RegistryOAuthSecret: OAuth secret for a provider.
          - `type` 'oauth'
          - `provider_id` string, required
          - `grant_type` 'authorization_code' | 'client_credentials', required
          - `optional` boolean
          - `name` string, required
    - `interface` RegistryActionInterface, required
      - `expects` object, required
      - `returns` unknown, required
    - `implementation` union, required
      - RegistryActionTemplateImpl
        - `type` 'template'
        - `template_action` TemplateAction, required
          - `type` 'action'
          - `definition` TemplateActionDefinition, required
            - `name` string, required: The action name
            - `namespace` string, required: The namespace of the action
            - `title` string, required: The title of the action
            - `description` string: The description of the action
            - `display_group` string, required: The display group of the action
            - `doc_url` string, nullable: Link to documentation
            - `author` string, nullable: Author of the action
            - `deprecated` string, nullable: Marks action as deprecated along with message
            - `secrets` RegistrySecretType[], nullable: The secrets to pass to the action
              - …
            - `expects` object, required: The arguments to pass to the action
            - `steps` ActionStep[], required: The sequence of steps for the action
              - …
            - `returns` union, required: The result of the action
              - …
      - RegistryActionUDFImpl
        - `type` 'udf'
        - `url` string, required: The package url
        - `module` string, required: The module name
        - `name` string, required: The name of the UDF function name
    - `default_title` string, nullable: The default title of the action
    - `display_group` string, nullable: The presentation group of the action
    - `doc_url` string, nullable: Link to documentation
    - `author` string, nullable: Author of the action
    - `deprecated` string, nullable: Marks action as deprecated along with message
    - `options` RegistryActionOptions
      - `include_in_schema` boolean
      - `requires_approval` boolean
      - `required_entitlements` string[], nullable
    - `repository_id` string, uuid4, required: The repository id
    - `id` string, uuid4, required: The registry action id
    - `action` string, required: The full action identifier.
    - `is_template` boolean, required: Whether the action is a template.

## Other responses

- `422`: Validation Error

---

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