---
title: "PATCH /api/v1/sections/{sectionId}"
method: PATCH
path: "/api/v1/sections/{sectionId}"
tags: ["PublicSections"]
---

# PATCH /api/v1/sections/{sectionId}

`PATCH /api/v1/sections/{sectionId}`

## Request

- Base URL: `https://api.habitpocket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.habitpocket.io/api/v1/sections/{sectionId}`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `sectionId` string, uuid, required

## Request body

- RenamePublicSectionRequest
  - `name` string, nullable: The new name. Required, and can't be blank.

## Response `200`

OK

- PublicSectionModel
  - `id` string, uuid
  - `name` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Not Found

---

[API](https://skmtc.dev/habitpocket/apis/metricspocket-public-api.md) - [All operations](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/revisions/28a2063c7bbe?raw)
