Source APIs

APIs to manage a Telmai source

Tenant Id can be retrieved from the UI as listed here.

Create a source

POST https://demo.backend.telm.ai/{tenant}/configuration/sources

Create a new source in the tenant

Path Parameters

Query Parameters

Headers

{
    id = 'id',
    name = 'name',
    description = 'description',
    attributes = [],
    "last_upload_job_id": null
}

List all sources for this tenant

GET https://demo.backend.telm.ai/{tenant}/configuration/source

Api to list all sources in a tenant

Path Parameters

Headers

[
    {
        id = 'id',
        name = 'name',
        description = 'description',
        attributes = [
            {
                "id": "<id>",
                "name": "<name>",
                "monitored": <true/false>,
                "status": "<status>",
                "model_last_updated": "<date>"
            },
            {
                "id": "<id>",
                "name": "<name>",
                "monitored": <true/false>,
                "status": "<status>",
                "model_last_updated": "<date>"
            }
        ],
        "last_upload_job_id": "<job-id>",
        "scheduled_upload": <scheduled_upload>
    }
]

Update a source

PUT https://demo.backend.telm.ai/{tenant}/configuration/sources

Create a new source in the tenant

Path Parameters

Query Parameters

Headers

{
    id = 'id',
    name = 'name',
    description = 'description',
    attributes = [],
    "last_upload_job_id": null
}

Get details of a specific source

GET https://demo.backend.telm.ai/{tenant}/configuration/sources/<source-id>

Path Parameters

Headers

{
    "id": "<source-id>",
    "name": "<source-name>",
    "description": "<source-description>",
    "attributes": [],
    "last_upload_job_id": null,
    "scheduled_upload": null
}

Delete Source

DELETE https://demo.backend.telm.ai/{tenant}/configuration/sources/<source-id>

Delete a specific source

Path Parameters

Headers

{
    "message": "Source was deleted successfully"
}

Last updated