v1

latestOpenAPI 3.0.02026-07-14169146300.3 KB
Database

Updates a user mapping for JIT access

Modifies the roles that can be assumed and for how long

put/v1/projects/{ref}/database/jit

Path parameters

refstring required
Example:abcdefghijklmnopqrst

Project ref

Request body

user_idstring uuid required

Example request

{
  "user_id": "55555555-5555-4555-8555-555555555555",
  "roles": [
    {
      "role": "postgres",
      "expires_at": 1740787200,
      "allowed_networks": {
        "allowed_cidrs": [
          {
            "cidr": "203.0.113.0/24"
          }
        ]
      },
      "branches_only": false
    }
  ]
}

Response

user_idstring uuid