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

# companies updateContexts

> Atomically patches up to 100 distinct companies. Unknown, deleted, or foreign companies reject the entire batch. Omitted fields remain unchanged; null clears a field.



## OpenAPI

````yaml https://api.interfere.com/openapi.json patch /v3/workspaces/{workspaceSlug}/tenants/context
openapi: 3.0.4
info:
  title: Interfere API
  termsOfService: https://interfere.com/legal/terms-of-service
  contact:
    email: support@interfere.com
    name: Interfere Support
    url: https://interfere.com/~/*/settings/support
  license:
    name: All Rights Reserved
    url: https://interfere.com/legal/terms-of-service
  description: >-
    Register builds, ingest telemetry, and inspect application issues. Build
    operations authenticate with a secret surface key; SDK ingestion uses a
    publishable surface key. Dashboard operations require a Clerk session, and
    investigation endpoints require workload identity. Authentication
    alternatives are listed on each operation. Retry only when the operation
    contract permits it, preserving the original idempotency key.
  version: 3.0.0
servers:
  - url: https://api.interfere.com
    description: This environment
security: []
tags:
  - name: Releases
    description: Build registration and source-map uploads
  - name: Sessions
    description: Session identity, activity, and events
  - name: tenants
    x-displayName: Companies
externalDocs:
  url: https://interfere.com/docs
  description: Interfere Documentation
paths:
  /v3/workspaces/{workspaceSlug}/tenants/context:
    patch:
      tags:
        - tenants
      summary: companies updateContexts
      description: >-
        Atomically patches up to 100 distinct companies. Unknown, deleted, or
        foreign companies reject the entire batch. Omitted fields remain
        unchanged; null clears a field.
      operationId: tenants_updateContexts
      parameters:
        - name: workspaceSlug
          in: path
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                tenants:
                  minItems: 1
                  maxItems: 100
                  items:
                    properties:
                      arr:
                        anyOf:
                          - properties:
                              amount:
                                pattern: ^(?:0|[1-9]\d{0,15})(?:\.\d{1,4})?$
                                type: string
                              currency:
                                pattern: ^[A-Z]{3}$
                                type: string
                            required:
                              - amount
                              - currency
                            additionalProperties: false
                            type: object
                          - enum:
                              - null
                      tier:
                        anyOf:
                          - minLength: 1
                            maxLength: 100
                            type: string
                          - enum:
                              - null
                      endUserOrgId:
                        format: uuid
                        type: string
                    required:
                      - endUserOrgId
                    additionalProperties: false
                    type: object
                  type: array
              required:
                - tenants
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTenantContextsResponse'
        '400':
          $ref: '#/components/responses/RpcValidationError'
        '401':
          description: Missing or invalid credentials
          content:
            application/json:
              schema:
                oneOf:
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - AUTH_MISSING
                      status:
                        enum:
                          - 401
                      message:
                        default: Request is missing session credentials.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - AUTH_SESSION_INVALID
                      status:
                        enum:
                          - 401
                      message:
                        default: Session token is missing, expired, or not valid here.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - AUTH_ORG_REQUIRED
                      status:
                        enum:
                          - 401
                      message:
                        default: An active workspace session is required.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - $ref: '#/components/schemas/RpcUnexpectedError'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                oneOf:
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - NETWORK_ACCESS_DENIED
                      status:
                        enum:
                          - 403
                      message:
                        default: >-
                          This network is not allowed to access the workspace.
                          Connect to an allowed network and try again.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - WORKSPACE_ACCESS_DENIED
                      status:
                        enum:
                          - 403
                      message:
                        default: Workspace access is unavailable for this session.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - $ref: '#/components/schemas/RpcUnexpectedError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                oneOf:
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - COMPANY_NOT_FOUND
                      status:
                        enum:
                          - 404
                      message:
                        default: Company not found.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - WORKSPACE_NOT_FOUND
                      status:
                        enum:
                          - 404
                      message:
                        default: Workspace not found.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - $ref: '#/components/schemas/RpcUnexpectedError'
        '503':
          description: Service temporarily unavailable; retry after the indicated delay
          content:
            application/json:
              schema:
                oneOf:
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - NETWORK_ACCESS_UNAVAILABLE
                      status:
                        enum:
                          - 503
                      message:
                        default: >-
                          Network access could not be checked. Try again
                          shortly.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - properties:
                      defined:
                        enum:
                          - true
                      code:
                        enum:
                          - OPERATION_UNAVAILABLE
                      status:
                        enum:
                          - 503
                      message:
                        default: Operation is temporarily unavailable.
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                    type: object
                  - $ref: '#/components/schemas/RpcUnexpectedError'
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      security:
        - clerkSession: []
components:
  schemas:
    GetTenantContextsResponse:
      properties:
        tenants:
          items:
            $ref: '#/components/schemas/GetTenantContextResponse'
          type: array
      required:
        - tenants
      type: object
    RpcUnexpectedError:
      properties:
        defined:
          enum:
            - false
        code:
          type: string
        status:
          type: number
        message:
          type: string
        data: {}
      required:
        - defined
        - code
        - status
        - message
      type: object
    GetTenantContextResponse:
      properties:
        endUserOrgId:
          format: uuid
          type: string
        arr:
          anyOf:
            - properties:
                amount:
                  pattern: ^(?:0|[1-9]\d{0,15})(?:\.\d{1,4})?$
                  type: string
                currency:
                  pattern: ^[A-Z]{3}$
                  type: string
              required:
                - amount
                - currency
              additionalProperties: false
              type: object
            - enum:
                - null
        tier:
          anyOf:
            - type: string
            - enum:
                - null
      required:
        - endUserOrgId
        - arr
        - tier
      type: object
  responses:
    RpcValidationError:
      description: Request parameters or body failed validation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RpcUnexpectedError'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying this request
      schema:
        pattern: ^[0-9]+$
        example: '30'
        type: string
  securitySchemes:
    clerkSession:
      description: >-
        Clerk session or delegated OAuth access token of an Interfere user.
        Workspace routes also accept API keys with explicit permission scopes.
      scheme: bearer
      type: http

````

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