Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Add share permissions to filter

Adds a share permissions to the given filter. Adding a global permission removes all previous permissions from the filter

POST/api/2/filter/{id}/permission
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

The filter id.

Request body
application/json
editboolean
groupnamestring
projectIdstring
projectRoleIdstring
typestring
userKeystring
viewboolean
Responses
201

Returns share permissions associated with the given filter

editboolean
groupGroupJsonBean
Show properties
namestring
selfstring<uri>
idinteger<int64>
projectProjectBean
Show properties
archivedboolean
avatarUrlsobject
descriptionstring
idstring
keystring
namestring
selfstring<uri>
roleProjectRoleBean
Show properties
actorsRoleActorBean[]
Show properties
Array of RoleActorBean
namestring
descriptionstring
idinteger<int64>
namestring
selfstring<uri>
typestring
userUserBean
Show properties
activeboolean
applicationRolesSimpleListWrapperApplicationRoleBean
Show properties
callbackListWrapperCallbackApplicationRoleBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackApplicationRoleBean
sizeinteger<int32>
avatarUrlsobject
deletedboolean
displayNamestring
emailAddressstring
expandstring
groupsSimpleListWrapperGroupJsonBean
Show properties
callbackListWrapperCallbackGroupJsonBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackGroupJsonBean
sizeinteger<int32>
keystring
lastLoginTimestring
localestring
namestring
selfstring<uri>
timeZonestring
viewboolean
400

Returned given permission input bean is invalid or when user does not have the permission to share filters or when the user cannot edit the given filter.

401

Returned if user is not logged in.

404

Returned when filter with given id does not exist or when the user does not have permissions to view the filter.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/filter/string/permission' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "edit": true,
  "groupname": "string",
  "projectId": "string",
  "projectRoleId": "string",
  "type": "string",
  "userKey": "string",
  "view": true
}'
Response
{
  "edit": false,
  "group": {
    "name": "jira-administrators",
    "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
  },
  "id": 10000,
  "project": {
    "archived": false,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "description": "Example",
    "id": "10000",
    "key": "EX",
    "name": "Example",
    "self": "http://www.example.com/jira/rest/api/2/project/EX"
  },
  "role": {
    "actors": [
      {
        "name": "jira-developers"
      }
    ],
    "description": "A project role that represents developers in a project",
    "id": 10360,
    "name": "Developers",
    "self": "http://www.example.com/jira/rest/api/2/project/MKY/role/10360"
  },
  "type": "global",
  "user": {
    "active": true,
    "applicationRoles": [
      "jira-core",
      "jira-admin",
      "important"
    ],
    "avatarUrls": {
      "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
      "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
      "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
      "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
    },
    "deleted": false,
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "expand": "string",
    "groups": {
      "callback": {},
      "maxResults": 0,
      "pagingCallback": {},
      "size": 0
    },
    "key": "JIRAUSER10100",
    "lastLoginTime": "2023-08-30T16:37:01+1000",
    "locale": "en_AU",
    "name": "fred",
    "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "view": true
}

Was this page helpful?