Set rights on a mediafile.

17May2010

Set rights on a mediafile.

Request URL

/mediafile/$mediafile_id/acl [POST]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
mediafile_id (ALPHA_NUM)The mediafile ID of which to change the rights.Required-
user_id (ALPHA_NUM)Must match the owner fo the mediafile.Required-
aut_app[] (INT)Application(s) that gain access to the mediafile.Optional-
aut_domain[] (STRING)Domain(s) that gain access to the mediafile.Optional-
aut_group[] (ALPHA_NUM)Group(s) that gain access to the mediafile.Optional-
aut_group_id[] (ALPHA_NUM)Alias of aut_group.Optional-
aut_realm[] (STRING)Realm(s) that gain access to the mediafile.Optional-
aut_user[] (ALPHA_NUM)User(s) that gain access to the mediafile.Optional-
aut_user_id[] (ALPHA_NUM)Alias of aut_user.Optional-
replace (BOOL)'TRUE' of 'FALSE' if the current right has to be replaced. Standard is TRUE. Define if 'FALSE' if you want to keep the old rights.OptionalTRUE-

Example Request

mediafile/OW35AQyoPNUSi4iINunmS2nr/acl

Example Response

<items>
  <item id="1">
    <aut_app>
      <value>1</value>
      <result>success</result>
      <result_id>601</result_id>
      <result_description></result_description>
    </aut_app>
  </item>
</items>