MenuMethods

Query · GET

group.opensocial.getSubjectHistory

Every event on one subject.

Every event on one subject. Requires mod.read.

Requires
mod.read

Parameters

groupstring · didrequired

The group DID. Every method is served by the group's host and authorized against that group's roles.

subjectstring · urirequired

A record's at-uri, or an account's DID.

Output

subjectgroup.opensocial.defs#subjectViewrequired
eventsarray of group.opensocial.defs#eventViewrequired

Schema

Lexicon JSON
{
  "lexicon": 1,
  "id": "group.opensocial.getSubjectHistory",
  "defs": {
    "main": {
      "type": "query",
      "description": "Every event on one subject. Requires mod.read.",
      "parameters": {
        "type": "params",
        "required": [
          "group",
          "subject"
        ],
        "properties": {
          "group": {
            "type": "string",
            "format": "did",
            "description": "The group DID. Every method is served by the group's host and authorized against that group's roles."
          },
          "subject": {
            "type": "string",
            "format": "uri",
            "description": "A record's at-uri, or an account's DID."
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "subject",
            "events"
          ],
          "properties": {
            "subject": {
              "type": "ref",
              "ref": "group.opensocial.defs#subjectView"
            },
            "events": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "group.opensocial.defs#eventView"
              }
            }
          }
        }
      }
    }
  }
}

← All methods