{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-board-members-paged-response-schema.json",
  "title": "BoardMembersPagedResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-board-members-api-openapi.yml#/components/schemas/BoardMembersPagedResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Contains the result data.",
      "items": {
        "$ref": "#/$defs/BoardMember"
      }
    },
    "total": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of results available. If the value of the `total` parameter is higher than the value of the `size` parameter, this means that there are more results that you can retrieve. To retrieve more results, you can make another request and set the `offset` value accordingly. For example, if there are `30` results, and the request has the `offset` set to `0` and the `limit` set to `20`, the `size` parameter will return `20` and the `total` parameter will return `30`. This means that there are 9 more results to retrieve (as the offset is zero-based)."
    },
    "size": {
      "type": "integer",
      "format": "int32",
      "description": "Number of results returned in the response. The `size` is the number of results returned considering the `offset` and the `limit` values sent in the request. For example, if there are `30` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `20`.<br>If there are `10` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `10`.<br>If there are `30` results, and the request has the offset set to `28` and the `limit` set to `20`, the `size` of the results will be `2` as the `offset` is the zero-based offset of the first item in the collection."
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "Zero-based index of the first item in the collection. For example, If there are `30` results, and the request has the offset set to `28`, the response will return `2` results."
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of results returned based on the `limit` specified in the request. For example, if there are `30` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `20`. The rest of the results will not be returned. To retrieve the rest of the results, you must make another request and set the appropriate value for the offset parameter. In this example, you will set the offset parameter to 20 as the offset is zero-based.\n"
    },
    "links": {
      "$ref": "#/$defs/PageLinks"
    },
    "type": {
      "type": "string"
    }
  },
  "$defs": {
    "BoardMember": {
      "type": "object",
      "description": "Contains the current user's board membership details. The current user could be different from the board owner.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "name": {
          "type": "string",
          "description": "Name of the user."
        },
        "role": {
          "type": "string",
          "description": "Role of the board member.",
          "enum": [
            "viewer",
            "commenter",
            "editor",
            "coowner",
            "owner"
          ]
        },
        "type": {
          "type": "string",
          "description": "Type of the object that is returned. In this case, `type` returns `board_member`."
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ]
    },
    "PageLinks": {
      "type": "object",
      "description": "Contains pagination links for the collection.",
      "properties": {
        "first": {
          "type": "string",
          "description": "Link to retrieve information in the first page of the collection."
        },
        "last": {
          "type": "string",
          "description": "Link to the retrieve information in the last page of the collection."
        },
        "next": {
          "type": "string",
          "description": "Link to retrieve information in the next page of the collection."
        },
        "prev": {
          "type": "string",
          "description": "Link to retrieve information in the previous page of the collection."
        },
        "self": {
          "type": "string",
          "description": "Link to retrieve information in the current page of the collection."
        }
      }
    }
  }
}