Skip to main content

Deleting people

This endpoint deletes a specific people.

HTTP Request

DELETE https://api.lunatask.app/v1/people/<id>

URL Parameters

ParameterDescription
idThe ID of the person to delete

Example in Ruby

require 'rest-client'

access_token = 'xxx'

RestClient.delete('https://api.lunatask.app/v1/5999b945-b2b1-48c6-aa72-b251b75b3c2e', { Authorization: "bearer #{access_token}" })

Response

The above command returns JSON structured like this:

{
"task": {
"id": "5999b945-b2b1-48c6-aa72-b251b75b3c2e",
"relationship_strength": "business-contacts",
"sources": [
{
"source": "salesforce",
"source_id": "352fd2d7-cdc0-4e91-a0a3-9d6cc9d440e7"
}
],
"created_at": "2021-01-10T10:39:25Z",
"updated_at": "2021-01-10T12:52:04Z",
"deleted_at": "2021-01-10T12:52:04Z"
}
}