SkillHub
Referenceregistries

Set a registry grant

PUT
/registries/{ownerHandle}/{slug}/grants

Path Parameters

ownerHandle*string
Lengthlength <= 64
slug*string
Lengthlength <= 64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/registries/string/string/grants" \  -H "Content-Type: application/json" \  -d '{    "granteeType": "user",    "granteeHandle": "string",    "role": "reader"  }'
{  "registryId": "771eb7a3-9cd7-46d3-86da-9e7e93b08f17",  "grantee": {    "type": "user",    "handle": "string"  },  "role": "reader",  "grantedBy": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "handle": "string",    "displayName": "string",    "avatarUrl": "string"  },  "createdAt": "2019-08-24T14:15:22Z"}