/ng-cms/content-types/{projectId}/{key}/ai-actions/{actionId}/runhttps://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions/{actionId}/runsmart_toyAgentic specRun an AI action for a content type
Executes an AI action (previously configured on the content type, see List AI actions) against a single content entry identified by entryId. The action runs using the project's default text model (CMS user setting DefaultTextModel, falls back to openai) and completes synchronously before the response is returned.
Параметры запроса
projectIdstringProject (bucket) identifier
keystringContent type ID or key
actionIdstringAI action ID to run
Тело запроса
RunCmsTypeAiActionRequestentryIdstringID of the content entry to run the action against
Ответы
тип: ApiResponse<bool>
successbooleanAlways true on successresultbooleanAlways trueerrorsErrorDetail[]Empty on successтип: ApiResponse<bool>
successbooleanAlways falseresultbooleanAlways falseerrorsErrorDetail[]One error describing why the run failedтип: ApiResponse<bool> | empty
successbooleanAlways false (only present when action/entry not found)errorsErrorDetail[]One error describing what wasn't found (only present when action/entry not found)тип: ApiResponse<bool>
successbooleanAlways falseerrorsErrorDetail[]One error describing the lockтип: ApiResponse<bool>
successbooleanAlways falseerrorsErrorDetail[]Server-side errorscorrelationIdstringTrace IDmessagestringError messagestackstringStack trace (non-production only)curl --request POST \
--url https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions/{actionId}/run \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{"entryId":"cnt_a1b2c3d4e5f6"}'{
"success": true,
"result": true,
"errors": []
}