Queue/GrabBatch

This method sets the batch status to running for the pending task that is associated with a Datacap application name and queue ID.

URI

http://{IP address}:{Port}/ServicewTM.svc/Queue/GrabBatch/{application}/{queueId}

The URI for this method includes the following path elements.
Table 1. Path elements for the PUT GrabBatch method
Name Type Required? Description
{application} String Yes The name of the application for which the batch status is set to running.
{queueId} String Yes The unique identifier that is assigned to the batch.

Request content

The request for this method contains no content.

Response content

The response sets the batch status to running for the pending task.

This method returns one of the following response codes.

Table 2. Response codes for the PUT GrabBatch method
Response Code Description
200 OK The request was successful.
400 Bad Request The request was not understood by the service because of malformed syntax.
401 Unauthorized The request requires user authentication. If the request included valid credentials, the 401 response indicates that authorization was refused for those credentials.
405 Method Not Allowed The method that is specified in the Request-Line is not allowed for the resource that is identified by the Request-URI. The response must include an Allow header that contains a list of valid methods for the requested resource.
500 Internal Error An unexpected condition was encountered that prevented the service from fulfilling the request.