Update
collections.update(strcollection_id, CollectionUpdateParams**kwargs) -> CollectionUpdateResponse
PUT/collections/{collectionId}
Update the name and/or thumbnail of a Collection
Update
import os
from scenario_sdk import Scenario
client = Scenario(
api_key=os.environ.get("SCENARIO_SDK_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"), # This is the default and can be omitted
)
collection = client.collections.update(
collection_id="collectionId",
)
print(collection.collection){
"collection": {
"id": "id",
"assetCount": 0,
"createdAt": "createdAt",
"itemCount": 0,
"modelCount": 0,
"name": "name",
"ownerId": "ownerId",
"updatedAt": "updatedAt",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
}Returns Examples
{
"collection": {
"id": "id",
"assetCount": 0,
"createdAt": "createdAt",
"itemCount": 0,
"modelCount": 0,
"name": "name",
"ownerId": "ownerId",
"updatedAt": "updatedAt",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
}