Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

API Endpoints: Switch Account

POST /switch-account

Provides a new JWT for the selected account, assuming the user is entitled to access that account.

Required parameters:

  • account_name: The name of the account to switch to.

Optional parameters:

  • None

Example request:

curl -X POST   -H "Authorization: Bearer $JWT"   -d '{
	"account_name": "upside"

Example output:

  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIXzI1NiJ9.eyJleHAiOjE3MTI4NzqzNzMsImehdCI6MTcxMjc5MTk3My"

This page was last modified 23 days ago. Help improve this document in the forum.