Update Permission Resource Based on Permission Name and Resource Type

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Update a permission resource in a permission by permission name and resource type.

Security: Requires an admin user.

Since: Artifactory 7.72.0

Usage: PATCH <JFrog Base URL>/access/api/v2/permissions/{permission name}/{resource type}

Sample Request

curl --location --request PATCH 'http://example.jfrog.io/access/api/v2/permissions/Perm/build' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer cmVmNE' \
--data '{
  "actions" : {
    "users" : { },
    "groups" : { }
  },
  "targets" : {
    "artifactory-build-info" : {
      "include_patterns" : [ "**", "alpha" ],
      "exclude_patterns" : [ ]
    }
  }
}'