Tasks
Deprecated
Company API v1 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3.
Create a task
Deprecated
POST
application/x-www-form-urlencoded- body
name*stringdescription?stringemployee_id*stringstarts_on*stringFormat
dateends_on?stringFormat
dateThe created task.
application/json- response
data*curl -X POST 'https://app.peopleforce.io/api/public/v1/tasks' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'name=string&employee_id=string&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" }}