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

# Update UI Skill

> Updates the title, status, and instruction of the UI Skill identified by `skillId`. Component type and Flow association cannot be changed by this operation.



## OpenAPI

````yaml /openapi/endpoints/meta-business-agent-public.openapi.json patch /metaBusinessAgents/{entityId}/uiSkills/{skillId}
openapi: 3.0.0
info:
  title: YCloud Meta Business Agent Public API
  version: v2
  description: >-
    Create, configure, test, and operate a Meta Business Agent for a WhatsApp
    Business phone number through YCloud.
servers:
  - url: https://api.ycloud.com/v2
    description: YCloud API base URL
security:
  - api_key: []
tags:
  - name: Meta Business Agents
    description: >-
      Meta Business Agent onboarding, knowledge, skills, connectors, tools,
      operations, and evaluations.
paths:
  /metaBusinessAgents/{entityId}/uiSkills/{skillId}:
    patch:
      tags:
        - Meta Business Agents
      summary: Update UI Skill
      description: >-
        Updates the title, status, and instruction of the UI Skill identified by
        `skillId`. Component type and Flow association cannot be changed by this
        operation.
      operationId: meta-business-agent-update-ui-skill
      parameters:
        - name: entityId
          in: path
          required: true
          schema:
            type: string
          description: WhatsApp Business Phone Number ID that owns the Meta Business Agent.
        - name: skillId
          in: path
          required: true
          schema:
            type: string
          description: UI Skill resource ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicUpdateUiSkillRequest'
      responses:
        '200':
          description: Operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UiSkillDTO'
        '400':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '401':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '403':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '404':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '409':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '429':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '500':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
        '502':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaBusinessAgentErrorResponse'
components:
  schemas:
    PublicUpdateUiSkillRequest:
      type: object
      additionalProperties: false
      properties:
        title:
          type: string
          minLength: 1
        status:
          $ref: '#/components/schemas/UiSkillStatus'
        instruction:
          type: string
          minLength: 1
    UiSkillDTO:
      type: object
      additionalProperties: false
      required:
        - id
        - title
        - component_type
        - status
        - instruction
      properties:
        id:
          type: string
          description: UI Skill resource ID.
        title:
          type: string
          description: Display title for the UI Skill.
        component_type:
          $ref: '#/components/schemas/UiSkillComponentType'
        status:
          $ref: '#/components/schemas/UiSkillStatus'
        instruction:
          type: string
          description: Instruction that tells the agent when to use this UI component.
        flow_id:
          type: integer
          format: int64
          description: WhatsApp Flow ID. Present only for a `flow` UI Skill.
        created_at:
          type: integer
          format: int64
          description: Meta creation timestamp as Unix epoch seconds.
        updated_at:
          type: integer
          format: int64
          description: Meta update timestamp as Unix epoch seconds.
    MetaBusinessAgentErrorResponse:
      type: object
      additionalProperties: true
      properties:
        status:
          type: integer
        code:
          type: string
        message:
          type: string
        target:
          type: string
        docUrl:
          type: string
        requestId:
          type: string
        metaBusinessAgentApiError:
          $ref: '#/components/schemas/MetaBusinessAgentApiError'
    UiSkillStatus:
      type: string
      enum:
        - disabled
        - enabled
      description: Whether the UI Skill is available to the agent.
    UiSkillComponentType:
      type: string
      enum:
        - carousel_quick_reply
        - carousel_url
        - cta_url
        - flow
        - image
        - interactive_list
        - interactive_reply_buttons
        - location
        - location_request
      description: Rich WhatsApp component that the agent may present.
    MetaBusinessAgentApiError:
      type: object
      additionalProperties: false
      properties:
        title:
          type: string
          description: Meta error title, when available.
        detail:
          type: string
          description: Actionable Meta error detail, when available.
        type:
          type: string
          description: Meta error category or URI, when available.
        status:
          type: integer
          description: Upstream HTTP status.
        requestId:
          type: string
          description: Upstream request identifier.
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-API-Key

````

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