@esri/arcgis-rest-portal
Version:
ArcGIS Online and Enterprise content and user helpers for @esri/arcgis-rest-request
30 lines (29 loc) • 908 B
TypeScript
import { IAuthenticatedRequestOptions } from "@esri/arcgis-rest-request";
interface IReassignItemOptions extends IAuthenticatedRequestOptions {
id: string;
currentOwner: string;
targetUsername: string;
targetFolderName?: string;
}
interface IReassignItemResponse {
success: boolean;
itemId: string;
}
/**
* Reassign an item from one user to another. Caller must be an org admin or the request will fail. `currentOwner` and `targetUsername` must be in the same organization or the request will fail
*
* ```js
* import { reassignItem } from '@esri/arcgis-rest-portal';
*
* reassignItem({
* id: "abc123",
* currentOwner: "charles",
* targetUsername: "leslie",
* authentication
* })
* ```
*
* @param reassignOptions - Options for the request
*/
export declare function reassignItem(reassignOptions: IReassignItemOptions): Promise<IReassignItemResponse>;
export {};