POST https://api.d-tools.com/SI/Publish/TimeSheets
Publish a new time sheet to SI.
Request Information
URI Parameters
None.
Body Parameters
NewTimeSheetRequest.
NewTimeSheetsRequestName | Description | Type | Additional information |
---|---|---|---|
Name |
Name (Optional) |
string |
None. |
NewTimeSheets |
Array of new time sheets |
Collection of NewTimeSheet |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "NewTimeSheets": [ { "EntityId": 64, "EntitySourceId": "sample string 2", "Date": "2025-03-06T03:17:31.0293765+00:00", "DateTicks": 4, "Resource": "sample string 5", "Phase": "sample string 6", "LaborType": "sample string 7", "SubLaborType": "sample string 8", "TypeId": 64, "Duration": 10.0, "StartTime": "2025-03-06T03:17:31.0293765+00:00", "EndTime": "2025-03-06T03:17:31.0293765+00:00", "Billable": true, "Overtime": true, "Description": "sample string 12" }, { "EntityId": 64, "EntitySourceId": "sample string 2", "Date": "2025-03-06T03:17:31.0293765+00:00", "DateTicks": 4, "Resource": "sample string 5", "Phase": "sample string 6", "LaborType": "sample string 7", "SubLaborType": "sample string 8", "TypeId": 64, "Duration": 10.0, "StartTime": "2025-03-06T03:17:31.0293765+00:00", "EndTime": "2025-03-06T03:17:31.0293765+00:00", "Billable": true, "Overtime": true, "Description": "sample string 12" } ] }
application/xml, text/xml
Sample:
<NewTimeSheetsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects"> <Name>sample string 1</Name> <NewTimeSheets> <NewTimeSheet> <Billable>true</Billable> <Description>sample string 12</Description> <Duration>10</Duration> <EndTime>2025-03-06T03:17:31.0293765+00:00</EndTime> <LaborType>sample string 7</LaborType> <Overtime>true</Overtime> <Phase>sample string 6</Phase> <StartTime>2025-03-06T03:17:31.0293765+00:00</StartTime> <SubLaborType>sample string 8</SubLaborType> <TypeId>64</TypeId> <Date>2025-03-06T03:17:31.0293765+00:00</Date> <DateTicks>4</DateTicks> <EntityId>64</EntityId> <EntitySourceId>sample string 2</EntitySourceId> <Resource>sample string 5</Resource> </NewTimeSheet> <NewTimeSheet> <Billable>true</Billable> <Description>sample string 12</Description> <Duration>10</Duration> <EndTime>2025-03-06T03:17:31.0293765+00:00</EndTime> <LaborType>sample string 7</LaborType> <Overtime>true</Overtime> <Phase>sample string 6</Phase> <StartTime>2025-03-06T03:17:31.0293765+00:00</StartTime> <SubLaborType>sample string 8</SubLaborType> <TypeId>64</TypeId> <Date>2025-03-06T03:17:31.0293765+00:00</Date> <DateTicks>4</DateTicks> <EntityId>64</EntityId> <EntitySourceId>sample string 2</EntitySourceId> <Resource>sample string 5</Resource> </NewTimeSheet> </NewTimeSheets> </NewTimeSheetsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PublishResponseName | Description | Type | Additional information |
---|---|---|---|
MessageId |
Check the status of the transaction using this Message Id |
globally unique identifier |
None. |
Message |
Success Message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "MessageId": "ce268e7d-6fef-49c6-91c6-f31e2fc0276c", "Message": "sample string 2" }
application/xml, text/xml
Sample:
<PublishResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects"> <Message>sample string 2</Message> <MessageId>ce268e7d-6fef-49c6-91c6-f31e2fc0276c</MessageId> </PublishResponse>