# Mutation: Set Box Field

**URL:** <https://community.shiphero.com/t/mutation-set-box-field/1124>\
**Category:** GraphQL API\
**Created:** [February 12, 2021, 3:08pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124 "2021-02-12T15:08:50Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [February 12, 2021, 3:08pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/1 "2021-02-12T15:08:50Z")

</div>

I need to use the API to set the box field. I can’t seem to find that in any of the mutations.

Is this currently not possible? Is it something that is in the roadmap?

Thanks!

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [February 13, 2021, 3:54pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/2 "2021-02-13T15:54:47Z")

</div>

Hi @Mike!  
Unfortunately, we don’t have it available at the moment, but we have plans on adding it to our Mutation upon Order Creation.  
We don’t have an ETA on when this will be implemented but we will keep you updated on the progress.  
Thanks in advance for the patience while we build this!  
Tom

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [February 13, 2021, 4:20pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/3 "2021-02-13T16:20:38Z")

</div>

Ok thanks for the update. You said you will add it “upon order creation” but I think it is important that it would be something that could be changed AFTER orders are created also. We need a way to change the box choice for existing orders because the default they get assigned on creation is not always optimal, so we are creating logic to go through and change the box to the specific one that is best.

Thanks and really looking forward to this being implemented.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [February 15, 2021, 1:06pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/4 "2021-02-15T13:06:33Z")

</div>

Thanks for pointing that out @Mike!  
We also requested for it to be added to the order\_update mutation now 👍

Thanks again for the patience and we will let you know as soon as we have an update about it!  
Tom

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [March 4, 2021, 6:29pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/5 "2021-03-04T18:29:00Z")

</div>

Any chance this might be avaliable soon?

We’ve completed our work to build a nifty box optimization tool but have no way of setting the box in shiphero!

😆

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [March 9, 2021, 1:17am UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/6 "2021-03-09T01:17:39Z")

</div>

Hi @Mike!  
We are hoping to reprioritize our ticket soon and see if we can work on this. We will keep you updated. Thanks for the patience once again!  
Tom

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [March 12, 2021, 8:45pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/7 "2021-03-12T20:45:14Z")

</div>

Thanks hoping it will be supported soon!

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [April 7, 2021, 9:31pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/8 "2021-04-07T21:31:37Z")

</div>

Any chance this will be supported soon? Eagerly waiting!

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [April 13, 2021, 12:44am UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/10 "2021-04-13T00:44:28Z")

</div>

Hi @Mike!  
Unfortunately, we won’t be able to build this soon. Any chance you could set this temporarily using Automation Rules?  
Something like: If Tag = Box 123 then Set Box to Use: Box 123

Thanks again for the patience!  
Tom

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [April 13, 2021, 3:57am UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/11 "2021-04-13T03:57:12Z")

</div>

Don’t your automation rules only run on order creation?

Also wouldn’t your solution require setting one automation rule for every box?

Also your GUI only seems to let me setup automation rules for individual stores, so that means actuallu every box and store combo needs a separate rule?

Ability to set box via API would be just one and done.

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [April 22, 2021, 6:18pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/12 "2021-04-22T18:18:10Z")

</div>

Hi @tomasw Can you please chime in on the above? I am scratching my head as to how to properly set boxes after an order is created in ShipHero. Seems like a fundamental and critical capability that should be supported.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [May 14, 2021, 6:56pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/13 "2021-05-14T18:56:17Z")

</div>

Hi there we are still stuck without a viable solution.

Any glimpse of hope that you’ll let users set boxes via API?

Anyone else think this is a good idea to be supported? If you’re reading this please chime in.

Thanks!

---

<div class="post-metadata">

**Author:** ![atlatin](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@atlatin](https://community.shiphero.com/u/atlatin)\
**Post date:** [May 15, 2021, 1:18am UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/14 "2021-05-15T01:18:18Z")

</div>

Just wanted to follow this as well since this is such a critical aspect. If we used the tag automation you suggested above, would that only work on tags added from the store? Or can we add the tag after the order is created directly in ShipHero (either using UI or API) and use that as the trigger for the automation to set the box? This way we can change/set boxes for existing orders.

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://community.shiphero.com/u/Mike)\
**Post date:** [September 13, 2021, 5:33pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/15 "2021-09-13T17:33:38Z")

</div>

Yay it looks like you now support this! Perhaps you can help me figure out how to use it properly.

We’re trying to update the box\_name for an order via the new field in the order\_update mutation but any inputs (including valid ones) give back “Unexpected Error.”

Here’s a screenshot

![image](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/a2990218fe6b6ee37960b9ddce2d7181c056a70c.png)

request id is:  
613a94cfd894127c211e16da

```auto
mutation {
  order_update(
    data:{
      order_id:"T3JkZXI6MjEzNTk1MTU2"
      box_name:"BPM"
    }
  ){
    request_id
    order{
      order_number
    }
  }
}

```

---

<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:** [September 13, 2021, 6:19pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/16 "2021-09-13T18:19:51Z")

</div>

Hi @Mike  
Thank you for the request-id, I will be happy to take a closer look.

---

<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:** [September 13, 2021, 6:44pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/17 "2021-09-13T18:44:32Z")

</div>

The fix should be deployed shortly, most likely eod. I will let you know here!

---

<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:** [September 20, 2021, 4:50pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/18 "2021-09-20T16:50:37Z")

</div>

This should be good to go!

---

<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:** [September 27, 2021, 12:00pm UTC](https://community.shiphero.com/t/mutation-set-box-field/1124/19 "2021-09-27T12:00:25Z")

</div>

Closed on September 27, 2021, 12:00pm UTC

This topic was automatically closed after 6 days. New replies are no longer allowed.
