place.stream.moderation.createBlock

did:web:stream.place View official

Documentation

Create a block (ban) on behalf of a streamer. Requires 'ban' permission. Creates an app.bsky.graph.block record in the streamer's repository.

main procedure

Create a block (ban) on behalf of a streamer. Requires 'ban' permission. Creates an app.bsky.graph.block record in the streamer's repository.

Input

Encodingapplication/json
reason string Optional

Optional reason for the block.

maxLength: 300 bytes
streamer stringdid Required

The DID of the streamer whose chat this block applies to.

subject stringdid Required

The DID of the user being blocked from chat.

Output

Encodingapplication/json
cid stringcid Required

The CID of the created block record.

uri stringat-uri Required

The AT-URI of the created block record.

Errors

Unauthorized The request lacks valid authentication credentials.
Forbidden The caller does not have permission to create blocks for this streamer.
SessionNotFound The streamer's OAuth session could not be found or is invalid.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "streamer",
        "subject"
      ],
      "properties": {
        "reason": {
          "type": "string",
          "maxLength": 300,
          "description": "Optional reason for the block."
        },
        "subject": {
          "type": "string",
          "format": "did",
          "description": "The DID of the user being blocked from chat."
        },
        "streamer": {
          "type": "string",
          "format": "did",
          "description": "The DID of the streamer whose chat this block applies to."
        }
      }
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "Unauthorized",
      "description": "The request lacks valid authentication credentials."
    },
    {
      "name": "Forbidden",
      "description": "The caller does not have permission to create blocks for this streamer."
    },
    {
      "name": "SessionNotFound",
      "description": "The streamer's OAuth session could not be found or is invalid."
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "uri",
        "cid"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "The CID of the created block record."
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of the created block record."
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": null,
  "description": "Create a block (ban) on behalf of a streamer. Requires 'ban' permission. Creates an app.bsky.graph.block record in the streamer's repository."
}

Lexicon Garden

@