---
updatedAt: 2026-05-27T00:39:46.000Z
agentTools:
  projectIndex: https://docs.trybadge.com/llms.txt
---

# Update workspace

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Badge API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.trybadge.com/v0"
    }
  ],
  "security": [
    {
      "WorkspaceAuth": []
    }
  ],
  "tags": [
    {
      "name": "Workspace"
    }
  ],
  "paths": {
    "/workspace": {
      "patch": {
        "operationId": "workspaceUpdate",
        "tags": [
          "Workspace"
        ],
        "summary": "Update workspace",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companyInfo": {
                    "$ref": "#/components/schemas/CompanyInfo"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "workspace"
                  ],
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "companyInfo": {
                          "$ref": "#/components/schemas/CompanyInfo"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "CompanyInfo": {
        "type": "object",
        "description": "Company info is displayed as the issuer details on the back of passes.",
        "required": [
          "name",
          "address",
          "supportEmail"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "address": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "description": "An array of strings, where each string represents a single line of the company's address."
          },
          "supportEmail": {
            "type": "string",
            "format": "email",
            "description": "This will be displayed to users for customer support inquiries."
          }
        }
      }
    }
  }
}
```