Save or discard a learning
decide_learning, in Changes: A connection or key that may make changes. None spends credits; prepare_* and stage tools (research, brainstorm, write_script, review, generate_clip, voice, storyboard) prepare paid work for confirm_spend.
POST
Save a learning a campaign proposes (get_campaign's learnings, by key) as the Space's guidance, which later campaigns and videos read, or discard it. A learning is decided once; deciding again answers with the first decision. One newer results no longer propose is refused.
apiKeyheader
AuthorizationBearer <token>An API key (prb_…) from Settings → Connections.
application/json- body
campaignId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidkey*stringLength
1 <= length <= 200decision*stringValue in
"save""discard"The tool's answer.
application/json- response
decision*stringValue in
"saved""discarded"curl -X POST 'https://studio.probably.co/api/v1/tools/decide_learning' \ -H "Authorization: Bearer $PROBABLY_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf", "key": "string", "decision": "save"}'{ "decision": "saved"}