Change the ownership of objects.

22Aug2011

Change the ownership and/or group of assets, mediafiles and collections.

Request URL

/change_ownership [POST]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
mediamosa_version (MEDIAMOSA_VERSION)Provide the version to get the REST call returned in the format of the specified MediaMosa version. Keep empty or skip to retrieve in current (latest) version. Provide '2' to retrieve the REST call in 2.x format. Or be more specific by providing up to 3 digits; '2.3.0'. This setting will override any setting used by client application or the default setting in MediaMosa.Optional-
new_app_id (APP_ID)The new app to replace with.Optional-
new_group_id (ALPHA_NUM)The new group ID to replace with.Optional-
new_owner_id (ALPHA_NUM)The new owner to replace with.Optional-
old_app_id (APP_ID)The current app to replace.Optional-
old_group_id (ALPHA_NUM)The current group ID to replace.Optional-
old_owner_id (ALPHA_NUM)The current owner to replace.Optional-

Example Request

change_ownership

old_owner_id = "testuser"
new_owner_id = "testuser2"

Example Response

<items>
  <item id="1">
    <mediafile>1</mediafile>
  </item>
  <item id="2">
    <asset>1</asset>
  </item>
  <item id="3">
    <collection>3</collection>
  </item>
</items>