capabilities.work

Rename Project

A 3-step recipe with Sanity. We can help you get access.

Recipe · 3 steps

Rename Project

with Sanity

Update a project's display name and metadata and confirm the change.

  1. Read the project to capture its current display name.
  2. Patch the project's display name and metadata.
  3. Re-read the project to confirm the new settings took effect.
What you'll need to have ready
  • apiToken: Sanity management API token used as a Bearer credential.
  • projectId: The project id to update.
  • displayName: The new human-readable display name for the project.
  • metadata: Optional metadata object to set on the project.
For your developer

Arazzo workflow sanity:rename-project, 3 operations: getProject → updateProject → getProject. Specs on APIs.io.