Jeremy_Gillip | 2020-09-24 19:58:13 UTC | #1
I am currently working on a project to use the API Patch: /api/v2/voicemail/userpolicies/{userId} via GenesysCloud Data Action and I can run the test with the Json schema in DevTools API explorer but when I build the action and test I get this error back.
{ "message": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "code": "internal.server.error", "status": 500, "messageParams": {}, "contextId": "5a5c6f33-a2ba-4033-9ef6-64faac3f2517", "details": [ { "errorCode": "ACTION.REMOTEENDPOINT" } ], "errors": [ { "message": "REST call for action execute failed. Message:Request to backend service failed. Response from web service: {\"message\":\"HTTP 415 Unsupported Media Type\",\"code\":\"unsupported media type\",\"status\":415,\"contextId\":\"598de025-da33-4c33-bd4e-1315b33fc688\",\"details\":[],\"errors\":[]} [5a5c6f33-a2ba-4033-9ef6-64faac3f2517]", "code": "INTERNALSERVER_ERROR", "status": 415, "messageParams": {}, "details": [], "errors": [] } ] }
Is that even permitted through the GenesysCloud DataAction?
Jeremy_Gillip | 2020-09-24 20:00:47 UTC | #2
Nevermind, solved the issue had to change the Header "Content-Type": "application/json"
system | 2020-10-25 20:00:52 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8906