Skip to Content
OpenPerf

Projects

Update a project

PATCH
/api/v1/projects/{id}

Changes the name, framework, color, allowed origins or inbound filters of a project. Send only the fields to change. Needs a token that can write.

Authorization

headerAuthorizationBearer <opaque>

Organization API token (opt_…)

Path Parameters

id*string

Request Body

application/json
  1. body
name?string
Length1 <= length <= 80
allowedOrigins?array<>
Itemsitems <= 20
filteredQueryParams?array<>|
Itemsitems <= 50
inboundFilters?array<>
framework?|null
color?string
Value in"red""orange""amber""green""teal""blue""violet""pink"

Response Body

application/json
  1. response
id*string
organizationId*string
name*string
slug*string
type*ProjectType
Value in"bun""node""js"
framework*|null
color*ProjectColor
Value in"red""orange""amber""green""teal""blue""violet""pink"
dsn*string
allowedOrigins*array<string>
filteredQueryParams*array<string>|null
inboundFilters*array<>
demo*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.example.com/api/v1/projects/string' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "organizationId": "string",
  "name": "string",
  "slug": "string",
  "type": "bun",
  "framework": "nextjs",
  "color": "red",
  "dsn": "string",
  "allowedOrigins": [
    "string"
  ],
  "filteredQueryParams": [
    "string"
  ],
  "inboundFilters": [
    "browser_extensions"
  ],
  "demo": "seeding",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}