---
title: "PinCodes defines a governance operation for pinning a set of code ids in the wasmvm cache. The authority is defined in the keeper."
method: POST
path: "/cosmwasm.wasm.v1.Msg/PinCodes"
tags: ["Msg"]
---

# PinCodes defines a governance operation for pinning a set of code ids in the wasmvm cache. The authority is defined in the keeper.

`POST /cosmwasm.wasm.v1.Msg/PinCodes`

Since: 0.40

## Request body

- object — MsgPinCodes is the MsgPinCodes request type. Since: 0.40
  - `authority` string — Authority is the address of the governance account.
  - `code_ids` string[]

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/wardenprotocol/apis/http-api-console.md) · [All operations](https://skmtc.dev/wardenprotocol/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wardenprotocol/http-api-console/revisions/44399dd0ab35/schema)
