title: Post a relation in a repeatable component on Strapi
body: <p>I am trying to post a relation in a repeatable component in Strapi. I receive a 200 but the relation is not added. Here is my structure and my code :</p>
  <p><a href="https://i.stack.imgur.com/85wLQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/85wLQ.png" alt="enter image description here" /></a></p>
  <pre><code>const postData = {
    name,
    locale: &quot;fr&quot;,
    summary,
    people,
    preparationInMinutes,
    cookingInMinutes,
    equipments: {
      oven,
      microwave,
      hob,
      mixer,
      thermomix,
      fryer,
    },
    Ingredients: [
      {
        ingredient: 31,
        amount: 100,
        unit: &quot;g&quot;,
      },
      {
        ingredient: 32,
        amount: 500,
        unit: &quot;l&quot;,
      },
    ],
    Instructions: [
      {
        ingredients: [31, 32],
        step: &quot;étape 1&quot;,
      },
      {
        ingredients: [33, 34],
        step: &quot;étape 2&quot;,
      },
    ],
    source: 21,
  }; 
  form.append(&quot;data&quot;, JSON.stringify(postData));
  await axios
    .post(getStrapiURL(&quot;/recipes&quot;), form, {
      headers: {
        &quot;Content-Type&quot;: &quot;multipart/form-data&quot;,
        Authorization: `Bearer ${jwt}`,
      },
    })
    .then((response) =&gt; {
      // Handle success.
      console.log(&quot;Well done!&quot;);
      console.log(&quot;Data: &quot;, response.data);
    })
    .catch((error) =&gt; {
      // Handle error.
      console.log(&quot;An error occurred:&quot;, error.response);
    });
  </code></pre>
  <p>I tried adding the relation with the id, an array of ids. None of these possibilities are working.</p>
  <p>NOTE : The relation in the post for the &quot;source&quot; is working since it is not in a repeatable component.</p>