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

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

`POST /poktroll.shared.Msg/UpdateParams`

## Request body

- object — MsgUpdateParams is the Msg/UpdateParams request type.
  - `authority` string — authority is the address that controls the module (defaults to x/gov unless overwritten).
  - `params` object — Params defines the parameters for the module.
    - `num_blocks_per_session` string, uint64 — num_blocks_per_session is the number of blocks between the session start & end heights.
    - `grace_period_end_offset_blocks` string, uint64 — grace_period_end_offset_blocks is the number of blocks after the session end height, at which the grace period ends. Suppliers will get paid for relays serviced during the grace period but will need to recreate a claim if a previous one was already submitted.
    - `claim_window_open_offset_blocks` string, uint64 — claim_window_open_offset_blocks is the number of blocks after the session grace period height, at which the claim window opens.
    - `claim_window_close_offset_blocks` string, uint64 — claim_window_close_offset_blocks is the number of blocks after the claim window open height, at which the claim window closes.
    - `proof_window_open_offset_blocks` string, uint64 — proof_window_open_offset_blocks is the number of blocks after the claim window close height, at which the proof window opens.
    - `proof_window_close_offset_blocks` string, uint64 — proof_window_close_offset_blocks is the number of blocks after the proof window open height, at which the proof window closes.

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-05-24** `82ec347961fe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/poktroll.shared.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/ca7e84576c8e/schema)
