Atmosphere GroupsOpen specificationBeta
MenuClose

fyi.opensocial.putRule

Create or update a rule. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.rule, because a record def cannot be used as an input object — same fix as updateProfile.

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

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.
orderinteger
  • minimum: 0
Where it comes in the list, lowest first. Omitted keeps an existing rule's place and puts a new one last.
rkeystring (record-key)
textstring
  • maxLength: 20000
  • maxGraphemes: 2000
title (required)string
  • maxLength: 1000
  • maxGraphemes: 100

Output

Encoding: application/json

FieldTypeDescription
cid (required)string (cid)
uri (required)string (at-uri)
The schema as published
{
  "defs": {
    "main": {
      "description": "Create or update a rule. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.rule, because a record def cannot be used as an input object — same fix as updateProfile.",
      "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"
            },
            "order": {
              "description": "Where it comes in the list, lowest first. Omitted keeps an existing rule's place and puts a new one last.",
              "minimum": 0,
              "type": "integer"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "text": {
              "maxGraphemes": 2000,
              "maxLength": 20000,
              "type": "string"
            },
            "title": {
              "maxGraphemes": 100,
              "maxLength": 1000,
              "type": "string"
            }
          },
          "required": [
            "group",
            "title"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.putRule",
  "lexicon": 1
}

All lexicons