Update a Project

PUT /api/0/projects/{organization_slug}/{project_slug}/

Update various attributes and configurable settings for the given project. Only supplied values are updated.

Path Parameters:
  • organization_slug (string) – the slug of the organization the project belongs to.
  • project_slug (string) – the slug of the project to delete.
Parameters:
  • name (string) – the new name for the project.
  • slug (string) – the new slug for the project.
  • team (string) – the slug of new team for the project. Note, will be deprecated soon when multiple teams can have access to a project.
  • platform (string) – the new platform for the project.
  • isBookmarked (boolean) – in case this API call is invoked with a user context this allows changing of the bookmark flag.
  • digestsMinDelay (int) –
  • digestsMaxDelay (int) –
Authentication:

required

Method:

PUT

Path:

/api/0/projects/{organization_slug}/{project_slug}/

Example

PUT /api/0/projects/the-interstellar-jurisdiction/plain-proxy/ HTTP/1.1
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
Content-Type: application/json

{
  "platform": "javascript",
  "slug": "plane-proxy",
  "name": "Plane Proxy",
  "options": {
    "sentry:origins": "http://example.com\nhttp://example.invalid"
  }
}
HTTP/1.1 200 OK
Allow: GET, PUT, DELETE, HEAD, OPTIONS
Content-Language: en
Content-Length: 2646
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{
  "subjectPrefix": "[Sentry] ",
  "defaultEnvironment": null,
  "features": [
    "data-forwarding",
    "rate-limits",
    "releases"
  ],
  "safeFields": [],
  "color": "#bf803f",
  "isInternal": false,
  "platforms": [],
  "latestRelease": {
    "dateReleased": null,
    "newGroups": 0,
    "url": null,
    "ref": null,
    "lastDeploy": null,
    "deployCount": null,
    "dateCreated": "2018-05-22T19:02:21.988Z",
    "lastEvent": "2018-05-22T19:02:21.988Z",
    "version": "d4f7eb31b7599b0b18a598a9ee8a9d7c56415322",
    "firstEvent": "2018-05-22T19:02:21.988Z",
    "lastCommit": null,
    "shortVersion": "d4f7eb3",
    "authors": [],
    "owner": null,
    "commitCount": null,
    "data": {},
    "projects": [
      {
        "name": "Plane Proxy",
        "slug": "plane-proxy"
      }
    ]
  },
  "plugins": [
    {
      "status": "unknown",
      "slug": "webhooks",
      "description": "Integrates web hooks.",
      "isTestable": true,
      "author": {
        "url": "https://github.com/getsentry/sentry",
        "name": "Sentry Team"
      },
      "contexts": [],
      "doc": "",
      "resourceLinks": [
        {
          "url": "https://github.com/getsentry/sentry/issues",
          "title": "Bug Tracker"
        },
        {
          "url": "https://github.com/getsentry/sentry",
          "title": "Source"
        }
      ],
      "enabled": false,
      "hasConfiguration": true,
      "name": "WebHooks",
      "version": "8.23.0.dev0",
      "canDisable": true,
      "shortName": "WebHooks",
      "metadata": {},
      "type": "notification",
      "id": "webhooks",
      "assets": []
    }
  ],
  "teams": [
    {
      "slug": "powerful-abolitionist",
      "id": "2",
      "name": "Powerful Abolitionist"
    }
  ],
  "id": "5",
  "verifySSL": false,
  "allowedDomains": [
    "http://example.com",
    "http://example.invalid"
  ],
  "scrubIPAddresses": false,
  "platform": "javascript",
  "firstEvent": null,
  "digestsMaxDelay": 1800,
  "processingIssues": 0,
  "status": "active",
  "digestsMinDelay": 300,
  "sensitiveFields": [],
  "isPublic": false,
  "dateCreated": "2018-05-22T19:02:21.743Z",
  "scrapeJavaScript": true,
  "resolveAge": 0,
  "securityToken": "ab0c08605df211e8a1b20242ac110002",
  "slug": "plane-proxy",
  "name": "Plane Proxy",
  "hasAccess": true,
  "isBookmarked": false,
  "dataScrubberDefaults": true,
  "dataScrubber": true,
  "isMember": false,
  "team": {
    "slug": "powerful-abolitionist",
    "id": "2",
    "name": "Powerful Abolitionist"
  },
  "organization": {
    "status": {
      "id": "active",
      "name": "active"
    },
    "name": "The Interstellar Jurisdiction",
    "slug": "the-interstellar-jurisdiction",
    "avatar": {
      "avatarUuid": null,
      "avatarType": "letter_avatar"
    },
    "dateCreated": "2018-05-22T19:01:45.648Z",
    "id": "2",
    "isEarlyAdopter": false
  },
  "options": {
    "sentry:csp_ignored_sources_defaults": true,
    "sentry:reprocessing_active": false,
    "sentry:csp_ignored_sources": "",
    "filters:blacklisted_ips": "",
    "filters:error_messages": "",
    "feedback:branding": true,
    "filters:releases": ""
  },
  "subjectTemplate": "$shortID - $title",
  "securityTokenHeader": null
}