Your submission was sent successfully! Close

Thank you for contacting us. A member of our team will be in touch shortly. 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"
  }'   https://landscape.canonical.com/api/v2/switch-account

Example output:

{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIXzI1NiJ9.eyJleHAiOjE3MTI4NzqzNzMsImehdCI6MTcxMjc5MTk3My"
}

This page was last modified 5 months ago. Help improve this document in the forum.