---
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}`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/scripts/{script_id}`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

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/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
