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

# Update plugin version details

> Update plugin version details.

You can use this endpoint to change "latest" version of a plugin and add release notes.



## OpenAPI

````yaml api-reference/openapi.yaml patch /plugins/{slug}/versions/{version}
openapi: 3.0.0
info:
  title: Repository Endpoints
  description: >-
    To interract with API, you will need to provide a valid API Key generated on
    [https://dashboard.wp-content.io/](https://dashboard.wp-content.io/).


    Scope will be indicated in each sections. The REST API is build on CRUD
    model and each permission of scope is linked to a method :


    | **Method** | **Permission** |

    | --- | --- |

    | GET | read |

    | PATCH | update |

    | POST | create |

    | DELETE | delete |
  version: 1.0.0
servers:
  - url: https://registry.wp-content.io
security:
  - ApiKeyAuth: []
tags:
  - name: Repository
  - name: Plugins
    description: >-
      This section presents all the endpoints for managing plugins and their
      versions.  


      Scope required : `plugins`
  - name: Plugin Versions
  - name: Themes
    description: >-
      This section presents all the endpoints for managing plugins and their
      versions.  


      Scope required : `plugins`
  - name: Theme Versions
paths:
  /plugins/{slug}/versions/{version}:
    patch:
      tags:
        - Plugin Versions
      summary: Update plugin version details
      description: >-
        Update plugin version details.


        You can use this endpoint to change "latest" version of a plugin and add
        release notes.
      parameters:
        - name: slug
          in: path
          schema:
            type: string
          required: true
          description: Slug of plugin
          example: my-plugin
        - name: version
          in: path
          schema:
            type: string
          required: true
          description: Plugin version to update
          example: 1.0.0
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                release_notes: |-
                  Release notes for this version
                  _Markdown is accepted_.
      responses:
        '200':
          description: OK
          headers:
            Date:
              schema:
                type: string
                example: Wed, 11 Jun 2025 09:19:11 GMT
            Server:
              schema:
                type: string
                example: Apache
            Cache-Control:
              schema:
                type: string
                example: no-store, max-age=0, no-cache
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Debugbar-Time:
              schema:
                type: number
                example: '1749633552.268463'
            Debugbar-Link:
              schema:
                type: string
                example: >-
                  http://localhost:8080/index.php?debugbar_time=1749633552.268463
            Content-Length:
              schema:
                type: integer
                example: '705'
            Keep-Alive:
              schema:
                type: string
                example: timeout=5, max=100
            Connection:
              schema:
                type: string
                example: Keep-Alive
            Content-Type:
              schema:
                type: string
                example: application/json; charset=UTF-8
          content:
            application/json:
              schema:
                type: object
              example:
                version: 1.0.0
                release_notes: |-
                  Release notes for this version
                  _Markdown is accepted_.
                download_link: >-
                  https://wp-content-staging.s3.fr-par.scw.cloud/artifacts/plugins/my-plugin/my-plugin-1.0.0-81ae9121fde9f29c489c72dd3d8d9377.zip
                checksum: 81ae9121fde9f29c489c72dd3d8d9377
                latest: false
                added: '2025-06-11'
                last_updated: 2025-06-11 9:19am UTC
        '404':
          description: Not Found
          headers:
            Date:
              schema:
                type: string
                example: Wed, 11 Jun 2025 09:19:59 GMT
            Server:
              schema:
                type: string
                example: Apache
            Cache-Control:
              schema:
                type: string
                example: no-store, max-age=0, no-cache
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Debugbar-Time:
              schema:
                type: number
                example: '1749633599.758070'
            Debugbar-Link:
              schema:
                type: string
                example: >-
                  http://localhost:8080/index.php?debugbar_time=1749633599.758070
            Content-Length:
              schema:
                type: integer
                example: '93'
            Keep-Alive:
              schema:
                type: string
                example: timeout=5, max=100
            Connection:
              schema:
                type: string
                example: Keep-Alive
            Content-Type:
              schema:
                type: string
                example: application/json; charset=UTF-8
          content:
            application/json:
              schema:
                type: object
              example:
                status: 404
                error: 404
                messages:
                  error: Not Found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````