Performs the specified action on the specified Job resources.
Namespace: CarDeliveryNetwork.Api
Assembly: CarDeliveryNetwork.Api (in CarDeliveryNetwork.Api.dll) Version: 3.2.3008.0 (3.2.3008)
Syntax
Parameters
- ids
- Type: SystemString
Ids of the target Jobs. - action
- Type: CarDeliveryNetwork.Api.DataAction
Action to perform on the target Job.
Remarks
Headers
Header | Description |
Content-Type: application/json | Indicates that the request and response bodies are in JSON format |
Content-Type: application/xml | Indicates that the request and response bodies are in XML format |
Request
Verb | URI | Body |
POST | /jobs/ids/action?apikey=xxx-xxx-xxx | Action |
Response
Normal Response Codes: 200
Error Response Codes: computeFault (400, 500, …), badRequest (400), forbidden (403), itemNotFound (404)
This operation does not return a response body.
Examples
URL
https://go.cardeliverynetwork.com/en/openapi/jobs/15,16,18/action?apikey=299bde73-d4d0-4684-9e51
CANCEL Job Action JSON Request Body
{ "Name" : "cancel", "Note" : "Vehicle not available" }
CANCEL Job Action XML Request Body
<Action xmlns="http://schemas.datacontract.org/2004/07/CarDeliveryNetwork.Api.Data" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Name>cancel</Name> <Note>Vehicle not available</Note> </Action>
See Also