Delete a sub-source of a lead source Run in API Explorer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.plannrcrm.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "PlannrCRM MCP server": {
    "url": "https://apidocs.plannrcrm.com/mcp"
  }
}

Close
DELETE /api/v1/lead-sources/{lead_source_uuid}/sub-sources/{uuid}

A sub-source referenced by any lead cannot be deleted and must be archived instead.

Path parameters

  • lead_source_uuid string Required
  • uuid string Required

Responses

  • 409 application/json

    Sub-source in use

    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

DELETE /api/v1/lead-sources/{lead_source_uuid}/sub-sources/{uuid}
curl \
 --request DELETE 'https://api.plannrcrm.com/api/v1/lead-sources/6ff8f7f6-1eb3-3525-be4a-3932c805afed/sub-sources/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (409)
{
  "message": "This sub-source is in use by one or more leads and must be archived instead."
}