Skip to content

Capabilities

Michelle Staley edited this page Jan 18, 2023 · 5 revisions

Custom capabilities are defined by the developer. A custom capability consists of a namespace, a capability name to uniquely identify it, and an ability. A namespace is an identifier used to group a developer's capabilities together. A namespace is created for the developer when the first capability is created for the account. A capability consists of attributes and commands. It is created under the developer's namespace. Attributes are used to describe the state of a capability and stores its status.

Functions

Note: The code for these functions can be found here.

  • list - Get a list of custom capabilities. Requires the namespace to be checked.

  • listNamespaces - Get a list of the namespaces associated with the application.

  • listStandard - Get a list of standard capabilities.

  • listVersions - Get a list of the version of the capability. Requires the capabilityID for the capability.

  • get - Get the current capability. Requires the capabilityID and capabilityVersion.

  • create - Create a new capability.

  • update - Updates a capability. Requires the capabilityID, the capabilityVersion, and the update.

  • delete - Delete the capability. Requires the capabilityID and the capabilityVersion.

  • getPresentation - Get the presentation for the specified capability. Requires the capabilityID and the capabilityVersion.

  • createPresentation - Creates a new presentation. Requires the capabilityID, the capabilityVersion, and the presentation.

  • *updatePresentation - Updates a presentation. Requires the capabilityID, the capabilityVersion, and the presentation.

Clone this wiki locally