---
updatedAt: 2026-07-06T17:34:06.000Z
agentTools:
  projectIndex: https://developers.yoodli.ai/llms.txt
---

# Update a User Group

Updates an existing User Group within an Organization.
Currently supports updating the User Group name only.

Rate limit category: Medium API

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yoodli API spec",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://app.yoodli.ai/api",
      "description": "Official API server"
    },
    {
      "url": "http://localhost:3001/api",
      "description": "(Yoodli internal use only) local server"
    }
  ],
  "tags": [
    {
      "name": "User Group Management",
      "x-tag-expanded": false,
      "description": "Operations on User Groups."
    }
  ],
  "paths": {
    "/v3/orgs/{orgId}/hubs/{hubId}": {
      "patch": {
        "summary": "Update a User Group",
        "tags": [
          "User Group Management"
        ],
        "description": "Updates an existing User Group within an Organization.\nCurrently supports updating the User Group name only.\n\nRate limit category: Medium API",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "description": "Organization ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "User Group ID. Use `default` to refer to the default User Group of the Organization.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The User Group was updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubResponseItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The caller does not have permission to update the User Group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The Organization or User Group not found or no access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message. This is for developers, and not for end users or translated."
          },
          "code": {
            "type": "string",
            "description": "Error code.\n Some API provide this field to identify a known mode of failure.\n The user is Frontend is recommended to translate this error code into a user friendly error message."
          }
        },
        "required": [
          "error"
        ]
      },
      "HubResponseItem": {
        "type": "object",
        "properties": {
          "id": {
            "examples": [
              "dE3f4gH5"
            ],
            "type": "string",
            "description": "ID of the User Group."
          },
          "name": {
            "examples": [
              "Sales Team"
            ],
            "type": "string",
            "description": "Name of the User Group."
          },
          "org_default": {
            "examples": [
              false
            ],
            "type": "boolean",
            "description": "Whether this User Group is the default User Group of the Organization."
          },
          "creation_date": {
            "examples": [
              "2024-01-15T10:30:00.000Z"
            ],
            "type": "string",
            "description": "The date and time when the User Group was created in `YYYY-MM-DDTHH:mm:ss.sssZ` format."
          }
        },
        "required": [
          "id",
          "name",
          "org_default",
          "creation_date"
        ]
      },
      "HubUpdateRequest": {
        "type": "object",
        "properties": {
          "name": {
            "examples": [
              "Sales Team",
              "Engineering"
            ],
            "type": "string",
            "description": "New name of the User Group."
          }
        },
        "required": [
          "name"
        ]
      }
    }
  }
}
```