Sanity · Arazzo Workflow

Sanity Rename Project

Version 1.0.0

Read a project, update its display name and metadata, then re-read it.

1 workflow 1 source API 1 provider
View Spec View on GitHub Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows

Provider

sanity

Workflows

rename-project
Update a project's display name and metadata and confirm the change.
Reads the project's current settings, patches the display name and metadata, and re-reads the project to confirm the update.
3 steps inputs: apiToken, displayName, metadata, projectId outputs: confirmedName, previousName
1
readBefore
Read the project to capture its current display name.
2
updateProject
Patch the project's display name and metadata.
3
readAfter
Re-read the project to confirm the new settings took effect.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sanity Rename Project
  summary: Read a project, update its display name and metadata, then re-read it.
  description: >-
    A project-settings maintenance flow. The workflow reads the current project
    to capture its existing display name, applies a patch that updates the
    display name and metadata, and then re-reads the project to confirm the new
    settings took effect. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: projectsApi
  url: ../openapi/sanity-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: rename-project
  summary: Update a project's display name and metadata and confirm the change.
  description: >-
    Reads the project's current settings, patches the display name and
    metadata, and re-reads the project to confirm the update.
  inputs:
    type: object
    required:
    - apiToken
    - projectId
    - displayName
    properties:
      apiToken:
        type: string
        description: Sanity management API token used as a Bearer credential.
      projectId:
        type: string
        description: The project id to update.
      displayName:
        type: string
        description: The new human-readable display name for the project.
      metadata:
        type: object
        description: Optional metadata object to set on the project.
  steps:
  - stepId: readBefore
    description: Read the project to capture its current display name.
    operationId: getProject
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      previousName: $response.body#/displayName
  - stepId: updateProject
    description: Patch the project's display name and metadata.
    operationId: updateProject
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    requestBody:
      contentType: application/json
      payload:
        displayName: $inputs.displayName
        metadata: $inputs.metadata
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedName: $response.body#/displayName
  - stepId: readAfter
    description: Re-read the project to confirm the new settings took effect.
    operationId: getProject
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedName: $response.body#/displayName
  outputs:
    previousName: $steps.readBefore.outputs.previousName
    confirmedName: $steps.readAfter.outputs.confirmedName

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sanity-rename-project-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.