question

Mr Sham avatar image
Mr Sham asked

How to use UpdateDraftItem to update many items at once?

I am using Postman, with below json structure, but got error response below:

"code": 500, "status": "InternalServerError", "retryAfterSeconds": null, "error": "InternalServerError", "errorCode": 1110, "errorMessage": "An unexpected error occured while processing the request.Object reference not set to an instance of an object."

{ "Items": [ { "Id": "f49f95cc-b995-4062-b607-5a1ee46f610f", "Type": "catalogItem", "AlternateIds": [], "Title": { "NEUTRAL": "Diamond 1" }, "Description": { "NEUTRAL": "Testing diamond 1 location" }, "Keywords": {}, "ContentType": "pointofinterest", "CreatorEntity": { "Id": "DE34A", "Type": "title", "TypeString": "title" }, "IsHidden": false, "Platforms": [], "Tags": [], "CreationDate": "2023-12-28T04:27:17.207Z", "LastModifiedDate": "2023-12-28T04:27:17.905Z", "Contents": [], "Images": [], "ItemReferences": [], "PriceOptions": { "Prices": [] }, "DeepLinks": [], "DisplayProperties": { "PosX": 1, "PosY": 2, "PosZ": 3, "RotX": 1, "RotY": 2, "RotZ": 3, "ScaX": 1, "ScaY": 2, "ScaZ": 3 } }, { "Id": "3b2d87a4-7fa9-4c54-972a-95bb18841a47", "Type": "catalogItem", "AlternateIds": [], "Title": { "NEUTRAL": "Menara Mustapha" }, "Description": { "NEUTRAL": "s" }, "Keywords": {}, "ContentType": "pointofinterest", "CreatorEntity": { "Id": "DE34A", "Type": "title", "TypeString": "title" }, "IsHidden": false, "Platforms": [], "Tags": [], "CreationDate": "2023-12-29T08:41:45.869Z", "LastModifiedDate": "2024-01-04T14:04:51.015Z", "Contents": [], "Images": [], "ItemReferences": [], "PriceOptions": { "Prices": [] }, "DeepLinks": [], "DisplayProperties": { "MapID": "92075", "Floors": "G", "Date": "", "PosX": -44.8, "PosY": 48.5, "PosZ": 19.993, "RotX": 0, "RotY": 0, "RotZ": 0, "ScaX": 0.7, "ScaY": 0.7, "ScaZ": 0.7, "IconName": "", "PrefabName": "SSS", "Icon": "", "Prefab": "" }], "Publish" : true }

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Infer Wang avatar image
Infer Wang answered
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mr Sham avatar image Mr Sham commented ·

So is there any api to update the whole catalog?

0 Likes 0 ·
Infer Wang avatar image Infer Wang Mr Sham commented ·

Unfortunately, currently, there is no such API for economy v2, you can only update items one by one.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.