PUT BatchTask/{Id}
Some tooltip text!
• 6 minutes to read
• 6 minutes to read
PUT /api/v1/BatchTask/{Id}
Update information about a BatchTask.
Only the following properties can be updated: State, Description, Response and Request.
Path Part | Type | Description |
---|---|---|
Id | string | Required |
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: batchTaskInfo
The updated information to save.
Property Name | Type | Description |
---|---|---|
Id | Integer | Id of the task. |
Name | String | Name of the task. |
AssociateId | Integer | Task owner. If it is a System task, AssociateId = 0. |
DetailsTable | Integer | Id of table with more information about the task. |
DetailsRecord | Integer | Record Id of a row in the DetailsTable containing more info about the task. |
IsSystemTask | Boolean | If IsSystemTask is true, the task is not initiated by an associate. |
IsInternalTask | Boolean | If IsInternalTask is true, this task will not add a trace to the database. |
ParameterObject | Object | ParameterObject will be serialized to a binary blob and saved in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord. |
LastStarted | String | When was the task last started. |
Created | String | Task creation time. |
StartCount | Integer | Maps to the startcount field in the batchtask table. |
DatabaseSerialNumber | String | Serial number of the database the task is to run on. |
Context | String | Context for the executing task. |
Result | String | Maps to the result field in the batchtask table. |
State | String | BatchTaskState of the task. |
Description | String | Description of the task. |
Response | String | Maps to the response field in the batchtask table. |
Request | String | Maps to the request field in the batchtask table. |
ProgressDescription | String | Descriptive text for the current stage |
ProgressPercent | Integer | Task progress, in percent of estimated total |
FileName | String | The filename related to the batchtask. |
CancellationBehaviour | String | Indicate if the task can be stopped. |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: BatchTaskInfo
Property Name | Type | Description |
---|---|---|
Id | int32 | Id of the task. |
Name | string | Name of the task. |
AssociateId | int32 | Task owner. If it is a System task, AssociateId = 0. |
DetailsTable | int32 | Id of table with more information about the task. |
DetailsRecord | int32 | Record Id of a row in the DetailsTable containing more info about the task. |
IsSystemTask | bool | If IsSystemTask is true, the task is not initiated by an associate. |
IsInternalTask | bool | If IsInternalTask is true, this task will not add a trace to the database. |
ParameterObject | object | ParameterObject will be serialized to a binary blob and saved in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord. |
LastStarted | date-time | When was the task last started. |
Created | date-time | Task creation time. |
StartCount | int32 | Maps to the startcount field in the batchtask table. |
DatabaseSerialNumber | string | Serial number of the database the task is to run on. |
Context | string | Context for the executing task. |
Result | string | Maps to the result field in the batchtask table. |
State | string | BatchTaskState of the task. |
Description | string | Description of the task. |
Response | string | Maps to the response field in the batchtask table. |
Request | string | Maps to the request field in the batchtask table. |
ProgressDescription | string | Descriptive text for the current stage |
ProgressPercent | int32 | Task progress, in percent of estimated total |
FileName | string | The filename related to the batchtask. |
CancellationBehaviour | string | Indicate if the task can be stopped. |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
PUT /api/v1/BatchTask/{Id}
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: fr,de,ru,zh
Content-Type: application/json; charset=utf-8
{
"Id": 819,
"Name": "Kilback Group",
"AssociateId": 627,
"DetailsTable": 421,
"DetailsRecord": 739,
"IsSystemTask": false,
"IsInternalTask": false,
"ParameterObject": {
"ParameterObject1": "ipsum",
"ParameterObject2": "officia"
},
"LastStarted": "2018-06-22T16:32:48.2902385+02:00",
"Created": "2007-07-11T16:32:48.2902385+02:00",
"StartCount": 904,
"DatabaseSerialNumber": "1305401",
"Context": "veritatis",
"Result": "fugit",
"State": "All",
"Description": "Extended 6th generation monitoring",
"Response": "et",
"Request": "neque",
"ProgressDescription": "Triple-buffered content-based analyzer",
"ProgressPercent": 640,
"FileName": "Prohaska, Tremblay and Waelchi",
"CancellationBehaviour": "CanCancel"
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"Id": 846,
"Name": "Larson LLC",
"AssociateId": 955,
"DetailsTable": 157,
"DetailsRecord": 420,
"IsSystemTask": false,
"IsInternalTask": false,
"ParameterObject": {
"ParameterObject1": "veniam",
"ParameterObject2": "fugiat"
},
"LastStarted": "2019-10-09T16:32:48.2902385+02:00",
"Created": "2008-11-03T16:32:48.2902385+01:00",
"StartCount": 418,
"DatabaseSerialNumber": "569342",
"Context": "maxime",
"Result": "deserunt",
"State": "All",
"Description": "Extended bi-directional intranet",
"Response": "fugit",
"Request": "sunt",
"ProgressDescription": "Customer-focused mission-critical protocol",
"ProgressPercent": 745,
"FileName": "Zemlak Group",
"CancellationBehaviour": "CanCancel",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 1000
}
}
}