at.ducs.relationships.setRelationship

ducs.at

{
  "id": "at.ducs.relationships.setRelationship",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "userId",
            "type"
          ],
          "properties": {
            "type": {
              "ref": "at.ducs.relationships.setRelationship#type",
              "type": "ref"
            },
            "userId": {
              "type": "string",
              "format": "at-identifier"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "relationshipUpdateFailed"
        },
        {
          "name": "relationshipNotUpdated"
        },
        {
          "name": "userNotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "at.ducs.relationships.defs#relationship",
          "type": "ref"
        },
        "encoding": "application/json"
      }
    },
    "type": {
      "enum": [
        "friend",
        "blocked",
        "unrelated"
      ],
      "type": "string"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against at.ducs.relationships.setRelationship

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:c5ljrscuf2xu4oovnafzoqlg
CID
bafyreie4pj2kbdqycrbfx6qwy4qjh5glxozgbdkfoiivd7gbpiuwg2save
Indexed At
2026-04-09 12:19 UTC
AT-URI
at://did:plc:c5ljrscuf2xu4oovnafzoqlg/com.atproto.lexicon.schema/at.ducs.relationships.setRelationship

Referenced Schemas (1)

Lexicon Garden

@