Page MenuHomePhabricator

Impossible to set boolean param with curl?
Closed, ResolvedPublic

Asked by benjumanji on Feb 26 2016, 2:46 PM.

Details

curl http://phabricator.something.com/api/harbormaster.createartifact \
  -d api.token=api-some-key\
  -d buildTargetPHID=PHID-HMBT-some-phid \
  -d artifactKey=jenkins.uri \
  -d artifactData[uri]="http://build:8080/job/blah" \
  -d artifactType=uri \
  -d artifactData[name]="Jenkins Build" \
  -d artifactData[ui.external]=1

Always complains with the following:

{"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"Parameter 'ui.external' has invalid type. Expected type 'optional bool', got type 'string'."}

What silly thing am I doing wrong?

EDIT: Task raised: https://secure.phabricator.com/T10456

Answers

epriestley
Updated 2,359 Days Ago

Does literal true work?

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.