All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| watchWatch | POST /v1/tenants/{tenant_id}/watch | watch changes |
StreamResultOfWatchResponse watchWatch(tenantId, body)
watch changes
import PermifyClient from 'permify-javascript';
let apiInstance = new PermifyClient.WatchApi();
let tenantId = "tenantId_example"; // String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.
let body = new PermifyClient.WatchBody(); // WatchBody |
apiInstance.watchWatch(tenantId, body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| tenantId | String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes. | |
| body | WatchBody |
No authorization required
- Content-Type: application/json
- Accept: application/json