# task_watch

Subscribe to Task

## Beschreibung

Subscribe or unsubscribe yourself to task changes and Inbox notifications. Use task_relation_save with kind=watches for task-to-task coordination. Subscribing grants no additional access.

## Zugriff

Zugriffsprofil: `gated`. Module: `projects_tasks`, `simple_projects_tasks`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja |  |
| `task_id` | string | Ja |  |
| `active` | boolean | Nein |  |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "task_id": {
      "type": "string"
    },
    "active": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "account_id",
    "task_id"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "subscription": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "task_id": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "active",
        "task_id"
      ]
    }
  },
  "required": [
    "subscription"
  ],
  "type": "object"
}
```
