Update an Organization

PUT /api/0/organizations/{organization_slug}/

Update various attributes and configurable settings for the given organization.

Path Parameters:
  • organization_slug (string)

    the slug of the organization the team should be created for.

Parameters:
  • name (string)

    an optional new name for the organization.

  • slug (string)

    an optional new slug for the organization. Needs to be available and unique.

Authentication: required
Method: PUT
Path: /api/0/organizations/{organization_slug}/

Example

PUT /api/0/organizations/badly-misnamed/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
Content-Type: application/json

{
  "name": "Impeccably Designated", 
  "slug": "impeccably-designated"
}
HTTP/1.1 200 OK
Content-Length: 1110
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, PUT, DELETE, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

{
  "access": [], 
  "allowSharedIssues": true, 
  "availableRoles": [
    {
      "id": "member", 
      "name": "Member"
    }, 
    {
      "id": "admin", 
      "name": "Admin"
    }, 
    {
      "id": "manager", 
      "name": "Manager"
    }, 
    {
      "id": "owner", 
      "name": "Owner"
    }
  ], 
  "avatar": {
    "avatarType": "letter_avatar", 
    "avatarUuid": null
  }, 
  "dataScrubber": false, 
  "dataScrubberDefaults": false, 
  "dateCreated": "2018-11-06T21:20:19.548Z", 
  "defaultRole": "member", 
  "enhancedPrivacy": false, 
  "experiments": {}, 
  "features": [
    "new-teams", 
    "shared-issues", 
    "new-issue-ui", 
    "repos", 
    "open-membership", 
    "invite-members", 
    "sso-saml2", 
    "sso-basic", 
    "suggested-commits"
  ], 
  "id": "3", 
  "isDefault": false, 
  "isEarlyAdopter": false, 
  "name": "Impeccably Designated", 
  "onboardingTasks": [], 
  "openMembership": true, 
  "pendingAccessRequests": 0, 
  "projects": [], 
  "quota": {
    "accountLimit": 0, 
    "maxRate": 0, 
    "maxRateInterval": 60, 
    "projectLimit": 100
  }, 
  "require2FA": false, 
  "safeFields": [], 
  "scrapeJavaScript": true, 
  "scrubIPAddresses": false, 
  "sensitiveFields": [], 
  "slug": "impeccably-designated", 
  "status": {
    "id": "active", 
    "name": "active"
  }, 
  "storeCrashReports": false, 
  "teams": [], 
  "trustedRelays": []
}