Project

Get list of projects

  • Endpoint: {SERVER_URL}/api/method/eclectics.api.project.list

  • Method: GET

  • Payload:

{
    "doctype": "Account",
    "fields": ["name", "project_name", "status", "is_active","priority", "cost_center"],
    "filters": [["company", "=", "Demo Company Ltd (Demo)"]],
    "start": 0,
    "page_length": 0,
    "order_by": "creation desc"
}
  • Headers

{
    "Authorization": "token <YOUR_TOKEN>"
}

Create Project

  • Endpoint: {SERVER_URL}/api/method/eclectics.api.project.create

  • Method: POST

  • Payload:

{
    "actual_end_date": null,
    "actual_start_date": null,
    "cost_center": null,
    "customer": null,
    "estimated_costing": 0,
    "expected_end_date": null,
    "expected_start_date": null,
    "is_active": "Yes",
    "priority": "Medium",
    "project_name": "Bridge Construction",
    "status": "Open"
}
  • Headers

{
   "Authorization": "token <YOUR_TOKEN>"
}

Update Project

  • Endpoint: {SERVER_URL}/api/method/eclectics.api.project.update

  • Method: POST

  • Payload:

{
    "id": "PROJ-0001",
    "actual_end_date": null,
    "actual_start_date": null,
    "cost_center": null,
    "customer": null,
    "estimated_costing": 0,
    "expected_end_date": null,
    "expected_start_date": null,
    "is_active": "Yes",
    "priority": "Medium",
    "project_name": "Lone Bridge Construction",
    "status": "Open"
}
  • Headers

{
    "Authorization": "token <YOUR_TOKEN>"
}

Delete Project

  • Endpoint: {SERVER_URL}/api/method/eclectics.api.project.delete

  • Method: DELETE

  • Payload:

{
    "doc_id": "PROJ-0001"
}
  • Headers

{
    "Authorization": "token <YOUR_TOKEN>"
}

Get a single Project

  • Endpoint: {SERVER_URL}/api/method/eclectics.api.project.get

  • Method: GET

  • Payload:

{
    "doc_id": "PROJ-0001"
}
  • Headers

{
    "Authorization": "token <YOUR_TOKEN>"
}