autoit / Cognite API v1 / Retrieve an entity matching model by the ID of the model
Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oHttp.SetRequestHeader "api-key","{{api-key}}"
$oSbResponseBody = ObjCreate("Chilkat.StringBuilder")
$bSuccess = $oHttp.QuickGetSb("https://domain.com/api/v1/projects/{{project}}/context/entitymatching/:id",$oSbResponseBody)
If ($bSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite("Response status code = " & $oHttp.LastStatus & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Curl Command
curl -X GET
-H "api-key: {{api-key}}"
https://domain.com/api/v1/projects/{{project}}/context/entitymatching/:id
Postman Collection Item JSON
{
"id": "entityMatchingStatus",
"name": "Retrieve an entity matching model by the ID of the model",
"request": {
"url": {
"host": "{{baseUrl}}",
"path": [
"api",
"v1",
"projects",
"{{project}}",
"context",
"entitymatching",
":id"
],
"query": [
],
"variable": [
{
"key": "id",
"description": "A server-generated ID for the object.",
"disabled": true,
"type": "number"
}
]
},
"method": "GET",
"header": [
{
"key": "api-key",
"value": "{{api-key}}",
"description": "An admin can create API keys in the Cognite console."
}
],
"description": "Shows the status of the model. If the status is completed, shows the parameters used to train the model."
}
}