Skip to main content
PATCH
/
projects
/
{projectId}
Update a project's name
curl --request PATCH \
  --url https://local.withsutro.com/projects/{projectId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-sutro-api-client: <api-key>' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "components": [
    "frontend"
  ]
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

projectId
string
required

Body

application/json
name
string
required

The new name for the project

Response

Project updated successfully

id
string<uuid>
required

A unique id for your Project

Example:

"b08631ad-a4ec-4c27-9995-01287e83d565"

name
string
required

A short name for your Project

Maximum string length: 128
Example:

"My Cool Project"

components
enum<string>[]
required

Which components are configured for this project (frontend, backend, or both)

Available options:
frontend,
backend
Examples:
["backend"]
["frontend", "backend"]