I'm working with a hierarchy of workspaces and usi...
# gooddata-cn
s
I'm working with a hierarchy of workspaces and using the API to create dashboards, is there a way (perhaps an attribute in the analyticalDashboards data model) to tell if a dashboard was created for a parent workspace and not for the current child workspace?
j
Hi @Sheldon Nathan. I’ll take a look at this and let you know as soon as I can.
When retrieving dashboards through
/api​/v1​/entities​/workspaces​/{workspaceId}​/analyticalDashboards
, there is an
"origin"
object inside the
"meta"
object that holds this information. Created in parent:
Copy code
"meta": {
    "origin": {
        "originType": "PARENT",
        "originId": "9a2da7e48f864162b6749fd7e7226063"
    }
}
Created in child:
Copy code
"meta": {
    "origin": {
        "originType": "NATIVE",
        "originId": "child_workspace"
    }
}
s
Is this available on Gooddata CN or cloud?
j
I tested it with Cloud. Let me check the full availability.
I don’t see a reference to it in CN’s API docs. Do you want me to check with their team to see why that is and when it could be expected to be included?
s
Yes please
j
On it.
s
btw the v2.2 for CN does not have the 'meta' attribute either
j
Yep, that’s true. I’ll get back to you asap once I’ve clarified.
It’ll be included as part of the CN 2.3 release, which is currently scheduled for March 9th.
s
okay thank you