# Bug: value or type of dryrun ignored, only presence respected

**URL:** <https://forum.beeminder.com/t/bug-value-or-type-of-dryrun-ignored-only-presence-respected/9271>\
**Category:** Bugabee\
**Created:** [May 6, 2021, 9:26am UTC](https://forum.beeminder.com/t/bug-value-or-type-of-dryrun-ignored-only-presence-respected/9271 "2021-05-06T09:26:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krugerk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/krugerk/32/5161_2.png) [@krugerk](https://forum.beeminder.com/u/krugerk)\
**Post date:** [May 6, 2021, 9:26am UTC](https://forum.beeminder.com/t/bug-value-or-type-of-dryrun-ignored-only-presence-respected/9271/1 "2021-05-06T09:26:16Z")

</div>

API  
Goal Resource  
Create a goal for a user

appears to ignore the value of dryrun, treating the mere presence of the parameter as “true”, regardless of the value or datatype.

request:

```auto
curl -X POST https://www.beeminder.com/api/v1/users/me/goals.json \
    -d auth_token=abc123 \
    -d slug=exercise \
    -d title=Work+Out+More \
    -d goal_type=hustler \
    -d goaldate=1400000000 \
    -d rate=5 \
    -d goalval=null \
    -d dryrun=false

```

,

```auto
curl -X POST https://www.beeminder.com/api/v1/users/me/goals.json \
    -d auth_token=abc123 \
    -d slug=exercise \
    -d title=Work+Out+More \
    -d goal_type=hustler \
    -d goaldate=1400000000 \
    -d rate=5 \
    -d goalval=null \
    -d dryrun=0

```

, or

```auto
curl -X POST https://www.beeminder.com/api/v1/users/me/goals.json \
    -d auth_token=abc123 \
    -d slug=exercise \
    -d title=Work+Out+More \
    -d goal_type=hustler \
    -d goaldate=1400000000 \
    -d rate=5 \
    -d goalval=null \
    -d dryrun="false"

```

Response is a json of the goal but the goal has not been created.
