Robot framework- error body on graphql post

Hello im gettin error bad request, i know that my issue is the body im sending, but i look everywhere and i couldnt solve it

this is my code

Create Session mysession ${all_integrations_api} ${header}= Create Dictionary Content-Type=application/json ${payload}= Get Binary File ../../TestSuite/ENV/graphql/all_integrations.json # ${payload}= Create Dictionary query= query getAllIntegrations { query msiDiscovery} Log To Console ${header} Log To Console ${payload} ${response}= RequestsLibrary.POST On Session alias=mysession url=/graphql data=${payload} headers=${header} Log To Console ${response} RETURN ${response}

this is my json file

`{
"query": "query getAllIntegrations {query msiDiscovery}"

}`

any ideas?

 Create Session      mysession   ${all_integrations_api}  
${header}=      Create Dictionary    Content-Type=application/json
${payload}=     Get Binary File     ../../TestSuite/ENV/graphql/all_integrations.json
Log To Console      ${header}
Log To Console      ${payload}
${response}=    RequestsLibrary.POST On Session    alias=mysession   url=/graphql   data=${payload}   headers=${header}
Log To Console     ${response}
RETURN      ${response}

Edited

Hi Fabri,

From the manual for POST, I think you want json= not data= ?

Dave.