Applications - Retrieve

Applications can retrieved by sending GET to application endpoint with application_id.

An application json object with full attributes is returned.

ArgumentExampleDescription
application_id
string
"di71rG94"(required) The unique identifier of the Application object to be retrieved

Retrieve Application

GET /1/applications/{application_id}
Host: https://api.cogniac.io

Example: Retrieve an Application

curl -X GET https://api.cogniac.io/1/applications/di71rG94 \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"
import cogniac

# connect to the tenant
cc = cogniac.CogniacConnection(username="[email protected]", 
                               password="myPassword", 
                               tenant_id="63QhzFLc9tg4")

# get the app object
my_app = cc.get_application('di71rG94')
{
    "application_id": "di71rG94",
    "tenant_id": "abcdefghijk",
    "name": "Test App Updated",
    "description": "Application Description Updated",
    "type": "classification",
    "release_metrics": "best_F1",
    "input_subjects": [
        "123",
        "456"
    ],
    "output_subjects": [
        "cat",
        "dog",
        "horse"
    ],
    "detection_thresholds": {
        "dog": 0.7,
        "cat": 0.5,
        "horse": 0.5
    },
    "active": true,
    "refresh_feedback": false,
    "app_managers": [
        "[email protected]"
    ],
    "detection_post_urls": [
        "http://example.com/cogniac-post"
    ],
    "gateway_post_urls": [],
    "custom_fields": {},
    "hpo_credit": 1,
  	"production_gateway_model_id": "InitialModel_di71rG94_lWPACS.tgz",
    "staging_gateway_model_id": None,
    "created_by": "[email protected]",
    "created_at": 1508537094.552487,
    "modified_at": 1508550643.610814,
    "system_feedback_per_hour": 0,
    "requested_feedback_per_hour": null,   
    "release_model_count": 1,
    "best_model_ccp_filename": "InitialModel_di71rG94_lWPACS.tgz",
    "candidate_model_count": 2,
    "current_performance": null,
    "last_candidate_at": 1508537109.651132,
    "last_released_at": null,
    "training_data_count": null,
    "validation_data_count": null,
    "replay": false,
}