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": "54be75c6-d23b-4171-b228-88c275e11205",
"UserId": "sample string 2",
"Created": "2025-10-25T14:25:02.107556+00:00"
},
{
"Id": "54be75c6-d23b-4171-b228-88c275e11205",
"UserId": "sample string 2",
"Created": "2025-10-25T14:25:02.107556+00:00"
}
]