Supercheck LogoSupercheck
Organizations API

Update a project

PUT
/api/projects/{id}

Change the name, slug or description. Needs the project update permission. Returns 403 with code ORG_PENDING_DELETION while the organization is pending deletion. Requires an interactive browser session; project-scoped CLI tokens receive 403.

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 255
slug?|
Lengthlength <= 100
description?|
Lengthlength <= 5000

Response Body

Project updated

application/json
  1. response
success?boolean
project?
Example Request
curl -X PUT 'https://app.supercheck.io/api/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "project": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "slug": "string",    "description": "string",    "organizationId": "string",    "isDefault": true,    "status": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "role": "string"  }}