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 401 UNAUTHORIZED
Allow: GET, PUT, DELETE, HEAD, OPTIONS
Content-Language: en
Content-Length: 27
Content-Type: application/json
Vary: Accept-Language, Cookie
Www-Authenticate: xBasic realm="api"
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{
  "detail": "Invalid token"
}