---
title: "updateSnippet"
method: PUT
path: "/restv2/game/{apiKey}/manage/snippets/{shortCode}"
tags: ["manage"]
---

# updateSnippet

`PUT /restv2/game/{apiKey}/manage/snippets/{shortCode}`

## Path parameters

- `apiKey` string, required
- `shortCode` string, required

## Request body

- ManageSnippet
  - `groups` string[]
  - `name` string
  - `script` string
  - `scriptData` string
  - `shortCode` string
  - `template` string

## Response `200`

OK

## Other responses

- `400` — json error
- `403` — not allowed
- `404` — not found

---

[API](https://skmtc.net/gamesparks/apis/game-details.md) · [All operations](https://skmtc.net/gamesparks/apis/game-details/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gamesparks/game-details/versions/1312874aede7/schema)
