setting headers and body for the operation in the endpoint