# Graphql mutation linkTask

**URL:** <https://community.fibery.io/t/graphql-mutation-linktask/10611>\
**Category:** API & Programming\
**Created:** [March 21, 2026, 4:07am UTC](https://community.fibery.io/t/graphql-mutation-linktask/10611 "2026-03-21T04:07:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthieu\_Bruneau](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matthieu_bruneau/32/8078_2.png) [@matthieu\_Bruneau](https://community.fibery.io/u/matthieu_Bruneau)\
**Post date:** [March 21, 2026, 4:07am UTC](https://community.fibery.io/t/graphql-mutation-linktask/10611/1 "2026-03-21T04:07:48Z")

</div>

Hello,  
I am currently trying to link some data using graphql (I use Fibery as a central tool for my project management, and need to automatically connect Timeular data and fibery tasks).  
So I manage to create my timleogs entites without any issues, but I don’t manage to link the tasks to them. I am currently using `linkTaskBatch` for optimisation purpose.  
Here is my query:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/4/45a12a43c2522cb4364772dac3ea7ee6a7503110.png)  
And here is the error message:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a7d3c235942f8d7c94c94a196f8fe022d5e4728e.png)  
Anybody has a solution?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 21, 2026, 9:24am UTC](https://community.fibery.io/t/graphql-mutation-linktask/10611/2 "2026-03-21T09:24:27Z")

</div>

Have you looked here:

> **[GraphQL mutations](https://the.fibery.io/@public/User_Guide/Guide/GraphQL-mutations-256/anchor=Create-and-link-relations--0db8619b-e097-4dfc-a358-c37c4759adb8)**

I think the link part only works on entities that already exist, and won’t work as part of a create mutation

---

<div class="post-metadata">

**Author:** ![matthieu\_Bruneau](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matthieu_bruneau/32/8078_2.png) [@matthieu\_Bruneau](https://community.fibery.io/u/matthieu_Bruneau)\
**Post date:** [March 21, 2026, 1:51pm UTC](https://community.fibery.io/t/graphql-mutation-linktask/10611/3 "2026-03-21T13:51:37Z")

</div>

I just tested it. So it is indeed working, but it is creating new entities each time and not linking to existing entities.  
I just found the solution, I didn’t need the linkEntityBatch part.  
Doing it like that is actually working:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/f/f66a1b57041f5851c0b6df03afc771d8c3b6a450.png)
