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 standard
- Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.mod.updateSubject- In the spec
org., the same as published here.atgrp. mod. updateSubject
main procedure
Input
Encoding: application/json
| Field | Type | Description |
|---|---|---|
cid | string (cid) | If set, a specific version of the record. |
note | string
| |
status | string
| |
addTags | array of string
| Tags follow label value syntax ([a-z-]+). |
subject (required) | string (uri) | An account DID or record URI. |
removeTags | array of string
|
Output
Encoding: application/json
org.
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
}