fbpx
PUThttps://api.spotinst.iofunctions/environment/{ENVIRONMENT_ID}/userDocument/{DOCUMENT_KEY}?accountId={ACCOUNT_ID}

Update the value that is stored at they key you enter

URL Parameters

Parameter Type Description
ENVIRONMENT_ID * String

Spotinst Function environment ID

Example: env-12345
DOCUMENT_KEY * String

Key that matches to the value you wish to edit

ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "userDocument" : {
    "value": "string"
  }
}

Body Attributes


  • userDocument.value * String
    Value that will be updated
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  }
}