Who can reach it, and why
GET
/api/v1/catalog/{ref}/access
const url = 'http://localhost:3000/api/v1/catalog/example/access';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/catalog/example/access \ --header 'Authorization: Bearer <token>'Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
An id, or an address
Query Parameters
Section titled “Query Parameters”who
string
One person, by id or email
Responses
Section titled “Responses”Holders
Media typeapplication/json
object
id
required
string format: uuid
name
required
string
private
required
boolean
holders
required
Array<object>
object
kind
required
string
who
required
string
role
required
string
scope
required
string | null
via
required
string
on
required
granted
required
The grants made on it, each changed with POST /api/v1/grants or taken back with DELETE /api/v1/grants/{grant}
Array<object>
object
grant
required
string format: uuid
kind
required
string
id
required
string
who
required
string
scope
required
string
Example
{ "on": { "type": "asset" }, "granted": [ { "kind": "person" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}