---
title: "Set account current context"
method: POST
path: "/context"
tags: ["authentication"]
---

# Set account current context

`POST /context`

## Request body

- object
  - `tenant` string

## Response `200`

Current account context

- object
  - `currentContext` Membership
    - `roles` Role
      - `name` string
      - `permissions` string[]
      - `tenant` string
      - `scope` string
    - `tenant` string
    - `permissions` string[]
    - `active` boolean
    - `scope` string

## Other responses

- `401` — Current token either expired or client is not logged in
- `403` — Cannot login user. Account is either disabled or a precondition is missing.

## Changes

- **2019-05-07** `8a89a8f58853` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/changes/context/post.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/iam-api-for-oih/revisions/8a89a8f58853/schema)
