Skip to main content
POST
/
v1
/
arc
/
organizations
/
:id
/
switch
Switch current organization
const options = {method: 'POST'};

fetch('http://localhost:4005/v1/arc/organizations/:id/switch', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "logo": "<string>",
    "metadata": {},
    "deletedAt": "2023-11-07T05:31:56Z",
    "userRole": "owner"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Path Parameters

id
string
required

Response

Organization switched successfully

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required