All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
schemasList | POST /v1/tenants/{tenant_id}/schemas/list | list schema |
schemasPartialWrite | PATCH /v1/tenants/{tenant_id}/schemas/partial-write | partially update your authorization model |
schemasRead | POST /v1/tenants/{tenant_id}/schemas/read | read schema |
schemasWrite | POST /v1/tenants/{tenant_id}/schemas/write | write schema |
SchemaListResponse schemasList(tenantId, body)
list schema
import PermifyApi from 'permify_api';
let apiInstance = new PermifyApi.SchemaApi();
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 PermifyApi.SchemaListBody(); // SchemaListBody |
apiInstance.schemasList(tenantId, body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
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 | SchemaListBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
SchemaPartialWriteResponse schemasPartialWrite(tenantId, body)
partially update your authorization model
import PermifyApi from 'permify_api';
let apiInstance = new PermifyApi.SchemaApi();
let tenantId = "tenantId_example"; // String | tenant_id is a string that identifies the tenant. It must match the pattern \"[a-zA-Z0-9-,]+\", be a maximum of 64 bytes, and must not be empty.
let body = new PermifyApi.PartialWriteBody(); // PartialWriteBody |
apiInstance.schemasPartialWrite(tenantId, body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
tenantId | String | tenant_id is a string that identifies the tenant. It must match the pattern "[a-zA-Z0-9-,]+", be a maximum of 64 bytes, and must not be empty. | |
body | PartialWriteBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
SchemaReadResponse schemasRead(tenantId, body)
read schema
import PermifyApi from 'permify_api';
let apiInstance = new PermifyApi.SchemaApi();
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 PermifyApi.SchemaReadBody(); // SchemaReadBody |
apiInstance.schemasRead(tenantId, body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
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 | SchemaReadBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
SchemaWriteResponse schemasWrite(tenantId, body)
write schema
import PermifyApi from 'permify_api';
let apiInstance = new PermifyApi.SchemaApi();
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 PermifyApi.SchemaWriteBody(); // SchemaWriteBody |
apiInstance.schemasWrite(tenantId, body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
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 | SchemaWriteBody |
No authorization required
- Content-Type: application/json
- Accept: application/json