curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/ai-actions/{actionId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"steps": [
{
"transformationBlockId": 123,
"parameters": {}
}
],
"dataCategory": "allData",
"dataMetadataKey": "<string>",
"dataMetadataValue": "<string>",
"setMetadataAfterRunning": [
{
"key": "<string>",
"value": "<string>"
}
],
"sortOrder": 123
}'
{
"success": true,
"error": "<string>"
}
Store an AI Actions config. Use createAIActionsJob
to run the job. Post the full AI Action here w/ all parameters.
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/ai-actions/{actionId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"steps": [
{
"transformationBlockId": 123,
"parameters": {}
}
],
"dataCategory": "allData",
"dataMetadataKey": "<string>",
"dataMetadataValue": "<string>",
"setMetadataAfterRunning": [
{
"key": "<string>",
"value": "<string>"
}
],
"sortOrder": 123
}'
{
"success": true,
"error": "<string>"
}
OK
The response is of type object
.