---
title: "UpdateParams defines a (governance) operation for updating the module
parameters. The authority defaults to the x/gov module account."
method: POST
path: "/pocket.service.Msg/UpdateParams"
tags: ["Msg"]
---

# UpdateParams defines a (governance) operation for updating the module
parameters. The authority defaults to the x/gov module account.

`POST /pocket.service.Msg/UpdateParams`

## Request body

- PocketServiceMsgUpdateParams — MsgUpdateParams is the Msg/UpdateParams request type.
  - `authority` string — authority is the address that controls the module (defaults to x/gov unless overwritten).
  - `params` PocketServiceParams — Params defines the parameters for the module.
    - `add_service_fee` CosmosBaseV1beta1Coin — Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.
      - `amount` string
      - `denom` string
    - `target_num_relays` string, uint64 — target_num_relays is the target for the EMA of the number of relays per session. Per service, onchain relay mining difficulty will be adjusted to maintain this target.

## Response `200`

A successful response.

- PocketServiceMsgUpdateParamsResponse — MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

## Other responses

- `default` — An unexpected error response.

## Changes

> 52 revisions in range; 30 could not be searched.

- **2023-11-01** `3f51f9b9a127` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/pocket.service.Msg/UpdateParams/post.md)

---

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