POST
/
api
/
{projectId}
/
ai-actions
/
{actionId}
Save AI Actions config
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>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

actionId
integer
required

AI Action ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.