Projects

Update Project

PATCH
/v0/projects/{idOrSlug}

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
name?string|null
slug?string|null
private?boolean|null
allowedHostnames?array<string>|null|null
errorTrackingEnabled?boolean|null
webVitalsEnabled?boolean|null
sessionReplaysEnabled?boolean|null
replayRetentionDays?number||null|null
cookielessMode?boolean|null|null
searchConsoleSiteUrl?string|null|null
preferredChartColors?array<string>|null|null
codeContextConfig?|null|null
icon?|null|null

Response Body

Success

application/json
  1. response
id*string
name*string
allowedHostnames*array<string>|null
errorTrackingEnabled*boolean
webVitalsEnabled*boolean
sessionReplaysEnabled*boolean
replayRetentionDays*number||null
cookielessMode*boolean|null
searchConsoleSiteUrl*string|null
token*string|null
slug*string
private*boolean
templateId*string|null
preferredChartColors*array<string>|null
codeContextConfig*|null
icon*|null
createdAt*string
firstEventAt*string|null
ownerId*string
owner?|null|null
curl -X PATCH "https://example.com/v0/projects/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "allowedHostnames": [    "string"  ],  "errorTrackingEnabled": true,  "webVitalsEnabled": true,  "sessionReplaysEnabled": true,  "replayRetentionDays": 0,  "cookielessMode": true,  "searchConsoleSiteUrl": "string",  "token": "string",  "slug": "string",  "private": true,  "templateId": "string",  "preferredChartColors": [    "string"  ],  "codeContextConfig": {    "enabled": true,    "codebergApiUrl": "string",    "repository": "string",    "ref": "string",    "mappings": [      {        "id": "string",        "provider": "github",        "javaPrefix": "string",        "repository": "string",        "ref": "string",        "pathPattern": "string",        "automatic": true,        "contextKey": "string",        "fixedRef": "string",        "versionRefs": {          "property1": "string",          "property2": "string"        }      }    ]  },  "icon": {    "type": "icon",    "value": "string",    "color": "string"  },  "createdAt": "string",  "firstEventAt": "string",  "ownerId": "string",  "owner": {    "id": "string",    "name": "string",    "slug": "string",    "image": "string",    "type": "user",    "createdAt": "string"  }}