Skip to main content

Assign Tenant

POST 

/user/v1/assign-tenant

Assign Tenant

Request

Responses

Tenant assigned successfully to the user.

Authorization: Authorization

name: Authorizationtype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://tekdi.github.io/user/v1/assign-tenant");
request.Headers.Add("Authorization", "<API_KEY_VALUE>");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Auth
Body required
{
  "userId": "string",
  "tenantId": []
}
ResponseClear

Click the Send API Request button above and see the response here!