# Notification

Type: Notification

Schema: [Notification](https://sourcey-peertube.pages.dev/api-rest-reference/models/notification.md)

- `id` (optional)
  Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

- `type` (optional)
  Reference: [NotificationType](https://sourcey-peertube.pages.dev/api-rest-reference/models/notificationtype.md); Type: NotificationType
  
  Notification type. One of the following values:
  
    - `1` NEW_VIDEO_FROM_SUBSCRIPTION
  
    - `2` NEW_COMMENT_ON_MY_VIDEO
  
    - `3` NEW_ABUSE_FOR_MODERATORS
  
    - `4` BLACKLIST_ON_MY_VIDEO
  
    - `5` UNBLACKLIST_ON_MY_VIDEO
  
    - `6` MY_VIDEO_PUBLISHED
  
    - `7` MY_VIDEO_IMPORT_SUCCESS
  
    - `8` MY_VIDEO_IMPORT_ERROR
  
    - `9` NEW_USER_REGISTRATION
  
    - `10` NEW_FOLLOW
  
    - `11` COMMENT_MENTION
  
    - `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
  
    - `13` NEW_INSTANCE_FOLLOWER
  
    - `14` AUTO_INSTANCE_FOLLOWING
  
    - `15` ABUSE_STATE_CHANGE
  
    - `16` ABUSE_NEW_MESSAGE
  
    - `17` NEW_PLUGIN_VERSION
  
    - `18` NEW_PEERTUBE_VERSION
  
    - `19` MY_VIDEO_STUDIO_EDITION_FINISHED
  
    - `20` NEW_USER_REGISTRATION_REQUEST
  
    - `21` NEW_LIVE_FROM_SUBSCRIPTION
  
    - `22` MY_VIDEO_TRANSCRIPTION_GENERATED
  
    - `23` INVITED_TO_COLLABORATE_TO_CHANNEL
  
    - `24` ACCEPTED_TO_COLLABORATE_TO_CHANNEL
  
    - `25` REFUSED_TO_COLLABORATE_TO_CHANNEL
  
    - `26` VIDEO_OWNERSHIP_CHANGED_REQUEST
  
    - `27` VIDEO_OWNERSHIP_CHANGED_ACCEPTED
  
    - `28` VIDEO_OWNERSHIP_CHANGED_REJECTED
  
    - `29` CHANNEL_OWNERSHIP_CHANGED_REQUEST
  
    - `30` CHANNEL_OWNERSHIP_CHANGED_ACCEPTED
  
    - `31` CHANNEL_OWNERSHIP_CHANGED_REJECTED
  
    - `32` AUTOMATIC_BLOCKLIST_UPDATE
  
    - `33` MY_VIDEO_STUDIO_EDITION_ERROR
  
    - `34` MY_VIDEO_DUPLICATION_ERROR
  
  
  enum: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]

- `read` (optional)
  Type: boolean

- `video` (optional)
  Type: VideoInfo & object; nullable
  
  allOf:
    Reference: [VideoInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoinfo.md); Type: VideoInfo
  
    Type: object
    
    - `channel` (optional)
      Reference: [ActorInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/actorinfo.md); Type: ActorInfo

- `videoImport` (optional)
  Type: object; nullable
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```
  
  - `video` (optional)
    Type: VideoInfo; nullable
    
    allOf:
      Reference: [VideoInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoinfo.md); Type: VideoInfo
  
  - `torrentName` (optional)
    Type: string; nullable
  
  - `magnetUri` (optional)
    Type: magnetUri, uri
    
    magnet URI allowing to resolve the import's source video
    
    pattern: "/magnet:\\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i"
  
  - `targetUri` (optional)
    Type: string, uri; nullable

- `comment` (optional)
  Type: object; nullable
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```
  
  - `threadId` (optional)
    Type: integer
  
  - `video` (optional)
    Reference: [VideoInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoinfo.md); Type: VideoInfo
  
  - `account` (optional)
    Reference: [ActorInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/actorinfo.md); Type: ActorInfo
  
  - `heldForReview` (optional)
    Type: boolean

- `videoAbuse` (optional)
  Type: object; nullable
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```
  
  - `video` (optional)
    Type: VideoInfo
    
    allOf:
      Reference: [VideoInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoinfo.md); Type: VideoInfo

- `videoBlacklist` (optional)
  Type: object; nullable
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```
  
  - `video` (optional)
    Type: VideoInfo
    
    allOf:
      Reference: [VideoInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoinfo.md); Type: VideoInfo

- `account` (optional)
  Type: ActorInfo; nullable
  
  allOf:
    Reference: [ActorInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/actorinfo.md); Type: ActorInfo

- `actorFollow` (optional)
  Type: object; nullable
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```
  
  - `follower` (optional)
    Reference: [ActorInfo](https://sourcey-peertube.pages.dev/api-rest-reference/models/actorinfo.md); Type: ActorInfo
  
  - `state` (optional)
    Type: string
    
    enum: ["pending","accepted"]
  
  - `following` (optional)
    Type: object
    
    - `type` (optional)
      Type: string
      
      enum: ["account","channel","instance"]
    
    - `name` (optional)
      Type: string
    
    - `displayName` (optional)
      Type: string
    
    - `host` (optional)
      Type: string, hostname

- `createdAt` (optional)
  Type: string, date-time

- `updatedAt` (optional)
  Type: string, date-time