Last Updated on

This API is used to delete the batch instance for the specific batch instance identifier. This API will delete that batch instance being accessed by the authenticated user.

Request Method: GET

Web Service URL: http://{serverName}:{port}/dcma/rest/deleteBatchInstance/{identifier}

Input Parameter Values Descriptions
batchInstanceIdentifier This value should be a valid batch instance identifier.Example BI10 This parameter is used to specify the batch instance to be deleted.

 

Sample client code using apache commons http client:-

private static void deleteBatchInstance() {
		HttpClient client = new HttpClient();
		String url = "http://localhost:8080/dcma/rest/deleteBatchInstance/BI2";
		GetMethod getMethod = new GetMethod(url);
		int statusCode;
		try {
			statusCode = client.executeMethod(getMethod);
			if (statusCode == 200) {
				System.out.println("Web service executed successfully.");
				String responseBody = getMethod.getResponseBodyAsString();
				System.out.println(statusCode + " *** " + responseBody);
			} else if (statusCode == 403) {
				System.out.println("Invalid username/password.");
			} else {
				System.out.println(getMethod.getResponseBodyAsString());
			}
		} catch (HttpException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (getMethod != null) {
				getMethod.releaseConnection();
			}
		}
	}

Was this article helpful to you?

Engineering