(BlocklistIdentifiers)
- Create - Add identifier to the block-list
Create an identifier that is blocked from accessing an instance
using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Operations;
using Clerk.BackendAPI.Models.Components;
var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
CreateBlocklistIdentifierRequestBody req = new CreateBlocklistIdentifierRequestBody() {
Identifier = "[email protected]",
};
var res = await sdk.BlocklistIdentifiers.CreateAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
CreateBlocklistIdentifierRequestBody | ✔️ | The request object to use for the request. |
CreateBlocklistIdentifierResponse
Error Type | Status Code | Content Type |
---|---|---|
Clerk.BackendAPI.Models.Errors.ClerkErrors | 400, 402, 422 | application/json |
Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | */* |