createItemFromUrlOrFile
Creates an item in online from either url or file. Once created we wait for the item to be ready (or throw an error if creation failed) If access is not private then we make a call to update that.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
createItemFromUrlOrFileOptions Required | ICreateItemFromUrlOrFileOptions |
Input params (item, groups?, requestoptions) |
Returns
{ title: string, createdItem: ICreateItemResponse, itemAccessResponse: ISharingResponse, itemSharingResponse: ISharingResponse[] } Responses from createdItem, changing item access, and item Sharing to group
Promise<{
- createdItem:
- ICreateItemResponse
- itemAccessResponse:
- ISharingResponse
- itemSharingResponse:
- ISharingResponse[]
- title:
- string
Function defined in common/src/items/create-item-from-url-or-file.ts:33