Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.56 KB

File metadata and controls

47 lines (30 loc) · 2.56 KB

BlocklistIdentifiers

(BlocklistIdentifiers)

Overview

Available Operations

  • Create - Add identifier to the block-list

Create

Create an identifier that is blocked from accessing an instance

Example Usage

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

Parameters

Parameter Type Required Description
request CreateBlocklistIdentifierRequestBody ✔️ The request object to use for the request.

Response

CreateBlocklistIdentifierResponse

Errors

Error Type Status Code Content Type
Clerk.BackendAPI.Models.Errors.ClerkErrors 400, 402, 422 application/json
Clerk.BackendAPI.Models.Errors.SDKError 4XX, 5XX */*