Task Resource


Task Model

{
    "id": 1,
    "task_id": 1,
    "type": {
        "raw": "task",
        "formatted": "Task"
    },

    "author_id": 1,
    "author": {...},

    "account_id": 1,
    "account": {...},

    "season_id": 1,
    "season": {...},

    "collection_id": 1,
    "collection": {...},

    "status_id": 1,
    "status": {...},

    "contract_id": 1,
    "contract": {...},

    "inventory_id": 1,
    "inventory": {...},

    "assigned_id": 5,
    "assigned": {...},

    "name": "Example Task",
    "description": {
        "html": "<p>An example description.</p>",
        "text": "An example description."
    },
    "due_date": {
        "raw": "2020-01-01 12:00:00",
        "Formatted": "January 1, 2020"
    },

    "rate": {
        "raw": 100.5,
        "formatted": "$100.50" 
    },
    "cost": {
        "raw": 10,
        "formatted": "$10.00" 
    },
    "quantity": 1,
    "total": {
        "raw": 191,
        "formatted": "$90.50" 
    },
    "urls": {
        "web": "https://example.trak.io/accounts/1/task/1",
        "portal": "https://example.trak.io/portal/1/1",
        "api": "https://example.trak.io/api/v1/tasks/1"
    },
    "created_at": {...},
    "updated_at": {...},
    "deleted_at": {...}
}

Task Relationships

Here is a list of available resources to join on tasks.

['account', 'activity', 'assigned', 'author', 'comments', 'contract', 'events', 'files', 'season', 'status', 'subtasks']