Skip to Content
PeopleForce
Tasks

Deprecated

Company API v2 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3, which serves every v2 path under /api/public/v3.

Create a task

Deprecated

POST
/api/public/v2/tasks

Request Body

application/json
  1. body
name*string
description?string
employee_id*integer
Formatint64
starts_on*string
Formatdate
ends_on?string
Formatdate

Response Body

The created task.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v2/tasks' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "employee_id": 0,  "starts_on": "2019-08-24"}'
Example Response
{  "data": {    "id": 0,    "type": "Tasks::General",    "title": "string",    "starts_on": "2019-08-24",    "ends_on": "2019-08-24",    "completed_at": "2019-08-24T14:15:22Z",    "completed": true,    "description": "string",    "description_plain": "string",    "assigned_to": {      "id": 0,      "full_name": "string",      "email": "string"    },    "created_by": {      "id": 0,      "full_name": "string",      "email": "string"    },    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}