Create a task

POST /api/v1/task

Headers

application/json

Body Required

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • name string

      The name of the task

    • The description of the task

    • priority string

      The priority of the task. Available Options: low, medium, high and highest

    • position integer

      The position of the task

    • due_at string

      The due date of the task

    • status object

      The status of the task. Can be any of the task statuses defined in the firm's settings

      Additional properties are allowed.

    • The type of the taskable. Available options: client, case, plan

    • taskable object

      The type of the taskable.

      Additional properties are allowed.

    • author object

      The account that created the task

      Additional properties are allowed.

    • The accounts that the task is assigned to

      Additional properties are allowed.

    • The date the task was completed

    • The account that completed the task

      Additional properties are allowed.

    • custom_fields array[object]

      Any custom fields on the model.

      Additional properties are allowed.

POST /api/v1/task
curl \
 -X POST https://api.plannrcrm.com/api/v1/task \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 -d '{"name":"Check details","description":"Check details","priority":"low","due_at":"2020-01-01 00:00:00","taskable_type":"plan","taskable_uuid":"8b2d1f48-1126-4c91-9b94-76a65b172fd8","task_status_uuid":"b0e11c12-5c31-4892-ba2a-f3ab447ab0f3","parent_task_uuid":"72c9e617-b590-4ffa-a3a7-e964f0a6b0f5","assigned_to_uuids":["76e90fc9-e011-4424-be87-89a7dba07107","5ba98ad5-3ea4-4752-8e4e-a13ba14650aa"],"custom_fields":[{"favourite_pet":"Dog"}],"group_uuids":["65ce2e03-2d25-4012-9ad4-eb76911a45dd","56519e19-d394-485f-a18b-96284d30cbed"]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "name": "Check details",
  "description": "Check details",
  "priority": "low",
  "due_at": "2020-01-01 00:00:00",
  "taskable_type": "plan",
  "taskable_uuid": "8b2d1f48-1126-4c91-9b94-76a65b172fd8",
  "task_status_uuid": "b0e11c12-5c31-4892-ba2a-f3ab447ab0f3",
  "parent_task_uuid": "72c9e617-b590-4ffa-a3a7-e964f0a6b0f5",
  "assigned_to_uuids": [
    "76e90fc9-e011-4424-be87-89a7dba07107",
    "5ba98ad5-3ea4-4752-8e4e-a13ba14650aa"
  ],
  "custom_fields": [
    {
      "favourite_pet": "Dog"
    }
  ],
  "group_uuids": [
    "65ce2e03-2d25-4012-9ad4-eb76911a45dd",
    "56519e19-d394-485f-a18b-96284d30cbed"
  ]
}
Response examples (201)
{
  "name": "Document the transaction",
  "uuid": "39ac1283-fe7f-465c-9163-0f6ac7b7b071",
  "author": {
    "name": {
      "example": "Gareth Thompson",
      "collection": false,
      "description": "Name"
    },
    "role": {
      "example": "client",
      "collection": false,
      "description": "Account role"
    },
    "type": {
      "example": "client",
      "collection": false,
      "description": "Account type"
    },
    "uuid": {
      "example": "04ec5b0b-03fd-484d-a95b-82a5693eef4c",
      "collection": false,
      "description": "The UUID of the resource."
    },
    "email": {
      "example": "gareth@codepotato.co.uk",
      "collection": false,
      "description": "Email"
    },
    "last_name": {
      "example": "Thompson",
      "collection": false,
      "description": "Last name"
    },
    "photo_url": {
      "example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
      "collection": false,
      "description": "The photo URL of the client"
    },
    "created_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was created."
    },
    "first_name": {
      "example": "Gareth",
      "collection": false,
      "description": "First name"
    },
    "updated_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was updated."
    },
    "external_references": {
      "example": "App\\Http\\Resources\\ExternalReferenceResource",
      "collection": true,
      "description": "The external references that have been added to the client."
    }
  },
  "due_at": "2021-01-01 00:00:00",
  "status": {
    "name": "Incomplete",
    "uuid": "cb841765-4f46-47cc-9869-a915d12912a8",
    "colour": "#398898",
    "position": 1,
    "created_at": "2025-01-17T11:18:30+00:00",
    "updated_at": "2025-01-17T11:18:30+00:00",
    "is_archived": false,
    "is_not_started": false,
    "is_type_completed": false
  },
  "position": 1,
  "priority": "high",
  "taskable": {
    "name": "finance",
    "slug": "finance",
    "type": "App\\Http\\Resources\\CasesTypeResource",
    "uuid": "ef80b37d-4c70-4280-9913-6be8fae01249",
    "plans": "App\\Http\\Resources\\Plans\\PlanResource",
    "value": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "status": "App\\Http\\Resources\\CasesStatusResource",
    "created_at": "2025-01-17T11:18:30+00:00",
    "updated_at": "2025-01-17T11:18:30+00:00",
    "completed_at": "2025-01-17T11:18:30+00:00",
    "participants": "App\\Http\\Resources\\AccountResource",
    "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
    "status_position": 4,
    "task_board_uuid": "0d2052d0-8f41-492c-b821-c1c30c58b4cc",
    "participants_count": 4
  },
  "created_at": "2025-01-17T11:18:30+00:00",
  "updated_at": "2025-01-17T11:18:30+00:00",
  "assigned_to": {
    "name": {
      "example": "Gareth Thompson",
      "collection": false,
      "description": "Name"
    },
    "role": {
      "example": "client",
      "collection": false,
      "description": "Account role"
    },
    "type": {
      "example": "client",
      "collection": false,
      "description": "Account type"
    },
    "uuid": {
      "example": "501918ad-5d60-474b-b7ae-f11c9d527373",
      "collection": false,
      "description": "The UUID of the resource."
    },
    "email": {
      "example": "gareth@codepotato.co.uk",
      "collection": false,
      "description": "Email"
    },
    "last_name": {
      "example": "Thompson",
      "collection": false,
      "description": "Last name"
    },
    "photo_url": {
      "example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
      "collection": false,
      "description": "The photo URL of the client"
    },
    "created_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was created."
    },
    "first_name": {
      "example": "Gareth",
      "collection": false,
      "description": "First name"
    },
    "updated_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was updated."
    },
    "external_references": {
      "example": "App\\Http\\Resources\\ExternalReferenceResource",
      "collection": true,
      "description": "The external references that have been added to the client."
    }
  },
  "description": "Document the transaction",
  "completed_at": "2021-01-01 00:00:00",
  "completed_by": {
    "name": {
      "example": "Gareth Thompson",
      "collection": false,
      "description": "Name"
    },
    "role": {
      "example": "client",
      "collection": false,
      "description": "Account role"
    },
    "type": {
      "example": "client",
      "collection": false,
      "description": "Account type"
    },
    "uuid": {
      "example": "7347f23f-66f7-4523-a5eb-0203547d4d12",
      "collection": false,
      "description": "The UUID of the resource."
    },
    "email": {
      "example": "gareth@codepotato.co.uk",
      "collection": false,
      "description": "Email"
    },
    "last_name": {
      "example": "Thompson",
      "collection": false,
      "description": "Last name"
    },
    "photo_url": {
      "example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
      "collection": false,
      "description": "The photo URL of the client"
    },
    "created_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was created."
    },
    "first_name": {
      "example": "Gareth",
      "collection": false,
      "description": "First name"
    },
    "updated_at": {
      "example": "2025-01-17T11:18:30+00:00",
      "collection": false,
      "description": "The timestamp of when the resource was updated."
    },
    "external_references": {
      "example": "App\\Http\\Resources\\ExternalReferenceResource",
      "collection": true,
      "description": "The external references that have been added to the client."
    }
  },
  "custom_fields": [
    {
      "name": "Favourite Drink",
      "type": "string",
      "uuid": "1aaa9262-9348-4621-8aad-c57828f04e94",
      "value": "Coffee",
      "help_text": "This is the client's favourite drink.",
      "reference": "favourite_drink",
      "created_at": "2025-01-17T11:18:30+00:00",
      "updated_at": "2025-01-17T11:18:30+00:00",
      "is_required": false,
      "selection_options": [
        "Coffee",
        "Tea",
        "Water"
      ]
    }
  ],
  "taskable_type": "case"
}