# Update an existing preview **PUT /previews/{preview_id}** Update a preview with the given documentation file. The preview will stay active for 30 minutes after the last update. ## Servers - https://bump.sh/api/v1: https://bump.sh/api/v1 () ## Parameters #### Path parameters - **preview_id** (string) UUID of an existing preview you wish to update. ## Body parameters Content-type: application/json The preview creation request object - **definition** (string) ==**REQUIRED**== if `url` is not present. Serialized definition. This should be an OpenAPI 2.x, 3.x or AsyncAPI 2.x file serialized as a string, in YAML or JSON. - **references** (array[object]) Import external references used by `definition`. It's usually resources not accessible by Bump.sh servers, like local files or internal URLs. - **url** (string(uri)) ==**REQUIRED**== if `definition` is not present. Target definition URL. It should be accessible through HTTP by Bump.sh servers. ## Responses ### 200: Success #### Body Parameters: application/json (object) - **id** (string) Unique id for the preview URL: `https://bump.sh/preview/:id`. - **expires_at** (string(date-time)) Preview expiration date and time. - **public_url** (string) The public URL where the preview will be visible. ### 422: Definition is not valid. #### Body Parameters: application/json (object) - **message** (string) Human readable error message. - **errors** (object) Hash of invalid attributes with their error messages. [Powered by Bump.sh](https://bump.sh)