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

# Enable function

> Enable a function for a provider instance



## OpenAPI

````yaml api-reference/openapi.json post /api/bridge/v1/provider/{provider_instance_id}/function/{function_controller_type_id}/enable
openapi: 3.1.0
info:
  title: soma
  version: v1
servers: []
security: []
tags:
  - name: task
    description: >-
      Task management endpoints for creating, listing, and managing tasks and
      their messages
  - name: secret
    description: Secret management endpoints for storing and retrieving encrypted secrets
  - name: encryption
    description: >-
      Encryption key management endpoints for envelope keys, data encryption
      keys, and aliases
  - name: bridge
    description: >-
      Bridge endpoints for managing providers, credentials, functions, and MCP
      protocol communication
  - name: _internal
    description: >-
      Internal endpoints for health checks, runtime configuration, and SDK code
      generation
  - name: a2a
    description: >-
      Agent-to-agent communication endpoints for agent cards, definitions, and
      JSON-RPC requests
  - name: v1
    description: API version v1 endpoints
paths:
  /api/bridge/v1/provider/{provider_instance_id}/function/{function_controller_type_id}/enable:
    post:
      tags:
        - bridge
        - v1
      summary: Enable function
      description: Enable a function for a provider instance
      operationId: enable-function
      parameters:
        - name: provider_instance_id
          in: path
          description: Provider instance ID
          required: true
          schema:
            type: string
        - name: function_controller_type_id
          in: path
          description: Function controller type ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnableFunctionParamsInner'
        required: true
      responses:
        '200':
          description: Enable function
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunctionInstanceSerialized'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EnableFunctionParamsInner:
      type: object
    FunctionInstanceSerialized:
      type: object
      required:
        - function_controller_type_id
        - provider_controller_type_id
        - provider_instance_id
        - created_at
        - updated_at
      properties:
        created_at:
          $ref: '#/components/schemas/WrappedChronoDateTime'
        function_controller_type_id:
          type: string
        provider_controller_type_id:
          type: string
        provider_instance_id:
          type: string
        updated_at:
          $ref: '#/components/schemas/WrappedChronoDateTime'
    Error:
      type: object
      required:
        - message
      properties:
        data: {}
        message:
          type: string
    WrappedChronoDateTime:
      type: string
      format: date-time

````