Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined

  • 0
  • 1
  • Question
  • Updated 3 weeks ago
  • Answered
Hi there,
I am getting the following error on stating the API version as 1.10.0, it does not fail on 1.8.0. Even if logged in separately onto 1.10.0, the container create scripts fails.

{"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":{"type":{"details":"Object type \"JSDataContainerCreateParameters\" is an abstract type. Expected a concrete type derived from \"TypedObject\".","action":null,"id":"exception.validation.object.type.abstract","commandOutput":null,"diagnoses":null}},"action":"Check your input parameters and try again.","id":"exception.validation.bad.input","commandOutput":null,"diagnoses":null}}confirming job completed successfully...

Photo of EnterpriseMan


  • 630 Points 500 badge 2x thumb

Posted 1 month ago

  • 0
  • 1
Photo of Eyal Kaspi

Eyal Kaspi, Employee

  • 1,280 Points 1k badge 2x thumb
Official Response
The type JSDataContainerCreateParameters has been renamed JSDataContainerCreateWithRefreshParameters  in versions 1.8.2+ of the API. Because the API is backwards compatible, you can use the old name (JSDataContainerCreateParameters ) if the API version in use is older than 1.8.2, but if you want to upgrade a to a more recent version (such as 1.10.0) you must use the new name JSDataContainerCreateWithRefreshParameters .