Sign in

Update custom rules

documented

Replace/update the user’s custom rules with a provided array.

PUT /api/v1/users/{user}/custom_rulesUsersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://wakatime.com/api/v1/users/{{$user}}/custom_rules" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '[{"id":"{{$rule_id}}","action":"{{$action}}","source":"{{$source}}","operation":"{{$operation}}","source_value":"{{$source_value}}","destination":"{{$destination}}","destination_value":"{{$destination_value}}","priority":{{$priority}}}]'
Update custom rules · WakaTime · OpenIntegrations