fyi. opensocial. applyLabel
Write a label record into the subject's space. Requires label, or takedown for !hide and !takedown.
- Kind
- A method (procedure)
- Part of
- The reference host
- Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.applyLabel
main procedure
Input
Encoding: application/json
| Field | Type | Description |
|---|---|---|
group (required) | string (did) | The group DID. Every method is served by the group's host and authorized against that group's roles. |
rule | string (at-uri) | |
subject (required) | union of com., com. | |
val (required) | string
|
Output
Encoding: application/json
| Field | Type | Description |
|---|---|---|
cid | string (cid) | |
uri | string (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
}