Probably
Docs

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
/api/v1/tools/decide_learning

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.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (prb_…) from Settings → Connections.

Request Body

application/json
  1. body
campaignId*string
Match^([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)$
Formatuuid
key*string
Length1 <= length <= 200
decision*string
Value in"save""discard"

Response Body

The tool's answer.

application/json
  1. response
decision*string
Value 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"}