Permission type 'loggedin' must not be included with other permissions - Error

Hey :wave:,
I could need help with an automation part, that creates a filter, that must be shared with the project (members) as viewers and shared with the project role administrators as editors.

The step for creating the filter is successful using:
webhook:

/rest/api/2/filter/{{FilterId}}/permission

body:

{
“rights”: 3,
“projectId”: {{ProjectId}},
“projectRoleId”: 10018,
“type”: “projectRole”
}

The step for sharing edit permissions fails:
webhook:

/rest/api/2/filter/{{FilterId}}/permission

body:

{
“rights”: 1,
“projectId”: {{ProjectId}},
“type”: “project”
}

error log:

Send web request

Error publishing web request. Response HTTP status:
400
Error response HTTP body:
{“errorMessages”:,“errors”:{“shares”:“Permission type ‘loggedin’ must not be included with other permissions.”}}

Do you have any hints, my assumption is, that the filter creation could be made in a different way, in order to have it easier with the permisssions for editing and viewing.

add. context:
The mentioned rule steps are part of quite a large automation, that creates a software project based on user that are given in user picker fields.
The ones are set as project members, the other as project admins. The target of the automation is to deliver a basic setup of a JSW project with a default filter and a default kanban board. The filter and the board must be viewable by anyone in the project and must be editable by the project admins.

I am happy to give more information, if needed.

Thanks for any idea or advice :smiley:
Have a great friday!

Alex