Unable to update access code

19 views
Skip to first unread message

mattdfloyd

unread,
Sep 18, 2017, 6:09:59 PM9/18/17
to Eventbrite API
Hello,
I've been able to create an access code via the API but have been unable to update the access code after its been created. Any help on what I'm missing?

Request:
```
curl -X POST \
https://www.eventbriteapi.com/v3/events/35578407976/access_codes/317167042 \
-H 'authorization: Bearer **********' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"access_code": {
"code": "****-n172-z73v-qr8p",
"ticket_ids": [
"69101783"
],
"quantity_available": 2
}
}'
```

Response:
```
{
"resource_uri": "https://www.eventbriteapi.com/v3/discounts/317167042/",
"amount_off": null,
"code": "****-n172-z73v-qr8p",
"discount_type": "access",
"end_date": "2017-09-23T21:28:38",
"end_date_relative": null,
"id": "317167042",
"percent_off": null,
"quantity_available": 1,
"quantity_sold": 0,
"start_date": null,
"start_date_relative": null,
"hold_ids": null,
"ticket_ids": [
"69101783"
],
"event_id": "35578407976",
"ticket_group_id": null
}
```

mattdfloyd

unread,
Sep 19, 2017, 4:54:29 PM9/19/17
to Eventbrite API
Seems as though this has been fixed. I'm getting a correct response, with an access code resource uri instead of a discount uri.
Reply all
Reply to author
Forward
0 new messages