fbpx
Store / Create an object:
let addDocument = {
  uri:`https://api.spotinst.io/functions/environment/${Environment}/userDocument`,
  method: "POST",
  qs: {accountId: YourAccount},
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer " + YourToken},
  body: {
    "userDocument": {
      "key": YourKey,
      "value": YourValue}
             },
  json:true
}