Web Pub Sub - Remove User From Group

Remove a user from the target group.

DELETE {endpoint}/api/hubs/{hub}/users/{userId}/groups/{group}?api-version=2024-01-01

URI Parameters

Name In Required Type Description
endpoint
path True

string

url

HTTP or HTTPS endpoint for the Web PubSub service instance.

group
path True

string

Target group name, which length should be greater than 0 and less than 1025.

Regex pattern: ^(?!\s+$).+$

hub
path True

string

Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.

Regex pattern: ^[A-Za-z][A-Za-z0-9_`,.[\]]{0,127}$

userId
path True

string

Target user Id.

api-version
query True

string

The version of the REST APIs.

Responses

Name Type Description
204 No Content

The user is removed from the group.

Other Status Codes

ErrorDetail

Error response

Headers

x-ms-error-code: string

Examples

WebPubSub_RemoveUserFromGroup

Sample request

DELETE {endpoint}/api/hubs/hub1/users/user1/groups/group1?api-version=2024-01-01

Sample response

Definitions

Name Description
ErrorDetail

The error object.

InnerError

ErrorDetail

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

ErrorDetail[]

An array of details about specific errors that led to this reported error.

inner

InnerError

message

string

A human-readable representation of the error.

target

string

The target of the error.

InnerError

Name Type Description
code

string

A more specific error code than was provided by the containing error.

inner

InnerError