Reference for http://www.bungie.net/Platform/Destiny2/Actions/Items/InsertSocketPlug/

Insert a plug into a socketed item. I know how it sounds, but I assure you it's much more G-rated than you might be guessing. We haven't decided yet whether this will be able to insert plugs that have side effects, but if we do it will require special scope permission for an application attempting to do so. You must have a valid Destiny Account, and either be in a social space, in orbit, or offline. Request must include proof of permission for 'InsertPlugs' from the account owner.

Url: http://www.bungie.net/Platform/Destiny2/Actions/Items/InsertSocketPlug/

HTTP Method: POST

Requires Sign-in: true

Url Parameters: No Url Parameter documentation is available for this method.

Request/Response Body Formats:

Message Direction Format Body
Request JSON JSON object
Response JSON JSON object

The following is an example of a request JSON body for this method.

{
  "actionToken": null,
  "itemInstanceId": "0",
  "plug": null,
  "characterId": "0",
  "membershipType": 0
}

The following is an example of a response JSON body for this method.

{
  "Response": null,
  "ErrorCode": 0,
  "ThrottleSeconds": 0,
  "ErrorStatus": null,
  "Message": null,
  "MessageData": null,
  "DetailedErrorTrace": null
}