---
title: "Edit a list"
method: PUT
path: "/api/v2/lists/{id}"
tags: ["Lists"]
---

# Edit a list

`PUT /api/v2/lists/{id}`

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Lists/updateList" target="_blank">Try in sandbox</a><br>

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string, required — List name.
  - `shared` boolean — Make this list shared or not?
  - `favorited` boolean — Is list favorited.
  - `isDefault` boolean — Is list default for new contacts (web only).

## Response `201`

Returned when successful.

- ResourceLinkResponse — Response contains paginated list of data items.
  - `id` integer, required — Resource ID.
  - `href` string, required — A link to this resource. If you want to fetch it, just **GET** this address.

## Other responses

- `400` — Returned when the form has errors.
- `403` — Returned when trying to edit a list shared to a current user.
- `404` — Returned when no list found.

---

[API](https://skmtc.net/textmagic/apis/textmagic-api.md) · [All operations](https://skmtc.net/textmagic/apis/textmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textmagic/textmagic-api/revisions/3e4029d19684/schema)
