POST /rest/api/2/filter/{id}/permission
Add a share permissions to a filter. If you add a global share permission (one for all logged-in users or the public) it will overwrite all share permissions for the filter.
Be aware that this operation uses different objects for updating share permissions compared to Update filter.
Permissions required: Share dashboards and filters global permission and the user must own the filter.
Servers
- https://your-domain.atlassian.net
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | Yes |
The ID of the filter. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
projectId |
String | No |
The ID of the project to share the filter with. Set |
groupId |
String | No |
The ID of the group, which uniquely identifies the group across all Atlassian products.For example, 952d12c3-5b5b-4d04-bb32-44d383afc4b2. Cannot be provided with |
accountId |
String | No |
The user account ID that the filter is shared with. For a request, specify the |
groupname |
String | No |
The name of the group to share the filter with. Set |
type |
String | Yes |
The type of the share permission.Specify the type as follows:
Possible values:
|
projectRoleId |
String | No |
The ID of the project role to share the filter with. Set |
rights |
Integer | No |
The rights for the share permission. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.