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

# Update a workspace



## OpenAPI

````yaml https://dojo.frogbot.ai/api/openapi.json patch /api/workspaces/{id}
openapi: 3.1.0
info:
  title: Dojo API
  version: '1'
  description: >-
    Everything Dojo's pages do, for scripts and agents. Sign in with an API key
    as `Authorization: Bearer fb_…`. Paying and accepting the terms happen at a
    link a route answers, for a person to open.
servers:
  - url: https://dojo.frogbot.ai
security:
  - apiKey: []
tags:
  - name: Sign-in
  - name: Workspaces
  - name: Projects
  - name: Apps
  - name: Templates
  - name: Sharing
  - name: Deployments
  - name: Environment variables
  - name: Domains
  - name: Data
  - name: Billing
  - name: API keys
paths:
  /api/workspaces/{id}:
    patch:
      tags:
        - Workspaces
      summary: Update a workspace
      parameters:
        - name: id
          in: path
          required: true
          description: The workspace's id.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Workspaces'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  doc:
                    $ref: '#/components/schemas/Workspaces'
                  message:
                    type: string
        '400':
          description: '`invalid_request`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '401':
          description: '`unauthorized`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '403':
          description: '`forbidden`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: '`not_found`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
components:
  schemas:
    Workspaces:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        personalOf:
          type: string
          description: The id of a users document.
        businessFeatures:
          type: boolean
          description: >-
            Business features: sharing apps with everyone in the workspace, and
            projects with their own people. On with Business or Platform access.
        platformAccess:
          type: boolean
          description: >-
            Never billed, with every Business feature: FrogBot staff, Trend,
            test workspaces and Enterprise contracts. Only Dojo staff can see or
            change it.
        plan:
          type: string
          enum:
            - none
            - pro
            - business
        subscriptionStatus:
          type: string
        paidApps:
          type: number
        currentPeriodEnd:
          type: string
          format: date-time
        cancelAt:
          type: string
          format: date-time
        stripeCustomerId:
          type: string
        stripeSubscriptionId:
          type: string
        stoppedEmailSentAt:
          type: string
          format: date-time
        aiBalanceUSD:
          type: number
        aiAutoRecharge:
          type: boolean
        aiRechargeThresholdUSD:
          type: number
        aiRechargeAmountUSD:
          type: number
        previewMonth:
          type: string
        previewMinutes:
          type: number
        previewApps:
          type: number
        activity:
          type: string
    Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
              data:
                type: object
                properties:
                  code:
                    type: string
                  url:
                    type: string
                    description: Where a person takes the next step, such as paying.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from `frogbot deploy`'s sign-in, `/api/cli/device/token`, or
        the API keys page.

````

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