---
title: "Update script version"
method: PUT
path: "/organizations/{organization_id}/scripts/{script_id}"
tags: ["Scripts"]
---

# Update script version

`PUT /organizations/{organization_id}/scripts/{script_id}`

Update the specified script version to use

## Path parameters

- `organization_id` string, required
- `script_id` string, required

## Request body

- object
  - `use_latest_version` boolean

## Response `200`

200 response

- PutOrganizationsScriptsByIdResponse
  - `message` string

## Other responses

- `201` — 201 response
- `401` — 401 response
- `403` — 403 response
- `404` — 404 response

---

[API](https://skmtc.dev/druva/apis/authentication.md) · [All operations](https://skmtc.dev/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
