Skip to content
Discussion options

You must be logged in to vote

This code did it for me:
def PUT_api_reports_reportid_instances_instanceid_prompts_answers(auth_token, project_id, report_id, report_instance_id, search_customer_id, JSON_data, connection):
print(seperator_api)

api_request = f'/api/reports/{report_id}/instances/{report_instance_id}/prompts/answers'

key_value = JSON_data[0]['key']
id_value = JSON_data[0]['id']
name_value = JSON_data[0]['name']
type_value = JSON_data[0]['type']
answers_value = search_customer

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

print('PUT:', api_request)

request_data = {
    'prompts': [
        {
    …

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