# Replacing Key value after (or before) an Array Aggregator

**URL:** <https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474>\
**Category:** Beginner Questions\
**Tags:** arrays\
**Created:** [May 27, 2025, 12:58pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474 "2025-05-27T12:58:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oki](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Oki](https://community.make.com/u/Oki)\
**Post date:** [May 27, 2025, 12:58pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/1 "2025-05-27T12:58:41Z")

</div>

Hi, I’m a complete beginner and i probably want to do something simple but I can’t figure it out:  
I have an array that outputs the values below. Instead of “data” I need it to say “id” for the key value. That’s it…I think.

[  
{  
“array”: [  
{  
“data”: “urn:li:image:D4D10AQG5xYHuBxB3cg”  
},  
{  
“data”: “urn:li:image:D4D10AQFlHzhaDvmgvw”  
},  
{  
“data”: “urn:li:image:D4D10AQE093mPad5A3g”  
},  
{  
“data”: “urn:li:image:D4D10AQFHiY1oIJMkww”  
},  
{  
“data”: “urn:li:image:D4D10AQGd59Iy2nlX7g”  
},  
{  
“data”: “urn:li:image:D4D10AQFNOlKyQ0cmZA”  
}  
],  
“ **IMTAGGLENGTH** ”: 6  
}  
]

The longer story is that I’m trying to do a multi-image post on LinkedIn. I got my pictures registered and uploaded, and with the array aggregator I want to send them to an HTTP OAuth.2 request to be posted. I’m not completely sure if this array will do as the values seem to be embedded in collections. Any insight into this would also be appreciated.  
Currently the final Post HTTP gives me the following error:  
{“status”:400,“code”:“ILLEGAL\_ARGUMENT”,“message”:“Request body could not be converted to data map”}  
Below are screenshots of the whole chain, and the way I filled in the module fields.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/0/10ea7276ab542399ce3d405e89560431c16bcf2e.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/6/46c25b4ca872da08bdfc965ef00245ceb5b84f07.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/0/10dd2f72ae3e0a8ad8ef2a169588f8cf51dcad0f.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/e/6efb0a4a2bd9f99acaab45fa5a8c8e6bd36bcdd4.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/6/96ad38a6664a616b4063dc5b8d821db05e924128.png)

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [May 27, 2025, 4:49pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/2 "2025-05-27T16:49:03Z")

</div>

Hey there,

you can use a JSON module to rebuild the array however you like.

---

<div class="post-metadata">

**Author:** ![Oki](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Oki](https://community.make.com/u/Oki)\
**Post date:** [May 27, 2025, 8:16pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/3 "2025-05-27T20:16:24Z")

</div>

Hi, Thank you. I tried the Set Variable Module AND the JSON module, but I could not fully get the right results. Would you mind adding a little detail on how to do that?  
When I tried following instructions from ChatGPT or from the internal [Make.com](http://Make.com) AI, I still got the same error.

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [May 28, 2025, 3:30pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/4 "2025-05-28T15:30:53Z")

</div>

Replace the Array Aggregator with Aggregate to JSON and inside specify the structure you want.

---

<div class="post-metadata">

**Author:** ![Oki](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Oki](https://community.make.com/u/Oki)\
**Post date:** [May 29, 2025, 4:25pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/5 "2025-05-29T16:25:37Z")

</div>

I tried this indeed, but somehow it comes out deeply embedded and I fail (as a complete beginner) to get it out. I used the JSON aggregator, set the name to id, and have the value to the value I want it to give, but it gives me the result as in the screenshot. I think LinkedIn needs a clean list without all the brackets to accept it for the multipost.  
Sorry if my question is silly. I thought I was embarking on something that was simple by now but got stuck on this last step. Any help would be greatly appreciated.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/0/00ceeddfa327b52d689a17315d8a60f24c070815.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/c/bc4fa6312c2e274c631d15eaa02f248771b677c3.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/c/2c8f97fff3c83a0f35ad59cde131630e81057e29.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/b/ab0d58f760be12f19c74d250f9c818f61ac6851e.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [May 30, 2025, 12:24am UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/6 "2025-05-30T00:24:38Z")

</div>

> [@Oki](#):
>
> ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/b/ab0d58f760be12f19c74d250f9c818f61ac6851e.png)

From this image, I deduce that you are mapping the whole module output (incorrect) instead of the JSON variable.

If you need further assistance, please provide the following:

- screenshot of HTTP module

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make!

— @samliew

---

<div class="post-metadata">

**Author:** ![Oki](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Oki](https://community.make.com/u/Oki)\
**Post date:** [May 30, 2025, 2:05pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/7 "2025-05-30T14:05:00Z")

</div>

Hi Sam, thank you. I tried that as well before I tried the other way with the full module output. It is still embedded in the “images” collection (I don’t know where this name comes from).  
It still gives the same 400 error. Your insight and help are very much appreciated

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/b/db116e32051469bdee2c7dce491c7da4d713e591.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/7/f79e587a5c9ef1c2d46be21a405cb16e321299e5.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/4/94132dbde7e70d8e51d3bf52f272a080e9963f71.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/c/4c4e8588063c3189617612778210a7aa69a15255.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/7/772eaaced938a84771ed4a76048c61fbf2caec55.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/7/e74f9479409ebaeb3027ee1e89a2eaff79ca9cac.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/b/2bc3b3d027e63f0677b6149381813f2eb5d456fe.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [May 30, 2025, 2:56pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/8 "2025-05-30T14:56:17Z")

</div>

> [@Oki](#):
>
> It is still embedded in the “images” collection (I don’t know where this name comes from).

You have `"images":` typed here:

 ![Screenshot 2025-05-30 224918](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/f/0f9b32747702ec728aa4987b08b5e5ea6eafc150.png)

---

<div class="post-metadata">

**Author:** ![Oki](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Oki](https://community.make.com/u/Oki)\
**Post date:** [May 30, 2025, 3:33pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/9 "2025-05-30T15:33:46Z")

</div>

That was a leftover from a previous attempt, I see now, but also how the official Microsoft learning documents say it should be accepted.  
I also tried to remove it and yet…it doesn’t seem to accept it either.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/1/5181cdb19d4ae3404463336f2b62f0f97c1c912c.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/f/7fe9d40450e44f602aab1eea9425ff8653f818e4.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [August 28, 2025, 3:47pm UTC](https://community.make.com/t/replacing-key-value-after-or-before-an-array-aggregator/83474/10 "2025-08-28T15:47:31Z")

</div>


