> ## Documentation Index
> Fetch the complete documentation index at: https://developer.hooper.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a group

> Only the fields you send change. Not available for your organization's own group, or for a group your account's owner doesn't own.



## OpenAPI

````yaml /openapi.json post /v1/groups/{id}
openapi: 3.1.0
info:
  title: Hooper API
  version: 1.0.0
  description: >-
    Submit basketball game video and receive highlights, shots and per-player
    box scores.


    All endpoints require `Authorization: Bearer hk_prod_…`, except `GET
    /v1/pricing`, which is public. Money fields are integer **cents**.
    Timestamps are Unix seconds. Every list — top-level or embedded — is `{
    object: "list", data, has_more, total_count }`.
servers:
  - url: https://zeus.hooper.gg
    description: Production (accepts hk_prod_ keys)
security:
  - apiKey: []
tags:
  - name: Uploads
    description: Resumable video uploads to Hooper storage.
  - name: Sessions
    description: >-
      A session is one submitted game and everything the pipeline produced for
      it.
  - name: Groups
    description: The teams and groups in the Hooper app that your sessions are sent to.
  - name: Billing
    description: Prepaid credits, metered per second of video.
  - name: Webhooks
    description: Signed HTTP callbacks when a session finishes.
  - name: Events
    description: The log of every event Hooper has emitted for your organization.
paths:
  /v1/groups/{id}:
    post:
      tags:
        - Groups
      summary: Update a group
      description: >-
        Only the fields you send change. Not available for your organization's
        own group, or for a group your account's owner doesn't own.
      operationId: updateGroup
      parameters:
        - $ref: '#/components/parameters/GroupId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGroupRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            `group_not_owned`, or `feature_disabled` (the API is turned off for
            your organization)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: '`group_is_default`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    GroupId:
      name: id
      in: path
      required: true
      schema:
        type: string
        example: grp_412
  schemas:
    UpdateGroupRequest:
      type: object
      additionalProperties: false
      description: >-
        Only the fields you send change. Send `null` to clear a field; `privacy:
        null` goes back to the default.
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Can't be cleared.
        privacy:
          type: string
          nullable: true
          enum:
            - public
            - private
            - hidden
        description:
          type: string
          nullable: true
          maxLength: 500
        level:
          type: string
          nullable: true
          enum:
            - recreational
            - intramural
            - youth
            - high-school
            - college
            - semi-pro
            - pro
        city:
          type: string
          nullable: true
          maxLength: 100
        state:
          type: string
          nullable: true
          maxLength: 100
        country:
          type: string
          nullable: true
          maxLength: 100
        metadata:
          type: object
          nullable: true
          additionalProperties:
            type: string
            maxLength: 500
          description: >-
            Merged into the group's metadata: each key you send is set, and a
            key set to `""` is removed. `null` removes them all. At most 20 keys
            after the merge.
    Group:
      type: object
      properties:
        id:
          type: string
          example: grp_412
        object:
          type: string
          const: group
        created:
          type: integer
          description: Unix seconds.
        name:
          type: string
          example: Acme Varsity
        type:
          type: string
          description: Groups you create or link are `team` or `pickup`.
          example: team
        privacy:
          type: string
          enum:
            - public
            - private
            - hidden
          description: >-
            Who can find and join it in the Hooper app. `public`: anyone can
            find and join. `private`: anyone can find it; joining needs an
            invite. `hidden`: it doesn't show up in search; only people with an
            invite can see or join it.
        description:
          type: string
          nullable: true
        level:
          type: string
          nullable: true
          enum:
            - recreational
            - intramural
            - youth
            - high-school
            - college
            - semi-pro
            - pro
          description: How competitive the team is.
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Your own key/values; `{}` when there are none.
          example:
            team_id: lg-t-12
        linked:
          type: boolean
          description: >-
            `true` when the group belongs to your organization and accepts
            sessions. `false` for a group you can link (`POST
            /v1/groups/{id}/link`).
        default:
          type: boolean
          description: >-
            `true` for your organization's own group, where a session sent
            without `group` lands. It can't be updated, unlinked or deleted.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - insufficient_credits
                - rate_limit_error
                - api_error
            code:
              type: string
              example: parameter_invalid
            message:
              type: string
            param:
              type: string
              description: The request field the error refers to, when there is one.
              example: source.url
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or wrong-environment API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: No such object for this organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: More than 60 requests per minute for this key
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: hk_prod_…
      description: >-
        API key issued by Hooper for your organization. There is one
        environment, production.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.