Update a Project
Update various attributes and configurable settings for the given project.
Note that solely having the project:read scope restricts updatable settings to
isBookmarked, autofixAutomationTuning, seerScannerAutomation,
preprodSizeStatusChecksEnabled, preprodSizeStatusChecksRules,
preprodSizeEnabledQuery, preprodDistributionEnabledQuery,
preprodSizeEnabledByCustomer, preprodDistributionEnabledByCustomer,
and preprodDistributionPrCommentsEnabledByCustomer.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
project_id_or_slug(string)REQUIREDThe ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
Body Parameters
isBookmarked(boolean)Enables starring the project within the projects tab. Can be updated with
project:readpermission.name(string)The name for the project
slug(string)Uniquely identifies a project and is used for the interface.
platform(string)The platform for the project
subjectPrefix(string)Custom prefix for emails from this project.
subjectTemplate(string)The email subject to use (excluding the prefix) for individual alerts. Here are the list of variables you can use:
$title$shortID$projectID$orgID${tag:key}- such as${tag:environment}or${tag:release}.
resolveAge(integer)Automatically resolve an issue if it hasn't been seen for this many hours. Set to
0to disable auto-resolve.highlightContext(object)A JSON mapping of context types to lists of strings for their keys. E.g.
{'user': ['id', 'email']}highlightTags(array(string))A list of strings with tag keys to highlight on this project's issues. E.g.
['release', 'environment']scmSourceContextEnabled(boolean)Enable on-demand source context fetching from SCM integrations for stack traces.
Scopes
<auth_token> requires one of the following scopes:project:adminproject:readproject:write
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/ \ -H 'Authorization: Bearer <auth_token>' \ -X PUT \ -H 'Content-Type: application/json' \ -d '{}'
Copied{ "id": "4505278496", "slug": "pump-station", "name": "Pump Station", "platform": "python", "dateCreated": "2021-01-14T22:08:52.711809Z", "isBookmarked": false, "isMember": true, "features": [ "alert-filters", "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": "2021-01-14T22:08:52.711809Z", "firstTransactionEvent": true, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#3f70bf", "status": "active", "team": { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" }, "teams": [ { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "latestRelease": { "version": "backend@3e90a5d9e767ebcfa70e921d7a7ff6c037461168" }, "options": { "sentry:transaction_name_cluster_rules": [], "digests:mail:maximum_delay": 600, "sentry:scrub_defaults": false, "sentry:scrape_javascript": true, "mail:subject_prefix": "", "sentry:relay_pii_config": null, "sentry:scrub_data": false, "sentry:token": "e84c8c0fb1c121e988558785885f9cde", "sentry:resolve_age": 168, "sentry:grouping_config": "newstyle:2012-12-31", "quotas:spike-protection-disabled": false, "sentry:store_crash_reports": 5, "digests:mail:minimum_delay": 180, "sentry:secondary_grouping_config": "newstyle:2012-11-21", "sentry:secondary_grouping_expiry": 147555024, "sentry:builtin_symbol_sources": [ "ios", "android", "chromium" ], "sentry:origins": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "sentry:sensitive_fields": [ "sudo" ], "sentry:scrub_ip_address": false, "sentry:default_environment": "prod", "sentry:verify_ssl": true, "sentry:csp_ignored_sources_defaults": true, "sentry:csp_ignored_sources": "", "filters:blacklisted_ips": "", "filters:react-hydration-errors": true, "filters:chunk-load-error": true, "filters:releases": "", "filters:error_messages": "", "feedback:branding": true }, "digestsMinDelay": 180, "digestsMaxDelay": 600, "subjectPrefix": "", "allowedDomains": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "resolveAge": 168, "dataScrubber": false, "dataScrubberDefaults": false, "safeFields": [], "storeCrashReports": 5, "sensitiveFields": [ "sudo" ], "subjectTemplate": "$shortID - $title", "securityToken": "e84c8c0fb1c121e988558785885f9cde", "securityTokenHeader": null, "verifySSL": true, "scrubIPAddresses": false, "scrapeJavaScript": true, "groupingConfig": "newstyle:2012-12-31", "groupingEnhancements": "", "derivedGroupingEnhancements": "", "secondaryGroupingExpiry": 1687010243, "secondaryGroupingConfig": "newstyle:2012-11-21", "fingerprintingRules": "", "organization": { "id": "1", "slug": "sentry", "status": { "id": "active", "name": "active" }, "name": "Sentry", "dateCreated": "2014-12-15T04:06:24.263571Z", "isEarlyAdopter": true, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "require2FA": false, "avatar": { "avatarType": "upload", "avatarUuid": "24f6f762f7a7473888b259c566da5adb" }, "features": [ "discover-basic", "incidents", "uptime", "monitors" ], "links": { "organizationUrl": "https://sentry.sentry.io", "regionUrl": "https://us.sentry.io" }, "hasAuthProvider": true }, "platforms": [ "native", "other", "python" ], "processingIssues": 0, "defaultEnvironment": "prod", "relayPiiConfig": null, "builtinSymbolSources": [ "ios", "android", "chromium" ], "dynamicSamplingBiases": [ { "id": "boostEnvironments", "active": true }, { "id": "boostLatestRelease", "active": true }, { "id": "ignoreHealthChecks", "active": true }, { "id": "boostKeyTransactions", "active": true }, { "id": "boostLowVolumeTransactions", "active": true }, { "id": "boostReplayId", "active": true }, { "id": "recalibrationRule", "active": true } ], "symbolSources": "[]", "tempestFetchScreenshots": false, "debugFilesRole": null, "isDynamicallySampled": true, "autofixAutomationTuning": "off", "seerScannerAutomation": true, "seerNightshiftTweaks": null, "highlightTags": [], "highlightContext": {}, "highlightPreset": { "tags": [], "context": {} }, "scmSourceContextEnabled": false }