Replace Permission Resource Based on Permission Name and Resource Type

JFrog REST APIs

ft:sourceType
Paligo

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

Security: Requires an admin user.

Since: Artifactory 7.72.0

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

Sample Request

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