Organizations
Provides methods for interacting with Organizations in the Sentry API.
Table of Contents
Constructor
Organizations
(
-
client
Parameters:
-
client
Client
Methods
create
(
Promise
-
body
-
callback
Create a new organization.
Parameters:
-
body
Object-
name
StringThe human readable name for the new organization.
-
slug
StringThe unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
-
-
callback
Function
Returns:
Promise
delete
(
Promise
-
orgSlug
-
callback
Delete an organization.
Parameters:
-
orgSlug
StringOrganization slug.
-
callback
Function
Returns:
Promise
get
(
Promise
-
orgSlug
-
callback
Retrieve an organization.
Parameters:
-
orgSlug
StringOrganization slug.
-
callback
Function
Returns:
Promise
projects
(
Promise
-
orgSlug
-
callback
Retrieve an organization's projects.
Parameters:
-
orgSlug
StringOrganization slug.
-
callback
Function
Returns:
Promise
update
(
Promise
-
orgSlug
-
body
-
callback
Update an organization.
Parameters:
-
orgSlug
StringOrganization slug.
-
body
Object-
name
StringAn optional new name for the organization.
-
slug
StringAn optional new slug for the organization. Needs to be available and unique.
-
-
callback
Function
Returns:
Promise