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

# Put organisations hubs

> Update an existing hub, by ID for the given organisation.




## OpenAPI

````yaml put /organisations/{organisationId}/hubs/{hubId}
openapi: 3.0.3
info:
  title: Switchboard API
  description: >-
    The Switchboard API provides users the ability to manage their Apps,
    Integrations and Workflows
  version: 0.0.1-alpha.0
servers:
  - url: https://platform.versori.com/api/switchboard/v1alpha1/
    description: Production server
  - url: http://localhost:8080/v1alpha1/
    description: Localhost
security:
  - apiKey: []
paths:
  /organisations/{organisationId}/hubs/{hubId}:
    put:
      tags:
        - hubs
      description: |
        Update an existing hub, by ID for the given organisation.
      operationId: UpdateHub
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          example: '101'
        - name: hubId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        $ref: '#/components/requestBodies/UpdateHubRequest'
      responses:
        '200':
          $ref: '#/components/responses/GetHubResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  requestBodies:
    UpdateHubRequest:
      description: >
        Payload to update an existing Hub.


        The `id` and `orgId` fields are immutable and must match the fields from
        the URL. This is a full replace/update,

        any unset fields will be unset in the database.
      content:
        application/json:
          schema:
            type: object
            allOf:
              - $ref: '#/components/schemas/Hub'
  responses:
    GetHubResponse:
      description: A single Hub result
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Hub'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Hub:
      type: object
      properties:
        id:
          type: string
        orgId:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        deletedAt:
          type: string
          format: date-time
      required:
        - id
        - orgId
        - name
        - createdAt
        - updatedAt
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````