-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateSourceConnection.curl
More file actions
46 lines (46 loc) · 1.35 KB
/
createSourceConnection.curl
File metadata and controls
46 lines (46 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
curl --location --request POST 'https://platform.adobe.io/data/foundation/flowservice/sourceConnections' \
--header 'Authorization: Bearer {{ACCESS_TOKEN}} \
--header 'x-api-key: {{API_KEY}}' \
--header 'x-gw-ims-org-id: {{IMS_ORG}}' \
--header 'x-sandbox-name: {{SANDBOX_NAME}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Database source connection ORDERS",
"baseConnectionId": "{{BASECONNECTIONID_FROM_STEP1}}",
"description": "Database source connection ORDERS",
"data": {
"format": "tabular"
},
"params": {
"tableName": "TEST.ORDERS",
"columns": [
{
"name": "FIELD1",
"type": "string",
"xdm": {
"type": "string"
}
},
{
"name": "FIELD1",
"type": "string",
"xdm": {
"type": "string"
}
},
{
"name": "FIELD3_DATETIME",
"type": "string",
"meta:xdmType": "date-time",
"xdm": {
"type": "string",
"format": "date-time"
}
}
]
},
"connectionSpec": {
"id": "b2e08744-4f1a-40ce-af30-7abac3e23cf3",
"version": "1.0"
}
}'