Organizations

User - Update Policy Mapping

Update the mapping of a given user directly to policies

put/setup/user/{userId}/policyMapping

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/setup/user/{userId}/policyMapping
  • Auth
    HTTP bearer

Parameters

#/paths/~1setup~1user~1%7BuserId%7D/get/parameters/0 (unresolved $ref)

Request body

Example request

{
  "policies": [
    {
      "policyId": "pol-12345678",
      "accountIds": [
        "*"
      ]
    },
    {
      "policyId": "pol-87654321",
      "accountIds": [
        "act-12345678",
        "act-87654321"
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 12 revisions of this API.