Web Pub Sub - Add Connection To Group
Add a connection to the target group.
PUT {endpoint}/api/hubs/{hub}/groups/{group}/connections/{connectionId}?api-version=2024-01-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
connection
|
path | True |
string minLength: 1 |
Target connection Id |
|
endpoint
|
path | True |
string (url) |
HTTP or HTTPS endpoint for the Web PubSub service instance. |
|
group
|
path | True |
string minLength: 1maxLength: 1024 pattern: ^(?!\s+$).+$ |
Target group name, which length should be greater than 0 and less than 1025. |
|
hub
|
path | True |
string pattern: ^[A-Za-z][A-Za-z0-9_`,.[\]]{0,127}$ |
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore. |
|
api-version
|
query | True |
string |
The version of the REST APIs. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Success |
|
| Other Status Codes |
Error response Headers x-ms-error-code: string |
Examples
WebPubSub_AddConnectionToGroup
Sample request
PUT {endpoint}/api/hubs/hub1/groups/group1/connections/connection1?api-version=2024-01-01
Sample response
Definitions
| Name | Description |
|---|---|
|
Error |
The error object. |
|
Inner |
ErrorDetail
The error object.
| Name | Type | Description |
|---|---|---|
| code |
string |
One of a server-defined set of error codes. |
| details |
An array of details about specific errors that led to this reported error. |
|
| inner | ||
| 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 |