Clio API V4 Communication how to add Time Entry VIA API?

169 views Asked by At

I'm just wondering if there is a way to add a Recorded Time in Communication Phone Call using the API?

enter image description here

2

There are 2 answers

0
J. Tucker On

Sounds like you managed to answer your own question, but for anyone dealing with the same or similar issue, I thought I would throw in my two cents.

This is really a two step operation:

  1. Create the Communication log through a POST request to /api/v4/communications.json endpoint.
  2. Create an activities entry associated with the communication you just created through a POST request to /api/v4/activites.json.

After you create the communication, you can get the ID back for the record you just made. Using that, you create a new Activity record, and as part of the payload, you include the ID in the following.

{
"data": {
    "communication": {
        "id": 0
    },
    "quantity": $time_qty,
    "date": "YYYY-MM-DD",
    "type": "TimeEntry"
    }
}
1
Lee On

Okay I just found it in the documentation Activity Endpoint.

https://app.clio.com/api/v4/documentation#operation/Activity#create