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

# Detach an Agent from its template

> Removes template ownership and editable-field restrictions from the selected Agent, then publishes the detached configuration. The Agent keeps its current authored configuration.




## OpenAPI

````yaml post /api/v2/detachAgentFromTemplate
openapi: 3.0.0
info:
  version: 2.0.0
  title: Vida API
  description: Vida API Documentation
servers:
  - url: https://api.vida.dev
    description: Vida Production
    variables:
      baseUrl:
        default: api.vida.dev
        description: Production API Root
security: []
tags:
  - name: Agents
  - name: Inbound Email
    description: Control which senders may create inbound email work for an Agent.
  - name: Features
    description: Inspect capabilities available within an account hierarchy.
  - name: Conversation Logs
    description: Query conversation activity and calculate account-level metrics.
  - name: Computer Agents
    description: Set up, configure, inspect, and manage Vida Computer Agents.
  - name: Computer Agent Sessions
    description: View and reset Computer Agent sessions.
  - name: Accounts
  - name: Agent Templates
    description: Create, manage, and apply reusable Agent configurations.
paths:
  /api/v2/detachAgentFromTemplate:
    post:
      tags:
        - Agent Templates
      summary: Detach an Agent from its template
      description: >
        Removes template ownership and editable-field restrictions from the
        selected Agent, then publishes the detached configuration. The Agent
        keeps its current authored configuration.
      operationId: legacyPostDetachAgents
      parameters: []
      responses:
        '200':
          description: Agent detached from its template
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                  campaign:
                    type: object
                    additionalProperties: true
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: query
      name: token
      description: Vida API Token

````