Ingestion Rules
SDK methods for the Ingestion Rules module, accessed via soat.ingestionRules. See the Ingestion Rules module docs for permissions and data model, and each method's REST page for the full request/response schema.
soat.ingestionRules.listIngestionRules()
List ingestion rules
- Method:
GET - Path:
/api/v1/ingestion-rules
await soat.ingestionRules.listIngestionRules({
query: { /* + optional */ },
});
soat.ingestionRules.createIngestionRule()
Create an ingestion rule
- Method:
POST - Path:
/api/v1/ingestion-rules
await soat.ingestionRules.createIngestionRule({
body: { content_type_glob, /* + optional */ },
});
soat.ingestionRules.getIngestionRule()
Get an ingestion rule
- Method:
GET - Path:
/api/v1/ingestion-rules/{ingestion_rule_id}
await soat.ingestionRules.getIngestionRule({
path: { ingestion_rule_id },
});
soat.ingestionRules.updateIngestionRule()
Update an ingestion rule
- Method:
PATCH - Path:
/api/v1/ingestion-rules/{ingestion_rule_id}
await soat.ingestionRules.updateIngestionRule({
path: { ingestion_rule_id },
body: { /* + optional */ },
});
soat.ingestionRules.deleteIngestionRule()
Delete an ingestion rule
- Method:
DELETE - Path:
/api/v1/ingestion-rules/{ingestion_rule_id}
await soat.ingestionRules.deleteIngestionRule({
path: { ingestion_rule_id },
});