Invite a bank again
Requires the scope `banks:write`.
Requires the scope banks:write.
apiKeyAuthorizationBearer <token>An API key, or an access token for one, through the API gateway.
id*stringapplication/json- body
label?stringThe bank's name on the dashboard (POST /api/banks/invite only).
address?stringThe gRPC public listener's host:port (e.g. cell.example.com:8443), where a gRPC bank enrols and attaches. Required unless the link reaches the gateway over HTTPS only; then the gateway URL's host on 443 (or its port).
valid_for?stringHow long the one-time code lasts: a duration (30m, 24h; 1m to 168h), or never (until its single use). Default 10m.
link?How the bank links (docs/simserve.md "How a bank enrols and links"). Empty: gRPC to address, unless the gateway has a public web URL (ADR 0077), which makes the default a WebSocket there.
OK
application/json- response
bank_id*integertoken*stringst1_ and base64url JSON: a (address), c (one-time code), f (the CA's SHA-256), n (the server name, a hosted tenant's .remsim.simtrunk), l (the link).
command*stringsimserve enroll
install*stringOne command that installs simserve, enrols it and runs it as a service.
expires_at?stringAbsent: never.
date-timecurl -X POST 'https://api.simtrunk.com/v1/banks/string/invite' \ -H 'Content-Type: application/json' \ -d '{}'{ "bank_id": 0, "token": "string", "command": "string", "install": "string", "expires_at": "2019-08-24T14:15:22Z"}How is this guide?