OpenApiPOST_Jobs__id__Action Method

Car Delivery Network API DocumentationCar Delivery Network
Performs the specified action on the specified Job resources.

Namespace:  CarDeliveryNetwork.Api
Assembly:  CarDeliveryNetwork.Api (in CarDeliveryNetwork.Api.dll) Version: 3.2.3015.0 (3.2.3015)
Syntax

public void POST_Jobs__id__Action(
	string ids,
	Action action
)

Parameters

ids
Type: SystemString
Ids of the target Jobs.
action
Type: CarDeliveryNetwork.Api.DataAction
Action to perform on the target Job.
Remarks

Headers

HeaderDescription
Content-Type: application/jsonIndicates that the request and response bodies are in JSON format
Content-Type: application/xmlIndicates that the request and response bodies are in XML format

Request

VerbURIBody
POST/jobs/ids/action?apikey=xxx-xxx-xxxAction

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

Reference