CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 26 forks source link

Triggering Workflows with boolean parameters no longer works #57

Closed philnielsen closed 5 years ago

philnielsen commented 5 years ago

I've been toying with running a bot to trigger conditional workflows via slack (as described by the the docs) As of this morning, boolean parameters are being automatically converted into strings. previously working curl command:

curl -X POST \
  'https://circleci.com/api/v2/project/:projectslug/pipeline?circle-token=TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"parameters": {"mark": true} }'

error in circle

#!/bin/sh -eo pipefail
# Type error for argument mark: expected type: boolean, actual value: \"true\" (type string)
# 
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false
Exited with code 1
CircleCI received exit code 1
ndintenfass commented 5 years ago

We think this was transient and now fixed. Please try again.

philnielsen commented 5 years ago

Yep, seems to be fixed now, thanks! @ndintenfass