POST api/BlockedUsers
Creates new blocked users.
Request Information
URI Parameters
None.
Body Parameters
Data to use for the new blocked users.
Collection of NewBlockedUserName | 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 BlockedUserName | 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": "6bc58420-a474-4230-97c8-1e381a3cc14c", "UserId": "sample string 2", "Created": "2024-09-11T10:50:36.1083623+00:00" }, { "Id": "6bc58420-a474-4230-97c8-1e381a3cc14c", "UserId": "sample string 2", "Created": "2024-09-11T10:50:36.1083623+00:00" } ]