POST api/BlockedUsers
Creates new blocked users.
Request Information
URI Parameters
None.
Body Parameters
Data to use for the new blocked users.
Collection of NewBlockedUser| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
The ID of the blocked user. |
string |
Required Max length: 256 Min length: 1 |
Request Formats
application/json, text/json
Sample:
[
{
"UserId": "sample string 1"
},
{
"UserId": "sample string 1"
}
]
Response Information
Resource Description
Collection of BlockedUser| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| UserId |
ID of the blocked user. |
string |
Required |
| Created |
The date when the user was blocked (in the ISO 8601 format). |
date |
Required |
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- Created (201) - The blocked users are successfully added.
- BadRequest (400) - The data for new blocked users are invalid.
Response Formats
application/json, text/json
Sample:
[
{
"Id": "77b64f4f-f820-4bc0-8134-e8a92f2b38fd",
"UserId": "sample string 2",
"Created": "2026-01-16T08:35:38.4416269+00:00"
},
{
"Id": "77b64f4f-f820-4bc0-8134-e8a92f2b38fd",
"UserId": "sample string 2",
"Created": "2026-01-16T08:35:38.4416269+00:00"
}
]