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

> ## Agent Instructions
> Base URL: https://api.social-api.ai/v1. Send your API key in the Authorization header: Authorization: Bearer <your API key>.
> Every error response from /v1 is JSON: { "error": { "code", "message", "meta" (optional) }, "request_id" }. Branch on error.code; use error.message only for logs.
> A 429 response carries a Retry-After header, in seconds, when the limit has a known wait. Authenticated responses can carry X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset for the per-minute request budget your SocialAPI account shares across every API key (see /guides/rate-limits).
> Paginated list endpoints return next_cursor, at the top level or inside pagination (see /guides/pagination). Pass it as the cursor query parameter to get the next page. An absent or empty next_cursor means you have the last page.
> Treat every ID as an opaque string: do not parse it or assume a format.
> Support differs by platform and by operation. Check /platforms/overview before assuming an operation works on a platform. An unsupported operation returns 501 with error.code resource.not_supported. Some families return their own code instead: reviews, and posts with a target on Telegram or App Store Connect, return 422 account.platform_unsupported; Automations 422 automation.platform_unsupported.

# Edit a published YouTube video (title, description, visibility, Studio tags, cover)



## OpenAPI

````yaml /api-reference/openapi.json patch /platforms/youtube/accounts/{account_id}/videos/{video_id}
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /platforms/youtube/accounts/{account_id}/videos/{video_id}:
    patch:
      tags:
        - YouTube
      summary: >-
        Edit a published YouTube video (title, description, visibility, Studio
        tags, cover)
      operationId: updateYoutubeVideo
      parameters:
        - description: Connected account ID
          name: account_id
          in: path
          required: true
          schema:
            type: string
        - description: YouTube video ID
          name: video_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateYouTubeVideoRequest'
        description: Editable fields (all fields optional; omit any to leave unchanged)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: boolean
      security:
        - BearerAuth: []
components:
  schemas:
    UpdateYouTubeVideoRequest:
      type: object
      properties:
        cover_url:
          description: >-
            Public URL of a JPG or PNG image (50 MB max) to set as the video's
            custom thumbnail. The channel must be verified to use custom
            thumbnails, otherwise the request fails with 403
            platform.youtube.custom_thumbnail_forbidden. If the thumbnail is
            refused, no other field in the request is applied.
          type: string
          example: https://example.com/cover.jpg
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        title:
          type: string
        visibility:
          description: public | unlisted | private
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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