go
rr, err := client.Data.ReadAttributes(context.Background(), &v1.Data.AttributeReadRequest{
TenantId: "t1",
Metadata: &v1.Data.AttributeReadRequestMetadata{
SnapToken: "",
},
Filter: &v1.AttributeFilter{
Entity: &v1.EntityFilter{
Type: "organization",
Ids: []string{"1"},
},
Attributes: []string{"private"},
},
})client.data.readAttributes({
tenantId: "t1",
metadata: {
snap_token: "",
},
filter: {
entity: {
type: "organization",
ids: [
"1"
]
},
attributes: [
"private"
],
}
}).then((response) => {
// handle response
})curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/attributes/read' \
--header 'Content-Type: application/json' \
--data-raw '{
metadata: {
snap_token: "",
},
filter: {
entity: {
type: "organization",
ids: [
"1"
]
},
attributes: [
"private"
],
}
}'{
"attributes": [
{
"entity": {
"type": "<string>",
"id": "<string>"
},
"attribute": "<string>",
"value": {
"@type": "<string>"
}
}
],
"continuous_token": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Data Service
Read Attributes
POST
/
v1
/
tenants
/
{tenant_id}
/
data
/
attributes
/
read
go
rr, err := client.Data.ReadAttributes(context.Background(), &v1.Data.AttributeReadRequest{
TenantId: "t1",
Metadata: &v1.Data.AttributeReadRequestMetadata{
SnapToken: "",
},
Filter: &v1.AttributeFilter{
Entity: &v1.EntityFilter{
Type: "organization",
Ids: []string{"1"},
},
Attributes: []string{"private"},
},
})client.data.readAttributes({
tenantId: "t1",
metadata: {
snap_token: "",
},
filter: {
entity: {
type: "organization",
ids: [
"1"
]
},
attributes: [
"private"
],
}
}).then((response) => {
// handle response
})curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/attributes/read' \
--header 'Content-Type: application/json' \
--data-raw '{
metadata: {
snap_token: "",
},
filter: {
entity: {
type: "organization",
ids: [
"1"
]
},
attributes: [
"private"
],
}
}'{
"attributes": [
{
"entity": {
"type": "<string>",
"id": "<string>"
},
"attribute": "<string>",
"value": {
"@type": "<string>"
}
}
],
"continuous_token": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Read API allows for directly querying the stored graph data to display and filter stored attributes.
Path Parameters
Body
application/json
AttributeReadRequest defines the structure of a request for reading attributes. It includes the tenant_id, metadata, attribute filter, page size for pagination, and a continuous token for multi-page results.
Response
A successful response.
AttributeReadResponse defines the structure of the response to an attribute read request. It includes the attributes retrieved and a continuous token for handling result pagination.