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

# Update Org

> Update an organization's name and/or slug. Requires admin role.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json patch /v1/orgs/{org_id}
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/orgs/{org_id}:
    patch:
      tags:
        - orgs
      summary: Update Org
      description: Update an organization's name and/or slug. Requires admin role.
      operationId: orgs_update_org
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Org Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrgRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    UpdateOrgRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Name
        slug:
          anyOf:
            - type: string
              maxLength: 63
              pattern: ^[a-z][a-z0-9-]*[a-z0-9]$
            - type: 'null'
          title: Slug
        logo_data_url:
          anyOf:
            - type: string
              maxLength: 1500000
            - type: 'null'
          title: Logo Data Url
      type: object
      title: UpdateOrgRequest
      description: Request body for updating an organization.
    OrgResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        plan:
          anyOf:
            - $ref: '#/components/schemas/OrgPlan'
            - type: 'null'
        spend_cap:
          anyOf:
            - type: integer
            - type: 'null'
          title: Spend Cap
        spend_cap_policy:
          $ref: '#/components/schemas/SpendCapPolicy'
        current_period_spend_cents:
          type: integer
          title: Current Period Spend Cents
          default: 0
        spend_cap_exceeded:
          type: boolean
          title: Spend Cap Exceeded
          default: false
        billing_period_start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Billing Period Start
        billing_period_end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Billing Period End
        member_count:
          type: integer
          title: Member Count
        member_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Member Limit
        has_payment_method:
          type: boolean
          title: Has Payment Method
          default: false
        is_internal:
          type: boolean
          title: Is Internal
          default: false
        my_role:
          $ref: '#/components/schemas/OrgRole'
        onboarding_completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Onboarding Completed At
        logo_data_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Logo Data Url
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - slug
        - plan
        - spend_cap
        - spend_cap_policy
        - member_count
        - my_role
        - created_at
        - updated_at
      title: OrgResponse
      description: Response for a single organization.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    OrgPlan:
      type: string
      enum:
        - paygo
        - team
        - enterprise
      title: OrgPlan
      description: Billing plan tier for an organization.
    SpendCapPolicy:
      type: string
      enum:
        - 'off'
        - alerts_only
        - freeze_new_spend
        - hard_stop
      title: SpendCapPolicy
      description: How floo should react when an org reaches its spend cap.
    OrgRole:
      type: string
      enum:
        - admin
        - member
        - viewer
      title: OrgRole
      description: Role of a user within an organization.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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