Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.mod.updateSubject

Change a subject's status or tags, or add a note. Omitted fields are left as they are. Requires auth as the group.

Kind
A method (procedure)
Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.mod.updateSubject
In the spec
org.atgrp.mod.updateSubject, the same as published here.

main procedure

Input

Encoding: application/json

FieldTypeDescription
cidstring (cid)If set, a specific version of the record.
notestring
  • maxLength: 20000
  • maxGraphemes: 2000
statusstring
  • enum: open, resolved
addTagsarray of string
  • each item, minLength: 1
  • each item, maxLength: 128
  • array maxLength: 25
Tags follow label value syntax ([a-z-]+).
subject (required)string (uri)An account DID or record URI.
removeTagsarray of string
  • each item, minLength: 1
  • each item, maxLength: 128
  • array maxLength: 25

Output

Encoding: application/json

org.atgrp.mod.defs#subjectView

Errors

  • InvalidSubject: The subject isn't in this group.
  • SubjectNotFound: The subject has never been reported.
The schema as published
{
  "id": "org.atgrp.mod.updateSubject",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "subject"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "If set, a specific version of the record."
            },
            "note": {
              "type": "string",
              "maxLength": 20000,
              "maxGraphemes": 2000
            },
            "status": {
              "enum": [
                "open",
                "resolved"
              ],
              "type": "string"
            },
            "addTags": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "maxLength": 25,
              "description": "Tags follow label value syntax ([a-z-]+)."
            },
            "subject": {
              "type": "string",
              "format": "uri",
              "description": "An account DID or record URI."
            },
            "removeTags": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "maxLength": 25
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidSubject",
          "description": "The subject isn't in this group."
        },
        {
          "name": "SubjectNotFound",
          "description": "The subject has never been reported."
        }
      ],
      "output": {
        "schema": {
          "ref": "org.atgrp.mod.defs#subjectView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "description": "Change a subject's status or tags, or add a note. Omitted fields are left as they are. Requires auth as the group."
    }
  },
  "lexicon": 1
}

All lexicons