JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by lowlines: 5/16/2015 4:31:54 AM
1

SetLockedState API

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]

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • 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":{} }

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    2 Replies
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon