# How to send data via endpoint to a complex scheme?

**URL:** <https://community.integray.com/t/how-to-send-data-via-endpoint-to-a-complex-scheme/104>\
**Category:** Platform discussions\
**Tags:** endpoint\
**Created:** [August 10, 2023, 8:37am UTC](https://community.integray.com/t/how-to-send-data-via-endpoint-to-a-complex-scheme/104 "2023-08-10T08:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moerani](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Moerani](https://community.integray.com/u/Moerani)\
**Post date:** [August 10, 2023, 8:37am UTC](https://community.integray.com/t/how-to-send-data-via-endpoint-to-a-complex-scheme/104/1 "2023-08-10T08:37:15Z")

</div>

Hi,  
I want to send data through an endpoint and map it to a complex schema, how should I do it?  
What is the correct JSON notation?  
My complex schema:

 ![obrazek](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/6e9707e62105f776a840a600fdc61e1567740e20.png)  
Here my endpoint - I only have one variable available, but i am sending two, i am confused.  
 ![obrazek](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/9e901e380fce8dafd34ea6a20f442c49da52930a.png)

---

<div class="post-metadata">

**Author:** ![tomas](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tomas](https://community.integray.com/u/tomas)\
**Post date:** [August 10, 2023, 10:47am UTC](https://community.integray.com/t/how-to-send-data-via-endpoint-to-a-complex-scheme/104/2 "2023-08-10T10:47:24Z")

</div>

Hi,

here is example of my configuration to understand what data I can send to the endpoint.

Schema:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/ecd0b5ddb84ea7883a30f627560580179284ee43.png)

Definition of endpoint (POST):

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/bc12c46196cd65188514339b66cee629d1cec154.png)

Now I can send the following data:

```auto
{
    "SomeField": "abc",
    "SomeSchema": [
        {
            "ID": 1,
            "Name": "Tomas"
        },
        {
            "ID": 2,
            "Name": "Milan"
        },    
    ]
}

```

And here are the data in Integray:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/8fa083afc0f7975554f16bc5ae28adeca80af31d.png)

And data in task looks as follows:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/33e4ca2db79ed84727c6483bcedf3166bd61c7fc.png)

Regards, Tomas.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.integray.com/u/system)\
**Post date:** [August 17, 2023, 10:47am UTC](https://community.integray.com/t/how-to-send-data-via-endpoint-to-a-complex-scheme/104/3 "2023-08-17T10:47:46Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
