---
title: "Create task"
method: POST
path: "/api/tasks/"
tags: ["Tasks"]
---

# Create task

`POST /api/tasks/`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/tasks/`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/tasks/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new task for a property or contact entity

## Request body

- TaskStoreRequest
  - `scraping_session_id` integer
  - `type` string
  - `entity_id` integer
  - `entity_type` string
  - `invalid_data` string

## Response `200`

The newly created task.

- TaskShowStoreUpdateResource
  - `id` integer
  - `session_id` integer, nullable
  - `type` string
  - `entity_id` integer
  - `entity_ulid` string
  - `entity_type` string
  - `invalid_data` string
  - `reason` string
  - `assigned_to` integer
  - `created_at` string, date-time
  - `due_date` string, date-time
  - `entity_logo` string
  - `league_id` integer
  - `league_name` string

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
