dev.knotless.setItemState

lexicons.knotless.dev

Documentation

Writes a dev.knotless.state record in the account logged in to this appview's web pages, as `knotless close`, `reopen`, `resolve` and `unresolve` do. It counts if that account opened the pull or issue (or the thread), or owns or collaborates on the repository. Requires the session cookie the pages' login sets.

main procedure

Writes a dev.knotless.state record in the account logged in to this appview's web pages, as `knotless close`, `reopen`, `resolve` and `unresolve` do. It counts if that account opened the pull or issue (or the thread), or owns or collaborates on the repository. Requires the session cookie the pages' login sets.

Input

Encodingapplication/json
repo stringat-uri Required

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

state string Required

What it is to be: `closed`, or `open` again; for a thread, `resolved`, or `open` again. Merging a pull is another thing.

maxLength: 64 bytes
subject stringat-uri Required

The dev.knotless.pull or dev.knotless.issue; or the dev.knotless.comment starting a thread on a pull's lines.

Output

Encodingapplication/json
uri stringat-uri Required

The dev.knotless.state record written.

Errors

NotFound No such repository.
AuthenticationRequired No account is logged in to the pages, or its session has ended.
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
{
  "description": "Writes a dev.knotless.state record in the account logged in to this appview's web pages, as `knotless close`, `reopen`, `resolve` and `unresolve` do. It counts if that account opened the pull or issue (or the thread), or owns or collaborates on the repository. Requires the session cookie the pages' login sets.",
  "errors": [
    {
      "description": "No such repository.",
      "name": "NotFound"
    },
    {
      "description": "No account is logged in to the pages, or its session has ended.",
      "name": "AuthenticationRequired"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "repo": {
          "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
          "format": "at-uri",
          "type": "string"
        },
        "state": {
          "description": "What it is to be: `closed`, or `open` again; for a thread, `resolved`, or `open` again. Merging a pull is another thing.",
          "knownValues": [
            "open",
            "closed",
            "resolved"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "subject": {
          "description": "The dev.knotless.pull or dev.knotless.issue; or the dev.knotless.comment starting a thread on a pull's lines.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "repo",
        "subject",
        "state"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "uri": {
          "description": "The dev.knotless.state record written.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@