400 Bad Request

Hi, I am trying to use deleteUserStationAssociatedstation in UsersApi, but I got 400 bad request

const platformClient = require('platformClient');
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = accessToken;
var usersApi = new platformClient.UsersApi();
usersApi.deleteUserStationAssociatedstation(userId)
.then(function() {
console.log('deleteUserStationAssociatedstation returned successfully.');
})
.catch(function(e) {
console.log('There was a failure calling deleteUserStationAssociatedstation');
console.error(e);
});
http info:
Key Value
Request DELETE /api/v2/users/b5f1e338-78ff-4d31-9afd-afa0e8711030/station/associatedstation HTTP/1.1
Content-Type application/json
Accept application/json
Accept-Language en-US
Accept-Encoding gzip, deflate
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
Host api.mypurecloud.jp
Content-Length 9
Connection Keep-Alive
Cache-Control no-cache

error info:
There was a failure calling deleteUserStationAssociatedstation
[object Object]
{
[functions]: ,
proto: { },
body: null,
error: { },
headers: {
[functions]: ,
"": "",
proto: { },
connection: "keep-alive",
content-length: "0",
content-type: null,
date: "Thu, 24 May 2018 01:55:58 GMT",
via: "1.1 77747c3cd7d4b3a420bec92f40a1a3d9.cloudfront.net (CloudFront)",
x-amz-cf-id: "SQDiyjzxXE1UlliuoitJsIE60qTghQVIzzXO3RVkh_rMl_hF4iemvQ==",
x-cache: "Error from cloudfront"
},
status: 400,
statusText: "Bad Request",
text: ""
}

Can you provide the correlation Id from the response please?

That's a user ID. I need the correlation ID please.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.