PUT v1/Activities/{id}
Updates a journal entry for the current (api) user
Request Information
Requires Authorization!
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required. |
Body Parameters
ActivityJournalEntryChangesName | Description | Type | Additional information |
---|---|---|---|
CategoryId | integer |
None. |
|
ShopId | integer |
None. |
|
CustomerId | integer |
None. |
|
Hours | decimal number |
None. |
|
Date | date |
None. |
|
Subject | string |
None. |
|
Comment | string |
None. |
|
Billable | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CategoryId": 1, "ShopId": 2, "CustomerId": 1, "Hours": 3.0, "Date": "2021-12-02T20:19:31.4822409+01:00", "Subject": "sample string 5", "Comment": "sample string 6", "Billable": true }
application/xml, text/xml
Sample:
<ActivityJournalEntryChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CategoryId>1</CategoryId> <ShopId>2</ShopId> <CustomerId>1</CustomerId> <Hours>3</Hours> <Date>2021-12-02T20:19:31.4822409+01:00</Date> <Subject>sample string 5</Subject> <Comment>sample string 6</Comment> <Billable>true</Billable> </ActivityJournalEntryChanges>
Response Information
Resource Description
ActivityJournalEntry
Name | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Category | ActivityJournalCategory |
None. |
|
Employee | EmployeeBasicInfo |
None. |
|
Shop | ShopBasicInfo |
None. |
|
Customer | CustomerBasicInfo |
None. |
|
Hours | decimal number |
None. |
|
Date | date |
None. |
|
Subject | string |
None. |
|
Comment | string |
None. |
|
Billable | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Category": { "Id": 1, "ShopOwnerId": 1, "Name": "sample string 2" }, "Employee": { "Id": 1, "FullName": "sample string 2", "Login": "sample string 3", "Enabled": true, "ShopOwnerId": 1, "ShopOwnerCompanyName": "sample string 5", "IsAdmin": true, "IsShopOwnerAdmin": true, "LastLogin": "2021-12-02T20:19:31.4822409+01:00", "PhoneExtension": "sample string 8", "CultureId": 1, "CultureCode": "sample string 9" }, "Shop": { "Id": 1, "Name": "sample string 2", "ShopOwnerId": 3, "ShopGroupId": 4, "Active": true }, "Customer": null, "Hours": 2.0, "Date": "2021-12-02T20:19:31.4978545+01:00", "Subject": "sample string 4", "Comment": "sample string 5", "Billable": true }
application/xml, text/xml
Sample:
<ActivityJournalEntry xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>1</Id> <Category> <Id>1</Id> <ShopOwnerId>1</ShopOwnerId> <Name>sample string 2</Name> </Category> <Employee> <Id>1</Id> <FullName>sample string 2</FullName> <Login>sample string 3</Login> <Enabled>true</Enabled> <ShopOwnerId>1</ShopOwnerId> <ShopOwnerCompanyName>sample string 5</ShopOwnerCompanyName> <IsAdmin>true</IsAdmin> <IsShopOwnerAdmin>true</IsShopOwnerAdmin> <LastLogin>2021-12-02T20:19:31.4822409+01:00</LastLogin> <PhoneExtension>sample string 8</PhoneExtension> <CultureId>1</CultureId> <CultureCode>sample string 9</CultureCode> </Employee> <Shop> <Id>1</Id> <Name>sample string 2</Name> <ShopOwnerId>3</ShopOwnerId> <ShopGroupId>4</ShopGroupId> <Active>true</Active> </Shop> <Hours>2</Hours> <Date>2021-12-02T20:19:31.4978545+01:00</Date> <Subject>sample string 4</Subject> <Comment>sample string 5</Comment> <Billable>true</Billable> </ActivityJournalEntry>