> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

The `Task` object is used to represent a task, such as a to-do item.

### The Task Object

```json
{
  "id": "string",
  "remote_id": "string",
  "created_at": "2023-01-01T00:00:00Z",
  "modified_at": "2023-01-01T00:00:00Z",
  "subject": "string",
  "content": "string",
  "owner": "string",
  "account": "string",
  "opportunity": "string",
  "contact": "string",
  "completed_date": "2023-01-01T00:00:00Z",
  "due_date": "2023-01-01T00:00:00Z",
  "status": "OPEN",
  "task_url": "string",
  "remote_was_deleted": true,
  "field_mappings": {
    "organization_defined_targets": {
      "string": {}
    },
    "linked_account_defined_targets": {
      "string": {}
    }
  },
  "remote_data": [
    {
      "path": "string",
      "data": {}
    }
  ],
  "remote_fields": [
    {
      "remote_field_class": {
        "id": "string",
        "display_name": "string",
        "remote_key_name": "string",
        "description": "string",
        "is_custom": true,
        "is_common_model_field": true,
        "is_required": true,
        "field_type": "string",
        "field_format": "string",
        "field_choices": [
          "string"
        ],
        "item_schema": {
          "item_type": "string",
          "item_format": "string",
          "item_choices": [
            "string"
          ]
        }
      },
      "value": {
        "string": {}
      }
    }
  ]
}
```

### Schema (`Task`)

```yaml
components:
  schemas:
    TaskStatusEnum:
      type: string
      enum:
        - OPEN
        - CLOSED
      title: TaskStatusEnum
    TaskFieldMappings:
      type: object
      properties:
        organization_defined_targets:
          type: object
          additionalProperties:
            description: Any type
        linked_account_defined_targets:
          type: object
          additionalProperties:
            description: Any type
      title: TaskFieldMappings
    RemoteData:
      type: object
      properties:
        path:
          type: string
          description: The third-party API path that is being called.
        data:
          description: >-
            The data returned from the third-party for this object in its
            original, unnormalized format.
      required:
        - path
      description: >-
        # The RemoteData Object

        ### Description

        The `RemoteData` object is used to represent the full data pulled from
        the third-party API for an object.


        ### Usage Example

        TODO
      title: RemoteData
    FieldTypeEnum:
      type: string
      enum:
        - string
        - number
        - date
        - datetime
        - bool
        - list
      title: FieldTypeEnum
    FieldFormatEnum:
      type: string
      enum:
        - string
        - number
        - date
        - datetime
        - bool
        - list
      title: FieldFormatEnum
    ItemTypeEnum:
      type: string
      enum:
        - string
        - number
        - date
        - datetime
        - bool
        - list
      title: ItemTypeEnum
    ItemFormatEnum:
      type: string
      enum:
        - string
        - number
        - date
        - datetime
        - bool
        - list
      title: ItemFormatEnum
    ItemSchema:
      type: object
      properties:
        item_type:
          $ref: '#/components/schemas/ItemTypeEnum'
        item_format:
          $ref: '#/components/schemas/ItemFormatEnum'
        item_choices:
          type: array
          items:
            type: string
      title: ItemSchema
    RemoteFieldClass:
      type: object
      properties:
        id:
          type: string
        display_name:
          type: string
        remote_key_name:
          type: string
        description:
          type: string
        is_custom:
          type: boolean
        is_common_model_field:
          type: boolean
        is_required:
          type: boolean
        field_type:
          $ref: '#/components/schemas/FieldTypeEnum'
        field_format:
          $ref: '#/components/schemas/FieldFormatEnum'
        field_choices:
          type: array
          items:
            type: string
        item_schema:
          $ref: '#/components/schemas/ItemSchema'
      title: RemoteFieldClass
    RemoteField:
      type: object
      properties:
        remote_field_class:
          $ref: '#/components/schemas/RemoteFieldClass'
        value:
          type: object
          additionalProperties:
            description: Any type
      required:
        - remote_field_class
      title: RemoteField
    Task:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
            - string
            - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        subject:
          type:
            - string
            - 'null'
          description: The task's subject.
        content:
          type:
            - string
            - 'null'
          description: The task's content.
        owner:
          type:
            - string
            - 'null'
          format: uuid
          description: The task's owner.
        account:
          type:
            - string
            - 'null'
          format: uuid
          description: The task's account.
        opportunity:
          type:
            - string
            - 'null'
          format: uuid
          description: The task's opportunity.
        contact:
          type:
            - string
            - 'null'
          format: uuid
          description: The task's contact.
        completed_date:
          type:
            - string
            - 'null'
          format: date-time
          description: When the task is completed.
        due_date:
          type:
            - string
            - 'null'
          format: date-time
          description: When the task is due.
        status:
          oneOf:
            - $ref: '#/components/schemas/TaskStatusEnum'
            - type: 'null'
          description: The task's status.
        task_url:
          type:
            - string
            - 'null'
          format: uri
          maxLength: 2000
          description: The task's URL in the remote system.
        remote_was_deleted:
          type: boolean
          description: >-
            Indicates whether or not this object has been deleted in the third
            party platform. Full coverage deletion detection is a premium
            add-on. Native deletion detection is offered for free with limited
            coverage. [Learn
            more](https://docs.merge.dev/integrations/hris/supported-features/).
        field_mappings:
          oneOf:
            - $ref: '#/components/schemas/TaskFieldMappings'
            - type: 'null'
        remote_data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/RemoteData'
        remote_fields:
          type: array
          items:
            $ref: '#/components/schemas/RemoteField'
      title: Task
```