The error message indicates that the workspace ID is invalid, though a 403 (lacking permissions error code) is a little odd here. Verify the workspace ID you're using is correct and free of typos. If it is, please open a case with PureCloud Care to investigate since using a valid ID should not result in an error stating the ID is invalid.
same error:
"{"status":403,"code":"fax.forbidden","message":"Invalid workspaceId","messageWithParams":"Invalid workspaceId","messageParams":{},"contextId":"89490741-83e8-4d0a-ac70-a4d8aa9f0062","details":[],"errors":[]}"
here is my body:
let body = {
"name": name,
"addresses": [address],
"contentType": type,
"workspace": {
"id": "f4226f07-ef0c-45bc-be84-f902707900fd",//workpace.id,
"name": "Faxing",//workpace.name,
},
}; // Object | Fax
I am able to send fax documents to my personal workspace.
For a work around I am waiting until the document is loaded to my workspace and then moving it to the other workgroup.