Have you verified that there is a client called api.client in your SAS Viya environment? Also, is the URL you posted below the call you sent or did you make it generic for posting. sasserver.demo.sas.com is a generic URL I made up for documentation purposes. You would need to update the URL and client id with something specific to your implementation.