Skip to content

Scope

Examples

List scopes

scopes = pm.scope.list()

Get a single scope

# Get a scope by ID
scope_id = 17
scope = pm.scope.get(scope_id)

Create a scope

scope = pm.scope.create(
  name="My scope",
  description="Demonstration scope",
)

Updating a scope

scope = scope.update(
  description="Updated scope description",
)

Deleting a scope

scope.delete()

Last update: October 20, 2022
Created: October 20, 2022