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
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
Content-Type: application/json

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

{
  "defaultRole": "member",
  "status": {
    "id": "active",
    "name": "active"
  },
  "features": [
    "sso",
    "api-keys",
    "repos",
    "open-membership",
    "shared-issues"
  ],
  "safeFields": [],
  "id": "3",
  "isEarlyAdopter": false,
  "scrubIPAddresses": false,
  "access": [],
  "allowSharedIssues": true,
  "projects": [],
  "isDefault": false,
  "require2FA": false,
  "sensitiveFields": [],
  "quota": {
    "maxRateInterval": 60,
    "projectLimit": 100,
    "accountLimit": 0,
    "maxRate": 0
  },
  "dateCreated": "2018-05-22T17:38:41.911Z",
  "slug": "impeccably-designated",
  "openMembership": true,
  "availableRoles": [
    {
      "id": "member",
      "name": "Member"
    },
    {
      "id": "admin",
      "name": "Admin"
    },
    {
      "id": "manager",
      "name": "Manager"
    },
    {
      "id": "owner",
      "name": "Owner"
    }
  ],
  "name": "Impeccably Designated",
  "enhancedPrivacy": false,
  "teams": [],
  "pendingAccessRequests": 0,
  "dataScrubberDefaults": false,
  "dataScrubber": false,
  "avatar": {
    "avatarUuid": null,
    "avatarType": "letter_avatar"
  },
  "onboardingTasks": []
}