{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-delegate-accept-response-schema.json",
  "title": "DelegateAcceptResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-delegate-endpoints-api-openapi.yml#/components/schemas/DelegateAcceptResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "msg": {
      "type": "string"
    },
    "data": {
      "$ref": "#/$defs/DelegateInvite"
    }
  },
  "required": [
    "code",
    "msg",
    "data"
  ],
  "$defs": {
    "DelegateInvite": {
      "type": "object",
      "properties": {
        "membership_id": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "screen_name": {
          "type": "string",
          "description": "Username of the account that sent the delegation invitation."
        },
        "name": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        }
      },
      "required": [
        "membership_id",
        "role",
        "screen_name",
        "name",
        "user_id"
      ]
    }
  }
}