Using API version 2.5.1 and am getting a 404 attem...
# gooddata-cn
p
Using API version 2.5.1 and am getting a 404 attempting to use
<https://www.gooddata.com/api/v1/entities/workspaces/{workspaceId}/visualizationObjects/{objectId}>
• I can run the GET command for existing visualization objects, but I cannot create a new visualization object using the api. • Has anyone run into this before?
Copy code
{
  "detail": "The requested endpoint does not exist or you do not have permission to access it.",
  "status": 404,
  "title": "Not Found",
  "traceId": "8197601e359ab1cb"
}
It seems the issue is that there is no way to create a brand new visualization object via the API? (specifically without having to post the full list of all viz objects).
i
Hi Patrick, It is possible, this Entity API endpoint is only available for the Cloud version. Please let me double-check this internally. Are you running into any kind of issues while executing related Declarative APIs, please? Or do you simply prefer the Entity ones?
p
I was hoping to be able to add/manage a single object without pulling/posting the full array of viz objects.
r
If you need to create viz object, you need to use POST method on
/api/v1/entities/workspaces/{workspaceId}/visualizationObjects
endpoint (note the missing
{objectId}
in the URI. https://www.gooddata.com/docs/cloud-native/2.5/api-and-sdk/api/api_reference_all/#operation/createEntity@VisualizationObjects
p
Excellent thank you. I the pluralization is what was throwing me off.
1