adobe-firefly-sdk
    Preparing search index...

    Function patchProjectRoles

    • Patch Roles for a Project

      This endpoint is used to manage the direct roles of a specific project, identified by its assetId. It allows clients to perform multiple types of role changes in a single request, including:

      • Addition of new users or groups to the access control list.
      • Update of roles for existing users or groups.
      • Removal of users or groups from the access control list.

      NOTE:

      • The request body supports three arrays: additions, updates, and deletions.
      • Multiple principals can be included across each action type.
      • Each principal must be mentioned only once across the entire request body.
      • Role changes are deeply inherited — they apply to the project and all of its descendant assets.
      Action Behavior
      additions Must include users/groups that do not already exist in the current ACL.
      updates Must target users/groups that already exist in the current ACL.
      deletions Must target users/groups that already exist in the current ACL.

      Type Parameters

      • ThrowOnError extends boolean = false

      Returns RequestResult<
          PatchProjectRolesResponses,
          PatchProjectRolesErrors,
          ThrowOnError,
          "fields",
      >