SysCopyItemImageFromGlobalFile
Copy item image from global file.
Service | Operation |
---|---|
itemCatalog | SYS_COPY_ITEM_IMAGE_FROM_GLOBAL_FILE |
Method Parameters
Parameter | Description |
---|---|
defId | Unique ID identifying catalog item to be updated. |
version | Version of catalog item being edited. |
globalFileId | The fileId of the global file. |
deleteFileAfterwards | Whether to delete the source file. i.e. move or copy. |
overwriteIfPresent | Whether to copy over an existing image. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var defId = "sword001";
var version = 1;
var globalFileId = "xxxxx-xxxx-xxxx";
var deleteFileAfterwards = False;
var overwriteIfPresent = True;
var itemCatalogProxy = bridge.getItemcatalogServiceProxy();
var postResult = itemCatalogProxy.sysCopyItemImageFromGlobalFile(defId, version, globalFileId, deleteFileAfterwards, overwriteIfPresent);
{
"service":"itemCatalog",
"operation":"SYS_COPY_ITEM_IMAGE_FROM_GLOBAL_FILE",
"data":{
"defId":"sword001",
"version":1,
"globalFileId":"xxxxx-xxxx-xxxx",
"deleteFileAfterwards":false,
"overwriteIfPresent":true
}
}
JSON Response
{
"data": {
"image": "https://api.braincloudservers.com/files/portal/g/23782/metadata/itemDefinitions/sword001.png"
},
"status": 200
}