Create Time and Expenses with Torch Project Management WebHook

Monday, July 5th, 2010

You've always been able to create time and expense entries as part of a message sent through the Torch WebHook. But what if you want to create an expense or time entry without submitting a message? Now you can, here is some sample JSON:

{
"hours":"2:15",
"note":"Work with client",
"category":"Meetings",
"timestamp":"2010-07-04"
}

Or:

{
"price":"200",
"note":"New Widget",
"category":"Toys",
"timestamp":"2010-07-04"
}

Just like everything created via the WebHooks, this info can be posted as JSON or as POST fields. The only required fields are hours (for time), price (for expense) and note. Category and timestamp are optional.