---
title: "Migrate runs a code upgrade/ downgrade for a smart contract"
method: POST
path: "/cosmwasm.wasm.v1.Msg/MigrateContract"
tags: ["Msg"]
---

# Migrate runs a code upgrade/ downgrade for a smart contract

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

## Request body

- object
  - `sender` string
  - `contract` string
  - `code_id` string, uint64
  - `msg` string, byte

## 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)
