Show:

Provides methods for interacting with Organizations in the Sentry API.

Constructor

Organizations
(
  • client
)

Parameters:

Methods

create
(
  • body
  • callback
)
Promise

Create a new organization.

Parameters:

  • body Object
    • name String

      The human readable name for the new organization.

    • slug String

      The 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
(
  • orgSlug
  • callback
)
Promise

Delete an organization.

Parameters:

  • orgSlug String

    Organization slug.

  • callback Function

Returns:

Promise
get
(
  • orgSlug
  • callback
)
Promise

Retrieve an organization.

Parameters:

  • orgSlug String

    Organization slug.

  • callback Function

Returns:

Promise
projects
(
  • orgSlug
  • callback
)
Promise

Retrieve an organization's projects.

Parameters:

  • orgSlug String

    Organization slug.

  • callback Function

Returns:

Promise
update
(
  • orgSlug
  • body
  • callback
)
Promise

Update an organization.

Parameters:

  • orgSlug String

    Organization slug.

  • body Object
    • name String

      An optional new name for the organization.

    • slug String

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

  • callback Function

Returns:

Promise