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)
Part of
The spec
Published
On the network, the same as the spec has it.

main procedure

Input

Encoding: application/json

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

All of the spec's lexicons