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

# Update Meta agent skill

> Change any field; omitted fields keep their value. An edit sends the skill back to review.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json patch /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/skills/{skill_id}
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
tags:
  - name: Inbox
  - name: Chats
  - name: Messages
  - name: Contacts
  - name: Custom channels
  - name: Segments
  - name: Suppressions
  - name: Assistants
  - name: Agents
  - name: Skills
  - name: Knowledge
  - name: AI
  - name: Broadcasts
  - name: Email sending
  - name: WhatsApp
  - name: WhatsApp Meta agent
  - name: Tables
  - name: Records
  - name: Views
  - name: Pages
  - name: Connections
  - name: Workspace
  - name: Sub-organizations
  - name: Analytics and logs
  - name: Workflows
paths:
  /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/skills/{skill_id}:
    patch:
      tags:
        - WhatsApp Meta agent
      summary: Update Meta agent skill
      description: >-
        Change any field; omitted fields keep their value. An edit sends the
        skill back to review.
      parameters:
        - schema:
            type: string
          required: true
          description: The ID of the org
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the connection
          name: connection_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the WhatsApp phone number the Meta agent runs on
          name: phone_number_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the skill
          name: skill_id
          in: path
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWhatsAppMetaAgentSkillSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UpdateWhatsAppMetaAgentSkillSchema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppMetaAgentSkillSchema'
components:
  schemas:
    UpdateWhatsAppMetaAgentSkillSchema:
      type: object
      properties:
        title:
          type: string
          maxLength: 64
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
          description: Lowercase letters, digits and hyphens.
          example: returns-policy
        description:
          type: string
          minLength: 1
          maxLength: 1024
          description: When the agent applies this skill.
        skill:
          type: string
          minLength: 1
          maxLength: 20000
          description: 'What the agent does: tone, persona, policies or a workflow.'
    WhatsAppMetaAgentSkillSchema:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
        skill:
          type: string
        channel:
          type: string
        status:
          $ref: '#/components/schemas/WhatsAppMetaAgentSkillStatusSchema'
        metadata:
          type: object
          additionalProperties:
            type: string
        created_at:
          type: string
      required:
        - id
        - skill
        - status
    WhatsAppMetaAgentSkillStatusSchema:
      type: string
      enum:
        - pending_review
        - active
        - blocked
      description: >-
        Meta reviews every skill. A blocked skill is kept but never applied,
        usually because it asks for sensitive personal data.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````