I have created one custom keyword for post request where i want to pass json data but when i try to pass that data in test file its giving me error until i pass it in single line.
I_Send_Post_Request:
[Arguments] ${endpoint} ${body}
${body}= create dictionary Content-Type=application/json
${header}= create dictionary Content-Type=application/json
${content}
${status_code}= Integer response status
${reason_}= String response reason
${response_body}= Object response body
Set Test Variable ${reason_} ${reason_}
Set Test Variable ${status_code} ${status_code}
Set Test Variable ${response_body} ${response_body}
Log To Console ${status_code}
Log To Console ${reason_}
Log To COnsole ${response_body}
[Return] ${status_code} ${response_body}
***test case***
put_info:
when I_send_put_request: api/users/2 {name: morpheus
job:zion resident}
-----------
in single line its working fine but giving 404 on my platform