item_update_controller = client.item_update
ItemUpdateController
Gets metadata editor info for an item.
def get_metadata_editor_info(self,
item_id)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | The item id. |
item_id = '0000130e-0000-0000-0000-000000000000'
result = item_update_controller.get_metadata_editor_info(item_id)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Updates an item.
def update_item(self,
item_id,
body)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | The item id. |
body |
BaseItemDto |
Body, Required | The new item properties. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
body = BaseItemDto()
result = item_update_controller.update_item(item_id, body)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Updates an item's content type.
def update_item_content_type(self,
item_id,
content_type=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | The item id. |
content_type |
string |
Query, Optional | The content type of the item. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
result = item_update_controller.update_item_content_type(item_id)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |