upsertResource
Given an item, and owner, Search for if the resource exists and if does, update it, otherwise add it. Returns a url for the item.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
id Required | string | ||
owner Required | string | ||
resource Required | any | ||
name Required | string | ||
ro Required | IUserRequestOptions | ||
prefix Optional | string | "" |
Returns
{Promise
Promise<string>
Function defined in common/src/resources/upsertResource.ts:20