{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-board-with-links-and-last-opened-schema.json",
  "title": "BoardWithLinksAndLastOpened",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-boards-api-openapi.yml#/components/schemas/BoardWithLinksAndLastOpened",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier (ID) of the board."
    },
    "name": {
      "type": "string",
      "description": "Name of the board."
    },
    "description": {
      "type": "string",
      "description": "Description of the board."
    },
    "team": {
      "$ref": "#/$defs/Team"
    },
    "project": {
      "$ref": "#/$defs/BoardProject"
    },
    "picture": {
      "$ref": "#/$defs/Picture"
    },
    "policy": {
      "$ref": "#/$defs/BoardPolicy"
    },
    "viewLink": {
      "type": "string",
      "description": "URL to view the board."
    },
    "owner": {
      "$ref": "#/$defs/UserInfoShort"
    },
    "currentUserMembership": {
      "$ref": "#/$defs/BoardMember"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the board was created. Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "createdBy": {
      "$ref": "#/$defs/UserInfoShort"
    },
    "lastOpenedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the board was last opened by any user. Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "lastOpenedBy": {
      "$ref": "#/$defs/GetBoardUserInfoLastOpenedBy"
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the board was last modified. Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "modifiedBy": {
      "$ref": "#/$defs/UserInfoShort"
    },
    "links": {
      "$ref": "#/$defs/BoardLinks"
    },
    "type": {
      "type": "string",
      "description": "Type of the object that is returned. In this case, type returns `board`."
    }
  },
  "required": [
    "description",
    "id",
    "name",
    "type"
  ],
  "$defs": {
    "BoardLinks": {
      "type": "object",
      "description": "Contains applicable links for the board.",
      "properties": {
        "related": {
          "type": "string",
          "description": "Link to obtain information about the board members associated with the board."
        },
        "self": {
          "type": "string",
          "description": "Link to obtain information about the current board."
        }
      }
    },
    "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"
      ]
    },
    "BoardPermissionsPolicy": {
      "type": "object",
      "description": "Defines the permissions policies for the board.",
      "properties": {
        "collaborationToolsStartAccess": {
          "type": "string",
          "default": "all_editors",
          "description": "Defines who can start or stop timer, voting, video chat, screen sharing, attention management. Others will only be able to join. To change the value for the `collaborationToolsStartAccess` parameter, contact Miro Customer Support.",
          "enum": [
            "all_editors",
            "board_owners_and_coowners"
          ]
        },
        "copyAccess": {
          "type": "string",
          "default": "anyone",
          "description": "Defines who can copy the board, copy objects, download images, and save the board as a template or PDF.",
          "enum": [
            "anyone",
            "team_members",
            "team_editors",
            "board_owner"
          ]
        },
        "sharingAccess": {
          "type": "string",
          "default": "team_members_with_editing_rights",
          "description": "Defines who can change access and invite users to this board. To change the value for the `sharingAccess` parameter, contact Miro Customer Support.",
          "enum": [
            "team_members_with_editing_rights",
            "owner_and_coowners"
          ]
        }
      }
    },
    "BoardPolicy": {
      "type": "object",
      "description": "Defines the permissions policies and sharing policies for the board.",
      "properties": {
        "permissionsPolicy": {
          "$ref": "#/$defs/BoardPermissionsPolicy"
        },
        "sharingPolicy": {
          "$ref": "#/$defs/BoardSharingPolicy"
        }
      }
    },
    "BoardProject": {
      "type": "object",
      "description": "Contains information about the project with which the board is associated.",
      "properties": {
        "id": {
          "type": "string",
          "format": "int64",
          "description": "Unique identifier (ID) of the project."
        }
      }
    },
    "BoardSharingPolicy": {
      "type": "object",
      "description": "Defines the public-level, organization-level, and team-level access for the board. The access level that a user gets depends on the highest level of access that results from considering the public-level, team-level, organization-level, and direct sharing access.",
      "properties": {
        "access": {
          "type": "string",
          "description": "Defines the public-level access to the board.",
          "enum": [
            "private",
            "view",
            "edit",
            "comment"
          ]
        },
        "accessPasswordRequired": {
          "type": "boolean",
          "description": "Defines if a password is required to access the board.",
          "default": false
        },
        "inviteToAccountAndBoardLinkAccess": {
          "type": "string",
          "default": "no_access",
          "description": "Defines the user role when inviting a user via the invite to team and board link. For Enterprise users, the `inviteToAccountAndBoardLinkAccess` parameter is always set to `no_access`.",
          "enum": [
            "viewer",
            "commenter",
            "editor",
            "coowner",
            "owner",
            "guest",
            "no_access"
          ]
        },
        "organizationAccess": {
          "type": "string",
          "default": "private",
          "description": "Defines the organization-level access to the board. If the board is created for a team that does not belong to an organization, the `organizationAccess` parameter is always set to the default value.",
          "enum": [
            "private",
            "view",
            "comment",
            "edit"
          ]
        },
        "teamAccess": {
          "type": "string",
          "description": "Defines the team-level access to the board.",
          "enum": [
            "private",
            "view",
            "comment",
            "edit"
          ]
        }
      }
    },
    "GetBoardUserInfoLastOpenedBy": {
      "type": "object",
      "description": "Contains information about the user who last opened the board.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "name": {
          "type": "string",
          "description": "Name of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ]
    },
    "Picture": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "format": "int64",
          "description": "Id of the picture"
        },
        "imageURL": {
          "type": "string",
          "description": "Url of the picture"
        },
        "originalUrl": {
          "type": "string",
          "description": "Original team picture url for icon generation"
        },
        "type": {
          "type": "string",
          "description": "Type of the object returned.",
          "default": "picture"
        }
      }
    },
    "Team": {
      "required": [
        "id",
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Team id"
        },
        "name": {
          "type": "string",
          "description": "Team name"
        },
        "picture": {
          "$ref": "#/$defs/Picture"
        },
        "type": {
          "type": "string",
          "description": "Type of the object returned.",
          "default": "team"
        }
      }
    },
    "UserInfoShort": {
      "type": "object",
      "description": "Contains information about the user who created the board.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "name": {
          "type": "string",
          "description": "Name of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ]
    }
  }
}