Put ACL

URL

https://api.digitalvault.cloud/{{resourceType}}/{{resourceId}}/permissions/

Method

PUT

Required IMS Scopes

  • apollo_admin

URL Path Parameters

Name Description Type
resourceType
requried
Type of Resource string
resourceId
requried
ID of Resource string

Request Body Parameters

Name Description Type
objectId
required
Id of the object object
accesscontrolitems
required
List of the Access Control Items acl list

Request Header Parameters

Type Value Description
Authentication
required
Bearer {access_token} Authorization
Content-Type
required
application/json Specifies the type of Application

Example

Request

curl -X PUT 
  'https://api.digitalvault.cloud/{{resourceType}}/{{resourceId}}/permissions/' 
  -H 'authorization: Bearer {access_token}' 
  -H 'Content-Type: application/json' 
  -D '{
        "objectId": "{{resourceId}}",
        "accesscontrolitems": {
            "sub:user:bob": "owner",
            "org:jci.com": "readwrite"
        }
     }'

Response

{
    "objectId": "{{resourceId}}",
    "accesscontrolitems": {
        "sub:user:bob": "owner",
        "org:jci.com": "readwrite"
    }
}