zhoujing | 2018-05-24 06:53:45 UTC | #1
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: "SQDiyjzxXE1UlliuoitJsIE60qTghQVIzzXO3RVkhrMlhF4iemvQ==", x-cache: "Error from cloudfront" }, status: 400, statusText: "Bad Request", text: "" }
tim.smith | 2018-05-24 13:07:09 UTC | #2
Can you provide the correlation Id from the response please?
tim.smith | 2018-05-25 18:55:21 UTC | #4
That's a user ID. I need the correlation ID please.
system | 2018-06-25 18:55:23 UTC | #5
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: 2905