# Webhook register api failed

**URL:** <https://community.shiphero.com/t/webhook-register-api-failed/1509>\
**Category:** GraphQL API\
**Created:** [August 23, 2021, 1:59pm UTC](https://community.shiphero.com/t/webhook-register-api-failed/1509 "2021-08-23T13:59:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xidong](https://avatars.discourse-cdn.com/v4/letter/x/41988e/32.png) [@xidong](https://community.shiphero.com/u/xidong)\
**Post date:** [August 23, 2021, 1:59pm UTC](https://community.shiphero.com/t/webhook-register-api-failed/1509/1 "2021-08-23T13:59:18Z")

</div>

Similar issue I found here: [Error when creating a webhook subscription](https://community.shiphero.com/t/error-when-creating-a-webhook-subscription/1490), but looks like no solution been provided.

The issue I faced is webhook create graphql api failed.

I would like to register several webhook api using graphql eg:

```auto
mutation {
  webhook_create(data: {name: "Inventory Update", url: "https://italic-post.merchant.italic.com/inventory", shop_name: ""}) {
    request_id
    complexity
    webhook {
      shared_signature_secret
    }
  }
}

```

however the error msg I received is:

```json
{
  "errors": [
    {
      "message": "Error creating Api Account: Column 'updated_at' cannot be null",
      "operation": "webhook_create",
      "field": "webhook_create",
      "request_id": "6121a77a283b056230449f08",
      "code": 9
    }
  ],
  "data": {
    "webhook_create": null
  }
}

```

I checked graphql api docs here: [Webhooks – Developer Resources | ShipHero](https://developer.shiphero.com/webhooks#webhook_create), I think it’s due to the api broke, probably developer added a new field updated\_at, and does not parse in backend database insert. Could you help check that? Thanks.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [August 23, 2021, 4:43pm UTC](https://community.shiphero.com/t/webhook-register-api-failed/1509/2 "2021-08-23T16:43:26Z")

</div>

Hi @xidong  
Welcome to the community! We do have engineers looking into this and will update you as we get more information.

---

<div class="post-metadata">

**Author:** ![xidong](https://avatars.discourse-cdn.com/v4/letter/x/41988e/32.png) [@xidong](https://community.shiphero.com/u/xidong)\
**Post date:** [August 24, 2021, 2:27pm UTC](https://community.shiphero.com/t/webhook-register-api-failed/1509/3 "2021-08-24T14:27:50Z")

</div>

Thanks Theresa for your info, do we have an ETA for this issue? As we are about to release our webhook api soon.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [August 24, 2021, 9:07pm UTC](https://community.shiphero.com/t/webhook-register-api-failed/1509/4 "2021-08-24T21:07:45Z")

</div>

Hi @xidong  
A fix has been released. It was successful in our tests. Please let me know that this bug is gone!
