Atmosphere GroupsOpen specificationBeta
MenuClose

fyi.opensocial.applyLabel

Write a label record into the subject's space. Requires label, or takedown for !hide and !takedown.

Kind
A method (procedure)
Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.applyLabel

main procedure

Input

Encoding: application/json

FieldTypeDescription
group (required)string (did)The group DID. Every method is served by the group's host and authorized against that group's roles.
rulestring (at-uri)
subject (required)union of com.atproto.admin.defs#repoRef, com.atproto.repo.strongRef
val (required)string
  • maxLength: 128

Output

Encoding: application/json

FieldTypeDescription
cidstring (cid)
uristring (at-uri)
The schema as published
{
  "defs": {
    "main": {
      "description": "Write a label record into the subject's space. Requires label, or takedown for !hide and !takedown.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
              "format": "did",
              "type": "string"
            },
            "rule": {
              "format": "at-uri",
              "type": "string"
            },
            "subject": {
              "refs": [
                "com.atproto.admin.defs#repoRef",
                "com.atproto.repo.strongRef"
              ],
              "type": "union"
            },
            "val": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "group",
            "subject",
            "val"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "description": "The label record written.",
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.applyLabel",
  "lexicon": 1
}

All lexicons