Skip to content

GET /api/dossiers/{dossierId}/instances/{dossierInstanceId}/elements #40

Discussion options

You must be logged in to vote

The rest API expects the element ID, and not the attribute ID.

I ended up obtaining the element ID for querying the cube that it is in:
def GET_api_cubes_cubeid_attributes_attributeid_elements(auth_token, project_id, cube_id, attribute_id, connection):

api_request = f'/api/cubes/{cube_id}/attributes/{attribute_id}/elements?offset=0&limit=-1'

request_headers={'accept' : 'application/json', 'X-MSTR-AuthToken': auth_token, 'X-MSTR-ProjectID': project_id, }

return connection.get(
    endpoint=api_request,
    headers=request_headers,
)   

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristiaanEmpowerBI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant