Skip to content

Commit 5c79ca4

Browse files
authored
Merge pull request #226 from XeroAPI/xero-ruby-3.10.0
progress
2 parents 66ff416 + 1ce5ed3 commit 5c79ca4

18 files changed

Lines changed: 990 additions & 50 deletions

File tree

docs/accounting/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5560,7 +5560,7 @@
55605560
"ReportTaxType" : {
55615561
"type" : "string",
55625562
"description" : "See ReportTaxTypes",
5563-
"enum" : [ "AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT" ]
5563+
"enum" : [ "AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT" ]
55645564
},
55655565
"CanApplyToAssets" : {
55665566
"type" : "boolean",
@@ -5625,7 +5625,7 @@
56255625
"title" : "",
56265626
"type" : "string",
56275627
"description" : "See Tax Types – can only be used on update calls",
5628-
"enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT" ]
5628+
"enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT" ]
56295629
};
56305630
defs["TenNinetyNineContact"] = {
56315631
"title" : "",
@@ -6008,7 +6008,7 @@
60086008
<nav id="scrollingNav">
60096009
<ul class="sidenav nav nav-list">
60106010
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6011-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>3.9.0</li>
6011+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>3.10.0</li>
60126012
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
60136013
<li data-group="Accounting" data-name="createAccount" class="">
60146014
<a href="#api-Accounting-createAccount">createAccount</a>

docs/app_store/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@
11411141
<nav id="scrollingNav">
11421142
<ul class="sidenav nav nav-list">
11431143
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1144-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>3.9.0</li>
1144+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>3.10.0</li>
11451145
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
11461146
<li data-group="AppStore" data-name="getSubscription" class="">
11471147
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@
13921392
<nav id="scrollingNav">
13931393
<ul class="sidenav nav nav-list">
13941394
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1395-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>3.9.0</li>
1395+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>3.10.0</li>
13961396
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13971397
<li data-group="Asset" data-name="createAsset" class="">
13981398
<a href="#api-Asset-createAsset">createAsset</a>

docs/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@
11551155
<nav id="scrollingNav">
11561156
<ul class="sidenav nav nav-list">
11571157
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1158-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>3.9.0</li>
1158+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>3.10.0</li>
11591159
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11601160
<li data-group="Files" data-name="createFileAssociation" class="">
11611161
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@
27182718
<nav id="scrollingNav">
27192719
<ul class="sidenav nav nav-list">
27202720
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2721-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>3.9.0</li>
2721+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>3.10.0</li>
27222722
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27232723
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27242724
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll_au/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@
32543254
<nav id="scrollingNav">
32553255
<ul class="sidenav nav nav-list">
32563256
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3257-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>3.9.0</li>
3257+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>3.10.0</li>
32583258
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
32593259
<li data-group="PayrollAu" data-name="createEmployee" class="">
32603260
<a href="#api-PayrollAu-createEmployee">createEmployee</a>

docs/payroll_nz/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3838,7 +3838,7 @@
38383838
<nav id="scrollingNav">
38393839
<ul class="sidenav nav nav-list">
38403840
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3841-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>3.9.0</li>
3841+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>3.10.0</li>
38423842
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38433843
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38443844
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll_uk/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@
35103510
<nav id="scrollingNav">
35113511
<ul class="sidenav nav nav-list">
35123512
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3513-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>3.9.0</li>
3513+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>3.10.0</li>
35143514
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35153515
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35163516
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>

docs/projects/ProjectApi.md

Lines changed: 208 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ All URIs are relative to *https://api.xero.com/projects.xro/2.0*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_project**](ProjectApi.md#create_project) | **POST** /Projects | Create one or more new projects
8+
[**create_task**](ProjectApi.md#create_task) | **POST** /Projects/{projectId}/Tasks | Allows you to create a task
89
[**create_time_entry**](ProjectApi.md#create_time_entry) | **POST** /Projects/{projectId}/Time | Creates a time entry for a specific project
10+
[**delete_task**](ProjectApi.md#delete_task) | **DELETE** /Projects/{projectId}/Tasks/{taskId} | Allows you to delete a task
911
[**delete_time_entry**](ProjectApi.md#delete_time_entry) | **DELETE** /Projects/{projectId}/Time/{timeEntryId} | Deletes a time entry for a specific project
1012
[**get_project**](ProjectApi.md#get_project) | **GET** /Projects/{projectId} | Retrieves a single project
1113
[**get_project_users**](ProjectApi.md#get_project_users) | **GET** /ProjectsUsers | Retrieves a list of all project users
@@ -16,6 +18,7 @@ Method | HTTP request | Description
1618
[**get_time_entry**](ProjectApi.md#get_time_entry) | **GET** /Projects/{projectId}/Time/{timeEntryId} | Retrieves a single time entry for a specific project
1719
[**patch_project**](ProjectApi.md#patch_project) | **PATCH** /Projects/{projectId} | creates a project for the specified contact
1820
[**update_project**](ProjectApi.md#update_project) | **PUT** /Projects/{projectId} | Updates a specific project
21+
[**update_task**](ProjectApi.md#update_task) | **PUT** /Projects/{projectId}/Tasks/{taskId} | Allows you to update a task
1922
[**update_time_entry**](ProjectApi.md#update_time_entry) | **PUT** /Projects/{projectId}/Time/{timeEntryId} | Updates a time entry for a specific project
2023

2124

@@ -84,6 +87,73 @@ Name | Type | Description | Notes
8487
- **Accept**: application/json
8588

8689

90+
## create_task
91+
92+
> create_task(xero_tenant_id, project_id, task_create_or_update)
93+
94+
Allows you to create a task
95+
96+
Allows you to create a specific task
97+
98+
### Example
99+
100+
```ruby
101+
# load the gem
102+
require 'xero-ruby'
103+
104+
creds = {
105+
client_id: ENV['CLIENT_ID'],
106+
client_secret: ENV['CLIENT_SECRET'],
107+
redirect_uri: ENV['REDIRECT_URI'],
108+
scopes: ENV['SCOPES']
109+
}
110+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
111+
112+
token_set = fetch_valid_token_set(user) # example
113+
114+
xero_client.refresh_token_set(token_set)
115+
116+
# You need to namespace your api method call to one of the following api sets
117+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api]
118+
119+
api_instance = xero_client.<api_set>
120+
121+
122+
123+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
124+
project_id = 'project_id_example' # String | You can create a task on a specified projectId
125+
task_create_or_update = { "status": "INPROGRESS" } # TaskCreateOrUpdate | The task object you are creating
126+
begin
127+
#Allows you to create a task
128+
api_instance.create_task(xero_tenant_id, project_id, task_create_or_update)
129+
rescue XeroRuby::Projects::ApiError => e
130+
puts "Exception when calling ProjectApi->create_task: #{e}"
131+
end
132+
```
133+
134+
### Parameters
135+
136+
137+
Name | Type | Description | Notes
138+
------------- | ------------- | ------------- | -------------
139+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
140+
**project_id** | [**String**](.md)| You can create a task on a specified projectId |
141+
**task_create_or_update** | [**TaskCreateOrUpdate**](TaskCreateOrUpdate.md)| The task object you are creating |
142+
143+
### Return type
144+
145+
nil (empty response body)
146+
147+
### Authorization
148+
149+
[OAuth2](../README.md#OAuth2)
150+
151+
### HTTP request headers
152+
153+
- **Content-Type**: application/json
154+
- **Accept**: application/json
155+
156+
87157
## create_time_entry
88158

89159
> TimeEntry create_time_entry(xero_tenant_id, project_id, time_entry_create_or_update)
@@ -152,6 +222,73 @@ Name | Type | Description | Notes
152222
- **Accept**: application/json
153223

154224

225+
## delete_task
226+
227+
> delete_task(xero_tenant_id, project_id, task_id)
228+
229+
Allows you to delete a task
230+
231+
Allows you to delete a specific task
232+
233+
### Example
234+
235+
```ruby
236+
# load the gem
237+
require 'xero-ruby'
238+
239+
creds = {
240+
client_id: ENV['CLIENT_ID'],
241+
client_secret: ENV['CLIENT_SECRET'],
242+
redirect_uri: ENV['REDIRECT_URI'],
243+
scopes: ENV['SCOPES']
244+
}
245+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
246+
247+
token_set = fetch_valid_token_set(user) # example
248+
249+
xero_client.refresh_token_set(token_set)
250+
251+
# You need to namespace your api method call to one of the following api sets
252+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api]
253+
254+
api_instance = xero_client.<api_set>
255+
256+
257+
258+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
259+
project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint
260+
task_id = 'task_id_example' # String | You can specify an individual task by appending the id to the endpoint
261+
begin
262+
#Allows you to delete a task
263+
api_instance.delete_task(xero_tenant_id, project_id, task_id)
264+
rescue XeroRuby::Projects::ApiError => e
265+
puts "Exception when calling ProjectApi->delete_task: #{e}"
266+
end
267+
```
268+
269+
### Parameters
270+
271+
272+
Name | Type | Description | Notes
273+
------------- | ------------- | ------------- | -------------
274+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
275+
**project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint |
276+
**task_id** | [**String**](.md)| You can specify an individual task by appending the id to the endpoint |
277+
278+
### Return type
279+
280+
nil (empty response body)
281+
282+
### Authorization
283+
284+
[OAuth2](../README.md#OAuth2)
285+
286+
### HTTP request headers
287+
288+
- **Content-Type**: Not defined
289+
- **Accept**: application/json
290+
291+
155292
## delete_time_entry
156293

157294
> delete_time_entry(xero_tenant_id, project_id, time_entry_id)
@@ -216,7 +353,7 @@ nil (empty response body)
216353
### HTTP request headers
217354

218355
- **Content-Type**: Not defined
219-
- **Accept**: Not defined
356+
- **Accept**: application/json
220357

221358

222359
## get_project
@@ -886,6 +1023,75 @@ nil (empty response body)
8861023
- **Accept**: application/json
8871024

8881025

1026+
## update_task
1027+
1028+
> update_task(xero_tenant_id, project_id, task_id, task_create_or_update)
1029+
1030+
Allows you to update a task
1031+
1032+
Allows you to update a specific task
1033+
1034+
### Example
1035+
1036+
```ruby
1037+
# load the gem
1038+
require 'xero-ruby'
1039+
1040+
creds = {
1041+
client_id: ENV['CLIENT_ID'],
1042+
client_secret: ENV['CLIENT_SECRET'],
1043+
redirect_uri: ENV['REDIRECT_URI'],
1044+
scopes: ENV['SCOPES']
1045+
}
1046+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
1047+
1048+
token_set = fetch_valid_token_set(user) # example
1049+
1050+
xero_client.refresh_token_set(token_set)
1051+
1052+
# You need to namespace your api method call to one of the following api sets
1053+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api]
1054+
1055+
api_instance = xero_client.<api_set>
1056+
1057+
1058+
1059+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1060+
project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint
1061+
task_id = 'task_id_example' # String | You can specify an individual task by appending the id to the endpoint
1062+
task_create_or_update = XeroRuby::Projects::TaskCreateOrUpdate.new # TaskCreateOrUpdate | The task object you are updating
1063+
begin
1064+
#Allows you to update a task
1065+
api_instance.update_task(xero_tenant_id, project_id, task_id, task_create_or_update)
1066+
rescue XeroRuby::Projects::ApiError => e
1067+
puts "Exception when calling ProjectApi->update_task: #{e}"
1068+
end
1069+
```
1070+
1071+
### Parameters
1072+
1073+
1074+
Name | Type | Description | Notes
1075+
------------- | ------------- | ------------- | -------------
1076+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
1077+
**project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint |
1078+
**task_id** | [**String**](.md)| You can specify an individual task by appending the id to the endpoint |
1079+
**task_create_or_update** | [**TaskCreateOrUpdate**](TaskCreateOrUpdate.md)| The task object you are updating |
1080+
1081+
### Return type
1082+
1083+
nil (empty response body)
1084+
1085+
### Authorization
1086+
1087+
[OAuth2](../README.md#OAuth2)
1088+
1089+
### HTTP request headers
1090+
1091+
- **Content-Type**: application/json
1092+
- **Accept**: application/json
1093+
1094+
8891095
## update_time_entry
8901096

8911097
> update_time_entry(xero_tenant_id, project_id, time_entry_id, time_entry_create_or_update)
@@ -952,5 +1158,5 @@ nil (empty response body)
9521158
### HTTP request headers
9531159

9541160
- **Content-Type**: application/json
955-
- **Accept**: Not defined
1161+
- **Accept**: application/json
9561162

0 commit comments

Comments
 (0)