Remove an organization member
DELETEhttps://app.phasetwo.io/realms/:realm/orgs/:orgId/members/:userId
Remove the specified user from the specified organization as a member
Request
Path Parameters
realm stringrequired
realm name (not id!)
orgId stringrequired
organization id
userId stringrequired
user id
Responses
- 204
success
Authorization: http
name: access_tokentype: httpscheme: bearerbearerFormat:
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://app.phasetwo.io/realms/:realm/orgs/:orgId/members/:userId");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear