REST api to Execute Import Action Error

I have a java application where I'm trying to execute an import action using the REST API and am getting the returned status of 415 (unsupported media type) from the post.  I'm following the syntax defined in the online help: http://docs.anaplan.apiary.io/#reference/import/post-acts-as-the-execute-command-to-start-the-operation-and-it-also-receives-the-task-id-value-as-a-json-object-get-receives-a-list-of-the-tasks-as-a-json-array/execute-the-import-task : Client client = ClientBuilder.newClient(); Entity payload = Entity.text(""); Response response = client.target("https://api.anaplan.com/1/3/workspaces/{workspaceID}/models/{modelID}/imports/{importId}/tasks/")   .request(MediaType.TEXT_PLAIN_TYPE)   .header("Authorization", "Basic encoded_username:password")   .header("Accept", "application/json")   .post(payload); and replacing {workspaceID}, {modelID}, and {importId} with the values from the GET API calls.  Tried other media types but still getting the same error.  Any help is appreciated.

Answers