How to Submit timesheets with REST API in Clarity PPM
search cancel

How to Submit timesheets with REST API in Clarity PPM

book

Article ID: 141374

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

How to submit a timesheet in Clarity using Rest API

Resolution

In order to submit a timesheet, the prerequisite is to create the timesheet in clarity and once you have the timesheet Id then you can create the sample JSON response and submit the timesheet

 

URL :- http://hostname/ppm/rest/v1/timesheets/{timesheetinternalid}

Method :- PUT

Additional Header :- x-api-force-patch = true

 

JSON Body :- 

{
    "_internalId": 5021xxx, 
    "submittedBy": "1",
    "status": "1"
}

 

internalid is the timesheet internal ID.

submittedBy is the internal id of the resource who submitted the timesheet.

Status = 1 is Submitted.

Status = 2 is returned.

Status = 3 is Approved.

Additional Information

More information on API can be found in our product API Documentation