| POST | /v4/short-links/migrate |
|---|
"use strict";
export class MigrateShortLinksResponse {
/** @param {{linksMigrated?:number,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
linksMigrated;
/** @type {ResponseStatus} */
responseStatus;
}
export class MigrateShortLinksRequest {
/** @param {{sourceUsername?:string,targetUsername?:string,sourceGroupId?:number,targetGroupId?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
sourceUsername;
/** @type {string} */
targetUsername;
/** @type {number} */
sourceGroupId;
/** @type {number} */
targetGroupId;
}
JavaScript MigrateShortLinksRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v4/short-links/migrate HTTP/1.1
Host: shortlinks-api.qa.platform.georiot.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"sourceUsername":"String","targetUsername":"String","sourceGroupId":0,"targetGroupId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"linksMigrated":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}