originally posted in:BungieNetPlatform
View Entire Topic
So you might have noticed there's now an option on the companion app and on Bungie.net allowing you to lock/unlock your items. Here's what you need to use it:
[edit]
It's worth noting that the characterId needs to be valid or else the API call will fail, so if you want to lock items in your Vault, you need to reference a character in your request.
[quote]API: POST /Platform/Destiny/SetLockState/
{
state: true, // true/false
membershipType: "2", // 1 for xbox / 2 for playstation
characterId: "{characterId}",
itemId: "{itemInstanceId}"
}[/quote]
There are 2 variables in itemInstances you will want to look at as well:
- lockable
- locked
Finally here's the url for the icon bungie is using to display the locked status. [url]https://www.bungie.net/img/theme/destiny/icons/icon_gear_lockeditem.png[/url]
English
-
Seems to have changed in 2.0- setlockstate error: { "Response":0, "ErrorCode":1619, "ThrottleSeconds":0, "ErrorStatus":"DestinyInvalidAction", "Message":"You are not allowed to perform that action.", "MessageData":{} }