update_collection
update_collection
Service for updating collections.
Classes
UpdateCollectionRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for updating a Collection in MyETM.
PUT /api/v3/collections/:id
Functions
run
staticmethod
Update an existing Collection in MyETM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
collection_id
|
int
|
ID of the Collection to update |
required |
update_data
|
Dict[str, Any]
|
Dictionary with fields to update |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Returns:
| Type | Description |
|---|---|
ServiceResult[Dict[str, Any]]
|
ServiceResult with updated collection data |
Example usage
result = UpdateCollectionRunner.run( client=client, collection_id=123, update_data={ "title": "Updated Title", "saved_scenario_ids": [1, 2, 3, 4] } )