space.py
Space (CelonisApiObject)
¶
Space object to interact with Celonis Studio API.
url: str
property
readonly
¶
API
/package-manager/api/spaces/{space_id}
packages: CelonisCollection[Package]
property
readonly
¶
Get all Packages of the Space.
API
GET: /package-manager/api/nodes/tree?spaceId={self.id}
Returns:
Type | Description |
---|---|
CelonisCollection[Package] |
Collection of Packages. |
create_package(self, name, key=None, package_type='APP')
¶
Creates a new Package.
!!! api "API"
- `POST: /package-manager/api/nodes`
```json
{
"key": key or name,
"name": name,
"nodeType": "PACKAGE",
"serializedContent": f"packageType: {package_type}
variables: [] dependencies: [] ", "spaceId": self.id, } ```
!!! args
name: Name of the package.
key: Key of the package, if left blank defaults to name of the Package.
package_type: Package type. One of [`APP`, `LIBRARY`, `INSTRUMENT`].
!!! returns
The newly created Package object.