adoptai-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/bin/adoptai-mcp.js +2 -0
- package/dist/apps/canva.js +1 -0
- package/dist/apps/figma.js +1 -0
- package/dist/apps/github.js +2 -0
- package/dist/apps/notion.js +1 -0
- package/dist/apps/registry.js +20 -0
- package/dist/apps/salesforce.js +1 -0
- package/dist/cli/add.js +532 -0
- package/dist/cli/index.js +39 -0
- package/dist/cli/list.js +19 -0
- package/dist/cli/remove.js +37 -0
- package/dist/cli/serve.js +27 -0
- package/dist/cli/status.js +24 -0
- package/dist/config/clients.js +118 -0
- package/dist/config/credentials.js +34 -0
- package/dist/core/auth-manager.js +237 -0
- package/dist/core/config-writer.js +161 -0
- package/dist/core/doctor.js +199 -0
- package/dist/core/package.json +3 -0
- package/dist/core/server-base.js +81 -0
- package/dist/integrations/canva/.env +3 -0
- package/dist/integrations/canva/auth.js +287 -0
- package/dist/integrations/canva/env.js +9 -0
- package/dist/integrations/canva/index.js +12 -0
- package/dist/integrations/canva/package.json +31 -0
- package/dist/integrations/canva/publish-to-adoptai.js +365 -0
- package/dist/integrations/canva/setup.js +90 -0
- package/dist/integrations/canva/tools.js +1315 -0
- package/dist/integrations/canva/tools.original.js +1315 -0
- package/dist/integrations/figma/auth.js +48 -0
- package/dist/integrations/figma/index.js +11 -0
- package/dist/integrations/figma/package.json +27 -0
- package/dist/integrations/figma/publish-to-adoptai.js +384 -0
- package/dist/integrations/figma/setup.js +90 -0
- package/dist/integrations/figma/tools.js +1137 -0
- package/dist/integrations/github/auth.js +53 -0
- package/dist/integrations/github/index.js +11 -0
- package/dist/integrations/github/package.json +28 -0
- package/dist/integrations/github/publish-to-adoptai.js +240 -0
- package/dist/integrations/github/setup.js +103 -0
- package/dist/integrations/github/tools.js +78 -0
- package/dist/integrations/github-actions/auth.js +53 -0
- package/dist/integrations/github-actions/index.js +11 -0
- package/dist/integrations/github-actions/package.json +27 -0
- package/dist/integrations/github-actions/setup.js +103 -0
- package/dist/integrations/github-actions/tools.js +5642 -0
- package/dist/integrations/github-activity/auth.js +53 -0
- package/dist/integrations/github-activity/index.js +11 -0
- package/dist/integrations/github-activity/package.json +27 -0
- package/dist/integrations/github-activity/setup.js +103 -0
- package/dist/integrations/github-activity/tools.js +925 -0
- package/dist/integrations/github-apps/auth.js +53 -0
- package/dist/integrations/github-apps/index.js +11 -0
- package/dist/integrations/github-apps/package.json +27 -0
- package/dist/integrations/github-apps/setup.js +103 -0
- package/dist/integrations/github-apps/tools.js +791 -0
- package/dist/integrations/github-billing/auth.js +53 -0
- package/dist/integrations/github-billing/index.js +11 -0
- package/dist/integrations/github-billing/package.json +27 -0
- package/dist/integrations/github-billing/setup.js +103 -0
- package/dist/integrations/github-billing/tools.js +438 -0
- package/dist/integrations/github-checks/auth.js +53 -0
- package/dist/integrations/github-checks/index.js +11 -0
- package/dist/integrations/github-checks/package.json +27 -0
- package/dist/integrations/github-checks/setup.js +103 -0
- package/dist/integrations/github-checks/tools.js +607 -0
- package/dist/integrations/github-code-scanning/auth.js +53 -0
- package/dist/integrations/github-code-scanning/index.js +11 -0
- package/dist/integrations/github-code-scanning/package.json +27 -0
- package/dist/integrations/github-code-scanning/setup.js +103 -0
- package/dist/integrations/github-code-scanning/tools.js +987 -0
- package/dist/integrations/github-dependabot/auth.js +53 -0
- package/dist/integrations/github-dependabot/index.js +11 -0
- package/dist/integrations/github-dependabot/package.json +27 -0
- package/dist/integrations/github-dependabot/setup.js +103 -0
- package/dist/integrations/github-dependabot/tools.js +915 -0
- package/dist/integrations/github-gists/auth.js +53 -0
- package/dist/integrations/github-gists/index.js +11 -0
- package/dist/integrations/github-gists/package.json +27 -0
- package/dist/integrations/github-gists/setup.js +103 -0
- package/dist/integrations/github-gists/tools.js +545 -0
- package/dist/integrations/github-git/auth.js +53 -0
- package/dist/integrations/github-git/index.js +11 -0
- package/dist/integrations/github-git/package.json +27 -0
- package/dist/integrations/github-git/setup.js +103 -0
- package/dist/integrations/github-git/tools.js +513 -0
- package/dist/integrations/github-issues/auth.js +53 -0
- package/dist/integrations/github-issues/index.js +11 -0
- package/dist/integrations/github-issues/package.json +27 -0
- package/dist/integrations/github-issues/setup.js +103 -0
- package/dist/integrations/github-issues/tools.js +2232 -0
- package/dist/integrations/github-orgs/auth.js +53 -0
- package/dist/integrations/github-orgs/index.js +11 -0
- package/dist/integrations/github-orgs/package.json +27 -0
- package/dist/integrations/github-orgs/setup.js +103 -0
- package/dist/integrations/github-orgs/tools.js +3512 -0
- package/dist/integrations/github-packages/auth.js +53 -0
- package/dist/integrations/github-packages/index.js +11 -0
- package/dist/integrations/github-packages/package.json +27 -0
- package/dist/integrations/github-packages/setup.js +103 -0
- package/dist/integrations/github-packages/tools.js +1088 -0
- package/dist/integrations/github-pulls/auth.js +53 -0
- package/dist/integrations/github-pulls/index.js +11 -0
- package/dist/integrations/github-pulls/package.json +27 -0
- package/dist/integrations/github-pulls/setup.js +103 -0
- package/dist/integrations/github-pulls/tools.js +1252 -0
- package/dist/integrations/github-reactions/auth.js +53 -0
- package/dist/integrations/github-reactions/index.js +11 -0
- package/dist/integrations/github-reactions/package.json +27 -0
- package/dist/integrations/github-reactions/setup.js +103 -0
- package/dist/integrations/github-reactions/tools.js +706 -0
- package/dist/integrations/github-repos/auth.js +53 -0
- package/dist/integrations/github-repos/index.js +11 -0
- package/dist/integrations/github-repos/package.json +27 -0
- package/dist/integrations/github-repos/setup.js +103 -0
- package/dist/integrations/github-repos/tools.js +7286 -0
- package/dist/integrations/github-search/auth.js +53 -0
- package/dist/integrations/github-search/index.js +11 -0
- package/dist/integrations/github-search/package.json +27 -0
- package/dist/integrations/github-search/setup.js +103 -0
- package/dist/integrations/github-search/tools.js +370 -0
- package/dist/integrations/github-teams/auth.js +53 -0
- package/dist/integrations/github-teams/index.js +11 -0
- package/dist/integrations/github-teams/package.json +27 -0
- package/dist/integrations/github-teams/setup.js +103 -0
- package/dist/integrations/github-teams/tools.js +633 -0
- package/dist/integrations/github-users/auth.js +53 -0
- package/dist/integrations/github-users/index.js +11 -0
- package/dist/integrations/github-users/package.json +27 -0
- package/dist/integrations/github-users/setup.js +103 -0
- package/dist/integrations/github-users/tools.js +1118 -0
- package/dist/integrations/notion/api.js +108 -0
- package/dist/integrations/notion/auth.js +59 -0
- package/dist/integrations/notion/endpoints.json +630 -0
- package/dist/integrations/notion/index.js +11 -0
- package/dist/integrations/notion/package.json +33 -0
- package/dist/integrations/notion/publish-to-adoptai.js +271 -0
- package/dist/integrations/notion/scripts/generate-endpoints.mjs +306 -0
- package/dist/integrations/notion/setup.js +89 -0
- package/dist/integrations/notion/tools.js +586 -0
- package/dist/integrations/notion/tools.original.js +568 -0
- package/dist/integrations/salesforce/.env +8 -0
- package/dist/integrations/salesforce/.env.example +15 -0
- package/dist/integrations/salesforce/auth.js +311 -0
- package/dist/integrations/salesforce/endpoints.json +1359 -0
- package/dist/integrations/salesforce/env.js +9 -0
- package/dist/integrations/salesforce/index.js +12 -0
- package/dist/integrations/salesforce/package.json +42 -0
- package/dist/integrations/salesforce/publish-smart-specs.js +890 -0
- package/dist/integrations/salesforce/publish-to-adoptai.js +386 -0
- package/dist/integrations/salesforce/scripts/extract-postman.mjs +222 -0
- package/dist/integrations/salesforce/setup.js +112 -0
- package/dist/integrations/salesforce/tools.js +4544 -0
- package/dist/integrations/salesforce/tools.original.js +4487 -0
- package/dist/server/mcp-server.js +50 -0
- package/dist/server/tool-loader.js +47 -0
- package/dist/specs/figma-api.json +13621 -0
- package/dist/specs/split/salesforce-auth.json +3931 -0
- package/dist/specs/split/salesforce-bulk-v1.json +1489 -0
- package/dist/specs/split/salesforce-bulk-v2.json +1951 -0
- package/dist/specs/split/salesforce-composite.json +1246 -0
- package/dist/specs/split/salesforce-connect.json +11639 -0
- package/dist/specs/split/salesforce-einstein-prediction-service.json +576 -0
- package/dist/specs/split/salesforce-event-platform.json +2682 -0
- package/dist/specs/split/salesforce-graphql.json +1754 -0
- package/dist/specs/split/salesforce-industries.json +4115 -0
- package/dist/specs/split/salesforce-metadata.json +555 -0
- package/dist/specs/split/salesforce-rest.json +4798 -0
- package/dist/specs/split/salesforce-soap.json +210 -0
- package/dist/specs/split/salesforce-subscription-management.json +1299 -0
- package/dist/specs/split/salesforce-tooling.json +2026 -0
- package/dist/specs/split/salesforce-ui.json +7426 -0
- package/package.json +47 -0
|
@@ -0,0 +1,1246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "67cb9baa-e0da-4986-957e-88d8734647e2",
|
|
4
|
+
"name": "Salesforce Platform APIs - composite",
|
|
5
|
+
"description": "The Salesforce Platform APIs collection contains 250+ requests and example responses for the following APIs:\n\n<table><tbody><tr><td><div>Auth<br>Bulk (v1 & v2)<br>Composite<br>Connect<br>CPQ<br>Einstein Prediction Service<br>Event Platform</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div>GraphQL<br>Loyalty Management<br>Metadata<br>REST<br>Subscription Management<br>Tooling<br>UI</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n**⚠️ Disclaimer:** this collection is not covered by Salesforce support and SLAs.\n\n## Get Started\n\nClick the button below and follow the instructions from the following sections: \n[<img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In Postman\">](https://god.gw.postman.com/run-collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D12721794-67cb9baa-e0da-4986-957e-88d8734647e2%26entityType%3Dcollection%26workspaceId%3D34382471-0c97-40e5-a206-f947271665c4)\n\n### New Salesforce Users\n\nIf you are new to Salesforce, start by obtaining a free [Developer Edition Org](https://developer.salesforce.com/signup) then, follow the rest of the instructions from this documentation.\n\nYou can also watch our [Beginner's Mind YouTube series](https://www.youtube.com/playlist?list=PLgIMQe2PKPSKJ33M6CX-VLvgax7Xptcmz) for a tour of the Salesforce Platform (the last episode focuses on APIs).\n\n### New Postman Users\n\n<table><tbody><tr><td><div><p>If you are new to Postman, complete this Trailhead project to setup the collection: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\">Quick Start: Connect Postman to Salesforce</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/projects/quick-start-connect-postman-to-salesforce/d281185a04fbccaf4f1d37e51a3b0049_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div><p>If you want to learn more about Postman in general, you can also complete this optional Trailhead badge: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\">Postman API Client</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/modules/postman-api-client/c4f5ce5df16040d22df5f1cfb77af5a6_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n### Regular Postman Users\n\nIf you are already familiar with Postman, here are the minimal getting started steps:\n\n1. If using Postman Web UI, follow these [steps to set up CORS](https://github.com/forcedotcom/postman-salesforce-apis/blob/master/install-with-web.md#enable-cors-in-salesforce) in your Salesforce Org. This is not required when working with the Postman Desktop app.\n \n2. Assign the following value to the `clientId` collection variable (this is a temporary step due to a Postman bug):\n\n```\n{{vault:salesforce-consumer-key}}\n```\n \n3. Assign a value to the `url` collection variable based on your Salesforce Org type:\n \n | URL | Org Type |\n | --- | --- |\n | `https://test.salesforce.com` | Sandboxes or Scratch orgs. |\n | `https://login.salesforce.com` | Production, Trailhead Playground and Developer Edition orgs. |\n | Custom My Domain base URL | Org with a custom domain. |\n \n4. Click **Get New Access Token** from the collection's **Authorization** tab.\n \n5. When prompted to do so, log in to your Salesforce org and allow access to \"Salesforce APIs Collection for Postman\".\n \n6. Copy the value of the `instance_url` field from the token details view.\n \n7. Click **Use Token**.\n \n8. Save the value that you copied in the `_endpoint` variable.\n \n9. Click **Save** and you're good to go!\n \n\n## Resources\n\nCheck out [the documentation](https://github.com/forcedotcom/postman-salesforce-apis) for videos and extra information on how to install, update and contribute to the collection.\n\nWe also have an [demo video](https://www.youtube.com/watch?v=W-IwW6RM4F0) on how to setup the collection.\n\n<img src=\"https://i3.ytimg.com/vi/W-IwW6RM4F0/maxresdefault.jpg\" width=\"80%\">\n\nReport issues and ask questions [here](https://github.com/forcedotcom/postman-salesforce-apis/issues).\n\n## Variables Reference\n\nThe collection relies on the following variables:\n\n| Variable | Description |\n| --- | --- |\n| `_endpoint` | Your Salesforce Org's instance URL. |\n| `url` | The URL used for logging in. Either: <br>\\- `https://test.salesforce.com` for sandboxes or Scratch orgs <br>\\- `https://login.salesforce.com` for production, Trailhead Playground and Developer Edition orgs <br>\\- your custom My Domain base URL. |\n| `version` | The Salesforce API version (e.g.: 50.0). |\n| `username` | Your username. |\n| `password` | Your password. |\n| `secretToken` | Your personal [security token](https://help.salesforce.com/articleView?id=user_security_token.htm). |\n| `clientId` | Connected App client Id. |\n| `clientSecret` | Connected App client secret. |\n| `redirectUrl` | Connected App redirect URL for OAuth 2.0. |\n| `initAccessToken` | Initial access token for dynamic Connected App registration. |\n| `site` | Community suffix when connecting with an Experience Cloud user. |\n\nOnly a few of these variables are mandatory. The authentication requests will automatically register and set extra \"private\" variables identified with a `_` prefix (e.g.: `_accessToken`, `_orgId`, `_userId`...).",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
7
|
+
"_exporter_id": "32907289",
|
|
8
|
+
"_collection_link": "https://go.postman.co/collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?source=collection_link"
|
|
9
|
+
},
|
|
10
|
+
"auth": {
|
|
11
|
+
"type": "oauth2",
|
|
12
|
+
"oauth2": [
|
|
13
|
+
{
|
|
14
|
+
"key": "grant_type",
|
|
15
|
+
"value": "implicit",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "scope",
|
|
20
|
+
"value": "api",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "addTokenTo",
|
|
25
|
+
"value": "header",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "client_authentication",
|
|
30
|
+
"value": "body",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "password",
|
|
35
|
+
"value": "{{password}}",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "username",
|
|
40
|
+
"value": "{{username}}",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "challengeAlgorithm",
|
|
45
|
+
"value": "S256",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "clientSecret",
|
|
50
|
+
"value": "{{clientSecret}}",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "clientId",
|
|
55
|
+
"value": "{{clientId}}",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "accessTokenUrl",
|
|
60
|
+
"value": "{{url}}{{site}}/services/oauth2/token",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "authUrl",
|
|
65
|
+
"value": "{{url}}{{site}}/services/oauth2/authorize",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "tokenName",
|
|
70
|
+
"value": "access_token",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "useBrowser",
|
|
75
|
+
"value": true,
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"variable": [
|
|
81
|
+
{
|
|
82
|
+
"key": "url",
|
|
83
|
+
"value": "https://login.salesforce.com"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"key": "version",
|
|
87
|
+
"value": "64.0"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "username",
|
|
91
|
+
"value": ""
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "password",
|
|
95
|
+
"value": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "secretToken",
|
|
99
|
+
"value": ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "clientId",
|
|
103
|
+
"value": "{{vault:salesforce-consumer-key}}"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "clientSecret",
|
|
107
|
+
"value": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "redirectUrl",
|
|
111
|
+
"value": ""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "initAccessToken",
|
|
115
|
+
"value": ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "site",
|
|
119
|
+
"value": ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "_accessToken",
|
|
123
|
+
"value": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"key": "_endpoint",
|
|
127
|
+
"value": ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "_userId",
|
|
131
|
+
"value": ""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "_appId",
|
|
135
|
+
"value": ""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "_consumerId",
|
|
139
|
+
"value": ""
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "_tokenId",
|
|
143
|
+
"value": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "_orgId",
|
|
147
|
+
"value": ""
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "_jobId",
|
|
151
|
+
"value": ""
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"key": "webstoreId",
|
|
155
|
+
"value": ""
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"key": "_deviceCode",
|
|
159
|
+
"value": ""
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"item": [
|
|
163
|
+
{
|
|
164
|
+
"name": "Composite",
|
|
165
|
+
"request": {
|
|
166
|
+
"method": "POST",
|
|
167
|
+
"header": [
|
|
168
|
+
{
|
|
169
|
+
"key": "Content-Type",
|
|
170
|
+
"value": "application/json",
|
|
171
|
+
"type": "text"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"key": "Authorization",
|
|
175
|
+
"value": "{{_accessToken}}",
|
|
176
|
+
"description": "Only used for Postman Notebooks. Auth is defined at collection-level and inherited down.",
|
|
177
|
+
"type": "text"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"body": {
|
|
181
|
+
"mode": "raw",
|
|
182
|
+
"raw": "{\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Account\",\n \"referenceId\": \"refAccount\",\n \"body\": {\n \"Name\": \"Sample Account\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Contact\",\n \"referenceId\": \"refContact\",\n \"body\": {\n \"LastName\": \"Sample Contact\",\n \"AccountId\": \"@{refAccount.id}\"\n }\n }\n ]\n}"
|
|
183
|
+
},
|
|
184
|
+
"url": {
|
|
185
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/",
|
|
186
|
+
"host": [
|
|
187
|
+
"{{_endpoint}}"
|
|
188
|
+
],
|
|
189
|
+
"path": [
|
|
190
|
+
"services",
|
|
191
|
+
"data",
|
|
192
|
+
"v{{version}}",
|
|
193
|
+
"composite",
|
|
194
|
+
""
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"description": "Executes a series of REST API requests in a single call. You can use the output of one request as the input to a subsequent request. The response bodies and HTTP statuses of the requests are returned in a single response body. The entire request counts as a single call toward your API limits.\nThe requests in a composite call are called subrequests. All subrequests are executed in the context of the same user. In a subrequest’s body, you specify a reference ID that maps to the subrequest’s response. You can then refer to the ID in the url or body fields of later subrequests by using a JavaScript-like reference notation.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_composite.htm"
|
|
198
|
+
},
|
|
199
|
+
"response": [
|
|
200
|
+
{
|
|
201
|
+
"name": "Successful Composite",
|
|
202
|
+
"originalRequest": {
|
|
203
|
+
"method": "POST",
|
|
204
|
+
"header": [
|
|
205
|
+
{
|
|
206
|
+
"key": "Content-Type",
|
|
207
|
+
"name": "Content-Type",
|
|
208
|
+
"value": "application/json",
|
|
209
|
+
"type": "text"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"body": {
|
|
213
|
+
"mode": "raw",
|
|
214
|
+
"raw": "{\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v53.0/sobjects/Account\",\n \"referenceId\": \"refAccount\",\n \"body\": {\n \"Name\": \"Sample Account\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v53.0/sobjects/Contact\",\n \"referenceId\": \"refContact\",\n \"body\": {\n \"LastName\": \"Sample Contact\",\n \"AccountId\": \"@{refAccount.id}\"\n }\n }\n ]\n}",
|
|
215
|
+
"options": {
|
|
216
|
+
"raw": {
|
|
217
|
+
"language": "json"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"url": {
|
|
222
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/",
|
|
223
|
+
"host": [
|
|
224
|
+
"{{_endpoint}}"
|
|
225
|
+
],
|
|
226
|
+
"path": [
|
|
227
|
+
"services",
|
|
228
|
+
"data",
|
|
229
|
+
"v{{version}}",
|
|
230
|
+
"composite",
|
|
231
|
+
""
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"status": "OK",
|
|
236
|
+
"code": 200,
|
|
237
|
+
"_postman_previewlanguage": "json",
|
|
238
|
+
"header": [
|
|
239
|
+
{
|
|
240
|
+
"key": "Date",
|
|
241
|
+
"value": "Mon, 20 Nov 2023 15:18:26 GMT"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"key": "Strict-Transport-Security",
|
|
245
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"key": "X-Content-Type-Options",
|
|
249
|
+
"value": "nosniff"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"key": "X-XSS-Protection",
|
|
253
|
+
"value": "1; mode=block"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"key": "X-Robots-Tag",
|
|
257
|
+
"value": "none"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"key": "Cache-Control",
|
|
261
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"key": "Sforce-Limit-Info",
|
|
265
|
+
"value": "api-usage=33/15000"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"key": "Content-Type",
|
|
269
|
+
"value": "application/json;charset=UTF-8"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"key": "Vary",
|
|
273
|
+
"value": "Accept-Encoding"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"key": "Content-Encoding",
|
|
277
|
+
"value": "gzip"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"key": "Transfer-Encoding",
|
|
281
|
+
"value": "chunked"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"cookie": [],
|
|
285
|
+
"body": "{\n \"compositeResponse\": [\n {\n \"body\": {\n \"id\": \"001...\",\n \"success\": true,\n \"errors\": []\n },\n \"httpHeaders\": {\n \"Location\": \"/services/data/v53.0/sobjects/Account/001...\"\n },\n \"httpStatusCode\": 201,\n \"referenceId\": \"refAccount\"\n },\n {\n \"body\": {\n \"id\": \"0032o00003WauzJAAR\",\n \"success\": true,\n \"errors\": []\n },\n \"httpHeaders\": {\n \"Location\": \"/services/data/v53.0/sobjects/Contact/003...\"\n },\n \"httpStatusCode\": 201,\n \"referenceId\": \"refContact\"\n }\n ]\n}"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "Composite Graph",
|
|
291
|
+
"request": {
|
|
292
|
+
"method": "POST",
|
|
293
|
+
"header": [
|
|
294
|
+
{
|
|
295
|
+
"key": "Content-Type",
|
|
296
|
+
"type": "text",
|
|
297
|
+
"value": "application/json"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"body": {
|
|
301
|
+
"mode": "raw",
|
|
302
|
+
"raw": "{\n \"graphs\": [\n {\n \"graphId\": \"graph1\",\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Account/\",\n \"referenceId\": \"newAccount\",\n \"body\": {\n \"Name\": \"ACME Inc.\",\n \"Custom__c\": \"Hello world\"\n }\n },\n {\n \"method\": \"GET\",\n \"url\": \"/services/data/v{{version}}/sobjects/Account/@{newAccount.id}\",\n \"referenceId\": \"newAccountInfo\"\n }\n ]\n }\n ]\n}"
|
|
303
|
+
},
|
|
304
|
+
"url": {
|
|
305
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/graph",
|
|
306
|
+
"host": [
|
|
307
|
+
"{{_endpoint}}"
|
|
308
|
+
],
|
|
309
|
+
"path": [
|
|
310
|
+
"services",
|
|
311
|
+
"data",
|
|
312
|
+
"v{{version}}",
|
|
313
|
+
"composite",
|
|
314
|
+
"graph"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"description": "Composite graphs provide an enhanced way to perform composite requests, which execute a series of REST API requests in a single call.\nRegular composite requests allow you to execute a series of REST API requests in a single call. And you can use the output of one request as the input to a subsequent request.\n\nComposite graphs extend this by allowing you to assemble a more complicated and complete series of related objects and records.\n\nComposite graphs also enable you to ensure that the steps in a given set of operations are either all completed or all not completed. This avoids requiring you to check for a mix of successful and unsuccessful results.\n\nRegular composite requests have a limit of 25 subrequests. Composite graphs increase this limit to 500. This gives a single API call much greater power.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_graph_introduction.htm"
|
|
318
|
+
},
|
|
319
|
+
"response": [
|
|
320
|
+
{
|
|
321
|
+
"name": "Successful Composite Graph",
|
|
322
|
+
"originalRequest": {
|
|
323
|
+
"method": "POST",
|
|
324
|
+
"header": [
|
|
325
|
+
{
|
|
326
|
+
"key": "Content-Type",
|
|
327
|
+
"value": "application/json"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"body": {
|
|
331
|
+
"mode": "raw",
|
|
332
|
+
"raw": "{\n \"graphs\": [\n {\n \"graphId\": \"graph1\",\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Account/\",\n \"referenceId\": \"newAccount\",\n \"body\": {\n \"Name\": \"ACME Inc.\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Contact/\",\n \"referenceId\": \"newContact\",\n \"body\": {\n \"FirstName\": \"John\",\n \"LastName\": \"Doe\",\n \"AccountId\": \"@{newAccount.id}\"\n }\n }\n ]\n }\n ]\n}",
|
|
333
|
+
"options": {
|
|
334
|
+
"raw": {
|
|
335
|
+
"language": "json"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"url": {
|
|
340
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/graph",
|
|
341
|
+
"host": [
|
|
342
|
+
"{{_endpoint}}"
|
|
343
|
+
],
|
|
344
|
+
"path": [
|
|
345
|
+
"services",
|
|
346
|
+
"data",
|
|
347
|
+
"v{{version}}",
|
|
348
|
+
"composite",
|
|
349
|
+
"graph"
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"status": "OK",
|
|
354
|
+
"code": 200,
|
|
355
|
+
"_postman_previewlanguage": "json",
|
|
356
|
+
"header": [
|
|
357
|
+
{
|
|
358
|
+
"key": "cache-control",
|
|
359
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"key": "content-type",
|
|
363
|
+
"value": "application/json;charset=UTF-8"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"cookie": [],
|
|
367
|
+
"body": "{\n \"graphs\": [\n {\n \"graphId\": \"graph1\",\n \"graphResponse\": {\n \"compositeResponse\": [\n {\n \"body\": {\n \"id\": \"0014H00002x6HUhQAM\",\n \"success\": true,\n \"errors\": []\n },\n \"httpHeaders\": {\n \"Location\": \"/services/data/v50.0/sobjects/Account/0014H00002x6HUhQAM\"\n },\n \"httpStatusCode\": 201,\n \"referenceId\": \"newAccount\"\n },\n {\n \"body\": {\n \"id\": \"0034H00002JsInQQAV\",\n \"success\": true,\n \"errors\": []\n },\n \"httpHeaders\": {\n \"Location\": \"/services/data/v50.0/sobjects/Contact/0034H00002JsInQQAV\"\n },\n \"httpStatusCode\": 201,\n \"referenceId\": \"newContact\"\n }\n ]\n },\n \"isSuccessful\": true\n }\n ]\n}"
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "Composite Batch",
|
|
373
|
+
"request": {
|
|
374
|
+
"method": "POST",
|
|
375
|
+
"header": [
|
|
376
|
+
{
|
|
377
|
+
"key": "Content-Type",
|
|
378
|
+
"type": "text",
|
|
379
|
+
"value": "application/json"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"body": {
|
|
383
|
+
"mode": "raw",
|
|
384
|
+
"raw": "{\n \"haltOnError\": true,\n \"batchRequests\": [\n {\n \"method\": \"GET\",\n \"url\": \"v{{version}}/query/?q=SELECT+Id,+Name+FROM+Account LIMIT 2\"\n },\n {\n \"method\": \"GET\",\n \"url\": \"v{{version}}/query/?q=SELECT+Id,+Name+FROM+Opportunity LIMIT 2\"\n }\n ]\n}"
|
|
385
|
+
},
|
|
386
|
+
"url": {
|
|
387
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/batch",
|
|
388
|
+
"host": [
|
|
389
|
+
"{{_endpoint}}"
|
|
390
|
+
],
|
|
391
|
+
"path": [
|
|
392
|
+
"services",
|
|
393
|
+
"data",
|
|
394
|
+
"v{{version}}",
|
|
395
|
+
"composite",
|
|
396
|
+
"batch"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"description": "Executes up to 25 subrequests in a single request. The response bodies and HTTP statuses of the subrequests in the batch are returned in a single response body. Each subrequest counts against rate limits.\nThe requests in a batch are called subrequests. All subrequests are executed in the context of the same user. Subrequests are independent, and you can’t pass information between them. Subrequests execute serially in their order in the request body. When a subrequest executes successfully, it commits its data. Commits are reflected in the output of later subrequests. If a subrequest fails, commits made by previous subrequests are not rolled back. If a batch request doesn’t complete within 10 minutes, the batch times out and the remaining subrequests aren’t executed.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_batch.htm"
|
|
400
|
+
},
|
|
401
|
+
"response": [
|
|
402
|
+
{
|
|
403
|
+
"name": "Successful Composite Batch",
|
|
404
|
+
"originalRequest": {
|
|
405
|
+
"method": "POST",
|
|
406
|
+
"header": [
|
|
407
|
+
{
|
|
408
|
+
"key": "Content-Type",
|
|
409
|
+
"value": "application/json"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"body": {
|
|
413
|
+
"mode": "raw",
|
|
414
|
+
"raw": "{\n \"haltOnError\": true,\n \"batchRequests\": [\n {\n \"method\": \"GET\",\n \"url\": \"v{{version}}/query/?q=SELECT+Id,+Name+FROM+Account LIMIT 2\"\n },\n {\n \"method\": \"GET\",\n \"url\": \"v{{version}}/query/?q=SELECT+Id,+Name+FROM+Opportunity LIMIT 2\"\n }\n ]\n}"
|
|
415
|
+
},
|
|
416
|
+
"url": {
|
|
417
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/batch",
|
|
418
|
+
"host": [
|
|
419
|
+
"{{_endpoint}}"
|
|
420
|
+
],
|
|
421
|
+
"path": [
|
|
422
|
+
"services",
|
|
423
|
+
"data",
|
|
424
|
+
"v{{version}}",
|
|
425
|
+
"composite",
|
|
426
|
+
"batch"
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"status": "OK",
|
|
431
|
+
"code": 200,
|
|
432
|
+
"_postman_previewlanguage": "json",
|
|
433
|
+
"header": [
|
|
434
|
+
{
|
|
435
|
+
"key": "Date",
|
|
436
|
+
"value": "Mon, 20 Nov 2023 15:19:46 GMT"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"key": "Strict-Transport-Security",
|
|
440
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"key": "X-Content-Type-Options",
|
|
444
|
+
"value": "nosniff"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"key": "X-XSS-Protection",
|
|
448
|
+
"value": "1; mode=block"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"key": "X-Robots-Tag",
|
|
452
|
+
"value": "none"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"key": "Cache-Control",
|
|
456
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"key": "Sforce-Limit-Info",
|
|
460
|
+
"value": "api-usage=34/15000"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"key": "Content-Type",
|
|
464
|
+
"value": "application/json;charset=UTF-8"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"key": "Vary",
|
|
468
|
+
"value": "Accept-Encoding"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"key": "Content-Encoding",
|
|
472
|
+
"value": "gzip"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"key": "Transfer-Encoding",
|
|
476
|
+
"value": "chunked"
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
"cookie": [],
|
|
480
|
+
"body": "{\n \"hasErrors\": false,\n \"results\": [\n {\n \"statusCode\": 200,\n \"result\": {\n \"totalSize\": 2,\n \"done\": true,\n \"records\": [\n {\n \"attributes\": {\n \"type\": \"Account\",\n \"url\": \"/services/data/v58.0/sobjects/Account/001...\"\n },\n \"Id\": \"001...\",\n \"Name\": \"Sample Account\"\n },\n ...\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"result\": {\n \"totalSize\": 2,\n \"done\": true,\n \"records\": [\n {\n \"attributes\": {\n \"type\": \"Opportunity\",\n \"url\": \"/services/data/v58.0/sobjects/Opportunity/006...\"\n },\n \"Id\": \"006...\",\n \"Name\": \"Edge Emergency Generator\"\n },\n ...\n ]\n }\n }\n ]\n}"
|
|
481
|
+
}
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "SObject Tree",
|
|
486
|
+
"request": {
|
|
487
|
+
"method": "POST",
|
|
488
|
+
"header": [
|
|
489
|
+
{
|
|
490
|
+
"key": "Content-Type",
|
|
491
|
+
"type": "text",
|
|
492
|
+
"value": "application/json"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"body": {
|
|
496
|
+
"mode": "raw",
|
|
497
|
+
"raw": "{\n\"records\" :[{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref1\"},\n \"name\" : \"SampleAccount1\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"100\",\n \"industry\" : \"Banking\",\n \"Contacts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref2\"},\n \"lastname\" : \"Smith\",\n \"Title\" : \"President\",\n \"email\" : \"sample@salesforce.com\"\n },{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref3\"},\n \"lastname\" : \"Evans\",\n \"title\" : \"Vice President\",\n \"email\" : \"sample@salesforce.com\"\n }]\n }\n },{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref4\"},\n \"name\" : \"SampleAccount2\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"52000\",\n \"industry\" : \"Banking\",\n \"childAccounts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref5\"},\n \"name\" : \"SampleChildAccount1\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"100\",\n \"industry\" : \"Banking\"\n }]\n },\n \"Contacts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref6\"},\n \"lastname\" : \"Jones\",\n \"title\" : \"President\",\n \"email\" : \"sample@salesforce.com\"\n }]\n }\n }]\n}"
|
|
498
|
+
},
|
|
499
|
+
"url": {
|
|
500
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/tree/:SOBJECT_API_NAME",
|
|
501
|
+
"host": [
|
|
502
|
+
"{{_endpoint}}"
|
|
503
|
+
],
|
|
504
|
+
"path": [
|
|
505
|
+
"services",
|
|
506
|
+
"data",
|
|
507
|
+
"v{{version}}",
|
|
508
|
+
"composite",
|
|
509
|
+
"tree",
|
|
510
|
+
":SOBJECT_API_NAME"
|
|
511
|
+
],
|
|
512
|
+
"variable": [
|
|
513
|
+
{
|
|
514
|
+
"key": "SOBJECT_API_NAME",
|
|
515
|
+
"value": "Account"
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"description": "Creates one or more sObject trees with root records of the specified type. An sObject tree is a collection of nested, parent-child records with a single root record.\nIn the request data, you supply the record hierarchies, required and optional field values, each record’s type, and a reference ID for each record. Upon success, the response contains the IDs of the created records. If an error occurs while creating a record, the entire request fails. In this case, the response contains only the reference ID of the record that caused the error and the error information.\n\nThe request can contain the following:\nUp to a total of 200 records across all trees\nUp to five records of different types\nSObject trees up to five levels deep\nBecause an sObject tree can contain a single record, you can use this resource to create up to 200 unrelated records of the same type.\n\nWhen the request is processed and records are created, triggers, processes, and workflow rules fire separately for each of the following groups of records.\nRoot records across all sObject trees in the request\nAll second-level records of the same type—for example, second-level Contacts across all sObject trees in the request\nAll third-level records of the same type\nAll fourth-level records of the same type\nAll fifth-level records of the same type\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm"
|
|
520
|
+
},
|
|
521
|
+
"response": [
|
|
522
|
+
{
|
|
523
|
+
"name": "Successful SObject Tree",
|
|
524
|
+
"originalRequest": {
|
|
525
|
+
"method": "POST",
|
|
526
|
+
"header": [
|
|
527
|
+
{
|
|
528
|
+
"key": "Content-Type",
|
|
529
|
+
"value": "application/json"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"body": {
|
|
533
|
+
"mode": "raw",
|
|
534
|
+
"raw": "{\n\"records\" :[{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref1\"},\n \"name\" : \"SampleAccount1\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"100\",\n \"industry\" : \"Banking\",\n \"Contacts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref2\"},\n \"lastname\" : \"Smith\",\n \"Title\" : \"President\",\n \"email\" : \"sample@salesforce.com\"\n },{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref3\"},\n \"lastname\" : \"Evans\",\n \"title\" : \"Vice President\",\n \"email\" : \"sample@salesforce.com\"\n }]\n }\n },{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref4\"},\n \"name\" : \"SampleAccount2\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"52000\",\n \"industry\" : \"Banking\",\n \"childAccounts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\", \"referenceId\" : \"ref5\"},\n \"name\" : \"SampleChildAccount1\",\n \"phone\" : \"1234567890\",\n \"website\" : \"www.salesforce.com\",\n \"numberOfEmployees\" : \"100\",\n \"industry\" : \"Banking\"\n }]\n },\n \"Contacts\" : {\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Contact\", \"referenceId\" : \"ref6\"},\n \"lastname\" : \"Jones\",\n \"title\" : \"President\",\n \"email\" : \"sample@salesforce.com\"\n }]\n }\n }]\n}"
|
|
535
|
+
},
|
|
536
|
+
"url": {
|
|
537
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/tree/:SOBJECT_API_NAME",
|
|
538
|
+
"host": [
|
|
539
|
+
"{{_endpoint}}"
|
|
540
|
+
],
|
|
541
|
+
"path": [
|
|
542
|
+
"services",
|
|
543
|
+
"data",
|
|
544
|
+
"v{{version}}",
|
|
545
|
+
"composite",
|
|
546
|
+
"tree",
|
|
547
|
+
":SOBJECT_API_NAME"
|
|
548
|
+
],
|
|
549
|
+
"variable": [
|
|
550
|
+
{
|
|
551
|
+
"key": "SOBJECT_API_NAME",
|
|
552
|
+
"value": "Account"
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"status": "Created",
|
|
558
|
+
"code": 201,
|
|
559
|
+
"_postman_previewlanguage": "json",
|
|
560
|
+
"header": [
|
|
561
|
+
{
|
|
562
|
+
"key": "Date",
|
|
563
|
+
"value": "Mon, 20 Nov 2023 15:23:41 GMT"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"key": "Strict-Transport-Security",
|
|
567
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"key": "X-Content-Type-Options",
|
|
571
|
+
"value": "nosniff"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"key": "X-XSS-Protection",
|
|
575
|
+
"value": "1; mode=block"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"key": "X-Robots-Tag",
|
|
579
|
+
"value": "none"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"key": "Cache-Control",
|
|
583
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"key": "Sforce-Limit-Info",
|
|
587
|
+
"value": "api-usage=41/15000"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"key": "Content-Type",
|
|
591
|
+
"value": "application/json;charset=UTF-8"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"key": "Vary",
|
|
595
|
+
"value": "Accept-Encoding"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"key": "Content-Encoding",
|
|
599
|
+
"value": "gzip"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"key": "Transfer-Encoding",
|
|
603
|
+
"value": "chunked"
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"cookie": [],
|
|
607
|
+
"body": "{\n \"hasErrors\": false,\n \"results\": [\n {\n \"referenceId\": \"ref1\",\n \"id\": \"001...\"\n },\n {\n \"referenceId\": \"ref4\",\n \"id\": \"001...\"\n },\n {\n \"referenceId\": \"ref2\",\n \"id\": \"003..\"\n },\n {\n \"referenceId\": \"ref3\",\n \"id\": \"003...\"\n },\n {\n \"referenceId\": \"ref5\",\n \"id\": \"001...\"\n },\n {\n \"referenceId\": \"ref6\",\n \"id\": \"003...\"\n }\n ]\n}"
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "SObject Collections Create",
|
|
613
|
+
"request": {
|
|
614
|
+
"method": "POST",
|
|
615
|
+
"header": [
|
|
616
|
+
{
|
|
617
|
+
"key": "Content-Type",
|
|
618
|
+
"type": "text",
|
|
619
|
+
"value": "application/json"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"body": {
|
|
623
|
+
"mode": "raw",
|
|
624
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"Name\" : \"example.com\",\n \"BillingCity\" : \"San Francisco\"\n }, {\n \"attributes\" : {\"type\" : \"Contact\"},\n \"LastName\" : \"Johnson\",\n \"FirstName\" : \"Erica\"\n }]\n}"
|
|
625
|
+
},
|
|
626
|
+
"url": {
|
|
627
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects",
|
|
628
|
+
"host": [
|
|
629
|
+
"{{_endpoint}}"
|
|
630
|
+
],
|
|
631
|
+
"path": [
|
|
632
|
+
"services",
|
|
633
|
+
"data",
|
|
634
|
+
"v{{version}}",
|
|
635
|
+
"composite",
|
|
636
|
+
"sobjects"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"description": "Executes actions on multiple records in one request. Use SObject Collections to reduce the number of round-trips between the client and server. This resource is available in API version 42.0 and later.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm"
|
|
640
|
+
},
|
|
641
|
+
"response": [
|
|
642
|
+
{
|
|
643
|
+
"name": "Successful SObject Collections Create",
|
|
644
|
+
"originalRequest": {
|
|
645
|
+
"method": "POST",
|
|
646
|
+
"header": [
|
|
647
|
+
{
|
|
648
|
+
"key": "Content-Type",
|
|
649
|
+
"value": "application/json"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"body": {
|
|
653
|
+
"mode": "raw",
|
|
654
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"Name\" : \"example.com\",\n \"BillingCity\" : \"San Francisco\"\n }, {\n \"attributes\" : {\"type\" : \"Contact\"},\n \"LastName\" : \"Johnson\",\n \"FirstName\" : \"Erica\"\n }]\n}"
|
|
655
|
+
},
|
|
656
|
+
"url": {
|
|
657
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects",
|
|
658
|
+
"host": [
|
|
659
|
+
"{{_endpoint}}"
|
|
660
|
+
],
|
|
661
|
+
"path": [
|
|
662
|
+
"services",
|
|
663
|
+
"data",
|
|
664
|
+
"v{{version}}",
|
|
665
|
+
"composite",
|
|
666
|
+
"sobjects"
|
|
667
|
+
]
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"status": "OK",
|
|
671
|
+
"code": 200,
|
|
672
|
+
"_postman_previewlanguage": "json",
|
|
673
|
+
"header": [
|
|
674
|
+
{
|
|
675
|
+
"key": "Date",
|
|
676
|
+
"value": "Mon, 20 Nov 2023 15:25:46 GMT"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"key": "Strict-Transport-Security",
|
|
680
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"key": "X-Content-Type-Options",
|
|
684
|
+
"value": "nosniff"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"key": "X-XSS-Protection",
|
|
688
|
+
"value": "1; mode=block"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"key": "X-Robots-Tag",
|
|
692
|
+
"value": "none"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"key": "Cache-Control",
|
|
696
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"key": "Sforce-Limit-Info",
|
|
700
|
+
"value": "api-usage=44/15000"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"key": "Content-Type",
|
|
704
|
+
"value": "application/json;charset=UTF-8"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"key": "Vary",
|
|
708
|
+
"value": "Accept-Encoding"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"key": "Content-Encoding",
|
|
712
|
+
"value": "gzip"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"key": "Transfer-Encoding",
|
|
716
|
+
"value": "chunked"
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"cookie": [],
|
|
720
|
+
"body": "[\n {\n \"id\": \"001...\",\n \"success\": true,\n \"errors\": []\n },\n {\n \"id\": \"003...\",\n \"success\": true,\n \"errors\": []\n }\n]"
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "SObject Collections Retrieve",
|
|
726
|
+
"protocolProfileBehavior": {
|
|
727
|
+
"disableBodyPruning": true
|
|
728
|
+
},
|
|
729
|
+
"request": {
|
|
730
|
+
"method": "GET",
|
|
731
|
+
"header": [
|
|
732
|
+
{
|
|
733
|
+
"key": "Content-Type",
|
|
734
|
+
"type": "text",
|
|
735
|
+
"value": "application/json"
|
|
736
|
+
}
|
|
737
|
+
],
|
|
738
|
+
"body": {
|
|
739
|
+
"mode": "raw",
|
|
740
|
+
"raw": ""
|
|
741
|
+
},
|
|
742
|
+
"url": {
|
|
743
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects/:SOBJECT_API_NAME?ids=&fields=",
|
|
744
|
+
"host": [
|
|
745
|
+
"{{_endpoint}}"
|
|
746
|
+
],
|
|
747
|
+
"path": [
|
|
748
|
+
"services",
|
|
749
|
+
"data",
|
|
750
|
+
"v{{version}}",
|
|
751
|
+
"composite",
|
|
752
|
+
"sobjects",
|
|
753
|
+
":SOBJECT_API_NAME"
|
|
754
|
+
],
|
|
755
|
+
"query": [
|
|
756
|
+
{
|
|
757
|
+
"key": "ids",
|
|
758
|
+
"value": ""
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"key": "fields",
|
|
762
|
+
"value": ""
|
|
763
|
+
}
|
|
764
|
+
],
|
|
765
|
+
"variable": [
|
|
766
|
+
{
|
|
767
|
+
"key": "SOBJECT_API_NAME",
|
|
768
|
+
"value": ""
|
|
769
|
+
}
|
|
770
|
+
]
|
|
771
|
+
},
|
|
772
|
+
"description": "Executes actions on multiple records in one request. Use SObject Collections to reduce the number of round-trips between the client and server. This resource is available in API version 42.0 and later.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm"
|
|
773
|
+
},
|
|
774
|
+
"response": [
|
|
775
|
+
{
|
|
776
|
+
"name": "Successful SObject Collections Retrieve",
|
|
777
|
+
"originalRequest": {
|
|
778
|
+
"method": "GET",
|
|
779
|
+
"header": [
|
|
780
|
+
{
|
|
781
|
+
"key": "Content-Type",
|
|
782
|
+
"value": "application/json"
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"body": {
|
|
786
|
+
"mode": "raw",
|
|
787
|
+
"raw": ""
|
|
788
|
+
},
|
|
789
|
+
"url": {
|
|
790
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects/:SOBJECT_API_NAME?ids=0012o00003OBzVSAA1&fields=Name",
|
|
791
|
+
"host": [
|
|
792
|
+
"{{_endpoint}}"
|
|
793
|
+
],
|
|
794
|
+
"path": [
|
|
795
|
+
"services",
|
|
796
|
+
"data",
|
|
797
|
+
"v{{version}}",
|
|
798
|
+
"composite",
|
|
799
|
+
"sobjects",
|
|
800
|
+
":SOBJECT_API_NAME"
|
|
801
|
+
],
|
|
802
|
+
"query": [
|
|
803
|
+
{
|
|
804
|
+
"key": "ids",
|
|
805
|
+
"value": "0012o00003OBzVSAA1"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"key": "fields",
|
|
809
|
+
"value": "Name"
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"variable": [
|
|
813
|
+
{
|
|
814
|
+
"key": "SOBJECT_API_NAME",
|
|
815
|
+
"value": "Account"
|
|
816
|
+
}
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
"status": "OK",
|
|
821
|
+
"code": 200,
|
|
822
|
+
"_postman_previewlanguage": "json",
|
|
823
|
+
"header": [
|
|
824
|
+
{
|
|
825
|
+
"key": "Date",
|
|
826
|
+
"value": "Mon, 20 Nov 2023 15:27:03 GMT"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"key": "Strict-Transport-Security",
|
|
830
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"key": "X-Content-Type-Options",
|
|
834
|
+
"value": "nosniff"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"key": "X-XSS-Protection",
|
|
838
|
+
"value": "1; mode=block"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"key": "X-Robots-Tag",
|
|
842
|
+
"value": "none"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"key": "Cache-Control",
|
|
846
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"key": "Sforce-Limit-Info",
|
|
850
|
+
"value": "api-usage=44/15000"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"key": "Content-Type",
|
|
854
|
+
"value": "application/json;charset=UTF-8"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"key": "Vary",
|
|
858
|
+
"value": "Accept-Encoding"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"key": "Content-Encoding",
|
|
862
|
+
"value": "gzip"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"key": "Transfer-Encoding",
|
|
866
|
+
"value": "chunked"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"cookie": [],
|
|
870
|
+
"body": "[\n {\n \"attributes\": {\n \"type\": \"Account\",\n \"url\": \"/services/data/v58.0/sobjects/Account/001...\"\n },\n \"Name\": \"Sample Account\",\n \"Id\": \"001...\"\n }\n]"
|
|
871
|
+
}
|
|
872
|
+
]
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "SObject Collections Update",
|
|
876
|
+
"request": {
|
|
877
|
+
"method": "PATCH",
|
|
878
|
+
"header": [
|
|
879
|
+
{
|
|
880
|
+
"key": "Content-Type",
|
|
881
|
+
"type": "text",
|
|
882
|
+
"value": "application/json"
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
"body": {
|
|
886
|
+
"mode": "raw",
|
|
887
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"id\" : \"<account-id>\",\n \"NumberOfEmployees\" : 27000\n }]\n}"
|
|
888
|
+
},
|
|
889
|
+
"url": {
|
|
890
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects",
|
|
891
|
+
"host": [
|
|
892
|
+
"{{_endpoint}}"
|
|
893
|
+
],
|
|
894
|
+
"path": [
|
|
895
|
+
"services",
|
|
896
|
+
"data",
|
|
897
|
+
"v{{version}}",
|
|
898
|
+
"composite",
|
|
899
|
+
"sobjects"
|
|
900
|
+
],
|
|
901
|
+
"variable": [
|
|
902
|
+
{
|
|
903
|
+
"key": "SOBJECT_API_NAME",
|
|
904
|
+
"value": ""
|
|
905
|
+
}
|
|
906
|
+
]
|
|
907
|
+
},
|
|
908
|
+
"description": "Executes actions on multiple records in one request. Use SObject Collections to reduce the number of round-trips between the client and server. This resource is available in API version 42.0 and later.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm"
|
|
909
|
+
},
|
|
910
|
+
"response": [
|
|
911
|
+
{
|
|
912
|
+
"name": "SObject Collections Update",
|
|
913
|
+
"originalRequest": {
|
|
914
|
+
"method": "PATCH",
|
|
915
|
+
"header": [
|
|
916
|
+
{
|
|
917
|
+
"key": "Content-Type",
|
|
918
|
+
"value": "application/json"
|
|
919
|
+
}
|
|
920
|
+
],
|
|
921
|
+
"body": {
|
|
922
|
+
"mode": "raw",
|
|
923
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"id\" : \"0012o00003OBzVSAA1\",\n \"NumberOfEmployees\" : 27000\n }]\n}"
|
|
924
|
+
},
|
|
925
|
+
"url": {
|
|
926
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects",
|
|
927
|
+
"host": [
|
|
928
|
+
"{{_endpoint}}"
|
|
929
|
+
],
|
|
930
|
+
"path": [
|
|
931
|
+
"services",
|
|
932
|
+
"data",
|
|
933
|
+
"v{{version}}",
|
|
934
|
+
"composite",
|
|
935
|
+
"sobjects"
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"status": "OK",
|
|
940
|
+
"code": 200,
|
|
941
|
+
"_postman_previewlanguage": "json",
|
|
942
|
+
"header": [
|
|
943
|
+
{
|
|
944
|
+
"key": "Date",
|
|
945
|
+
"value": "Mon, 20 Nov 2023 15:28:31 GMT"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"key": "Strict-Transport-Security",
|
|
949
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"key": "X-Content-Type-Options",
|
|
953
|
+
"value": "nosniff"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"key": "X-XSS-Protection",
|
|
957
|
+
"value": "1; mode=block"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"key": "X-Robots-Tag",
|
|
961
|
+
"value": "none"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"key": "Cache-Control",
|
|
965
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"key": "Sforce-Limit-Info",
|
|
969
|
+
"value": "api-usage=46/15000"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"key": "Content-Type",
|
|
973
|
+
"value": "application/json;charset=UTF-8"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"key": "Transfer-Encoding",
|
|
977
|
+
"value": "chunked"
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"cookie": [],
|
|
981
|
+
"body": "[\n {\n \"id\": \"001...\",\n \"success\": true,\n \"errors\": []\n }\n]"
|
|
982
|
+
}
|
|
983
|
+
]
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "SObject Collections Upsert",
|
|
987
|
+
"request": {
|
|
988
|
+
"method": "PATCH",
|
|
989
|
+
"header": [
|
|
990
|
+
{
|
|
991
|
+
"key": "Content-Type",
|
|
992
|
+
"type": "text",
|
|
993
|
+
"value": "application/json"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"body": {
|
|
997
|
+
"mode": "raw",
|
|
998
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"Name\" : \"Test Upsert\",\n \"Id\" : \"0012o00003OBzVSAA1\"\n }]\n}\n\n\n"
|
|
999
|
+
},
|
|
1000
|
+
"url": {
|
|
1001
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects/:SOBJECT_API_NAME/:FIELD_NAME",
|
|
1002
|
+
"host": [
|
|
1003
|
+
"{{_endpoint}}"
|
|
1004
|
+
],
|
|
1005
|
+
"path": [
|
|
1006
|
+
"services",
|
|
1007
|
+
"data",
|
|
1008
|
+
"v{{version}}",
|
|
1009
|
+
"composite",
|
|
1010
|
+
"sobjects",
|
|
1011
|
+
":SOBJECT_API_NAME",
|
|
1012
|
+
":FIELD_NAME"
|
|
1013
|
+
],
|
|
1014
|
+
"variable": [
|
|
1015
|
+
{
|
|
1016
|
+
"key": "SOBJECT_API_NAME",
|
|
1017
|
+
"value": "Account"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"key": "FIELD_NAME",
|
|
1021
|
+
"value": "Id"
|
|
1022
|
+
}
|
|
1023
|
+
]
|
|
1024
|
+
},
|
|
1025
|
+
"description": "Use a PATCH request with sObject Collections to either create or update (upsert) up to 200 records based on an external ID field. This method returns a list of UpsertResult objects. You can choose whether to roll back the entire request when an error occurs. This request is available in API version 46 and later.\n\n[https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_upsert.htm](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_upsert.htm)"
|
|
1026
|
+
},
|
|
1027
|
+
"response": [
|
|
1028
|
+
{
|
|
1029
|
+
"name": "Successful SObject Collections Upsert",
|
|
1030
|
+
"originalRequest": {
|
|
1031
|
+
"method": "PATCH",
|
|
1032
|
+
"header": [
|
|
1033
|
+
{
|
|
1034
|
+
"key": "Content-Type",
|
|
1035
|
+
"value": "application/json"
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
"body": {
|
|
1039
|
+
"mode": "raw",
|
|
1040
|
+
"raw": "{\n \"allOrNone\" : false,\n \"records\" : [{\n \"attributes\" : {\"type\" : \"Account\"},\n \"Name\" : \"Test Upsert\",\n \"Id\" : \"0012o00003OBzVSAA1\"\n }]\n}\n\n\n"
|
|
1041
|
+
},
|
|
1042
|
+
"url": {
|
|
1043
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects/:SOBJECT_API_NAME/:FIELD_NAME",
|
|
1044
|
+
"host": [
|
|
1045
|
+
"{{_endpoint}}"
|
|
1046
|
+
],
|
|
1047
|
+
"path": [
|
|
1048
|
+
"services",
|
|
1049
|
+
"data",
|
|
1050
|
+
"v{{version}}",
|
|
1051
|
+
"composite",
|
|
1052
|
+
"sobjects",
|
|
1053
|
+
":SOBJECT_API_NAME",
|
|
1054
|
+
":FIELD_NAME"
|
|
1055
|
+
],
|
|
1056
|
+
"variable": [
|
|
1057
|
+
{
|
|
1058
|
+
"key": "SOBJECT_API_NAME",
|
|
1059
|
+
"value": "Account"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"key": "FIELD_NAME",
|
|
1063
|
+
"value": "Id"
|
|
1064
|
+
}
|
|
1065
|
+
]
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
"status": "OK",
|
|
1069
|
+
"code": 200,
|
|
1070
|
+
"_postman_previewlanguage": "json",
|
|
1071
|
+
"header": [
|
|
1072
|
+
{
|
|
1073
|
+
"key": "Date",
|
|
1074
|
+
"value": "Mon, 20 Nov 2023 15:29:54 GMT"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"key": "Strict-Transport-Security",
|
|
1078
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"key": "X-Content-Type-Options",
|
|
1082
|
+
"value": "nosniff"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"key": "X-XSS-Protection",
|
|
1086
|
+
"value": "1; mode=block"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"key": "X-Robots-Tag",
|
|
1090
|
+
"value": "none"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"key": "Cache-Control",
|
|
1094
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"key": "Sforce-Limit-Info",
|
|
1098
|
+
"value": "api-usage=48/15000"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"key": "Content-Type",
|
|
1102
|
+
"value": "application/json;charset=UTF-8"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"key": "Transfer-Encoding",
|
|
1106
|
+
"value": "chunked"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
"cookie": [],
|
|
1110
|
+
"body": "[\n {\n \"id\": \"001...\",\n \"success\": true,\n \"errors\": [],\n \"created\": false\n }\n]"
|
|
1111
|
+
}
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "SObject Collections Delete",
|
|
1116
|
+
"request": {
|
|
1117
|
+
"method": "DELETE",
|
|
1118
|
+
"header": [
|
|
1119
|
+
{
|
|
1120
|
+
"key": "Content-Type",
|
|
1121
|
+
"type": "text",
|
|
1122
|
+
"value": "application/json"
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
"body": {
|
|
1126
|
+
"mode": "raw",
|
|
1127
|
+
"raw": ""
|
|
1128
|
+
},
|
|
1129
|
+
"url": {
|
|
1130
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects?ids=0012o00003OBzVSAA1&allOrNone=true",
|
|
1131
|
+
"host": [
|
|
1132
|
+
"{{_endpoint}}"
|
|
1133
|
+
],
|
|
1134
|
+
"path": [
|
|
1135
|
+
"services",
|
|
1136
|
+
"data",
|
|
1137
|
+
"v{{version}}",
|
|
1138
|
+
"composite",
|
|
1139
|
+
"sobjects"
|
|
1140
|
+
],
|
|
1141
|
+
"query": [
|
|
1142
|
+
{
|
|
1143
|
+
"key": "ids",
|
|
1144
|
+
"value": "0012o00003OBzVSAA1"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"key": "allOrNone",
|
|
1148
|
+
"value": "true"
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"variable": [
|
|
1152
|
+
{
|
|
1153
|
+
"key": "SOBJECT_API_NAME",
|
|
1154
|
+
"value": ""
|
|
1155
|
+
}
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
"description": "Executes actions on multiple records in one request. Use SObject Collections to reduce the number of round-trips between the client and server. This resource is available in API version 42.0 and later.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm"
|
|
1159
|
+
},
|
|
1160
|
+
"response": [
|
|
1161
|
+
{
|
|
1162
|
+
"name": "Successful SObject Collections Delete",
|
|
1163
|
+
"originalRequest": {
|
|
1164
|
+
"method": "DELETE",
|
|
1165
|
+
"header": [
|
|
1166
|
+
{
|
|
1167
|
+
"key": "Content-Type",
|
|
1168
|
+
"value": "application/json"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"body": {
|
|
1172
|
+
"mode": "raw",
|
|
1173
|
+
"raw": ""
|
|
1174
|
+
},
|
|
1175
|
+
"url": {
|
|
1176
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite/sobjects?ids=0012o00003OBzVSAA1&allOrNone=true",
|
|
1177
|
+
"host": [
|
|
1178
|
+
"{{_endpoint}}"
|
|
1179
|
+
],
|
|
1180
|
+
"path": [
|
|
1181
|
+
"services",
|
|
1182
|
+
"data",
|
|
1183
|
+
"v{{version}}",
|
|
1184
|
+
"composite",
|
|
1185
|
+
"sobjects"
|
|
1186
|
+
],
|
|
1187
|
+
"query": [
|
|
1188
|
+
{
|
|
1189
|
+
"key": "ids",
|
|
1190
|
+
"value": "0012o00003OBzVSAA1"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"key": "allOrNone",
|
|
1194
|
+
"value": "true"
|
|
1195
|
+
}
|
|
1196
|
+
]
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"status": "OK",
|
|
1200
|
+
"code": 200,
|
|
1201
|
+
"_postman_previewlanguage": "json",
|
|
1202
|
+
"header": [
|
|
1203
|
+
{
|
|
1204
|
+
"key": "Date",
|
|
1205
|
+
"value": "Mon, 20 Nov 2023 15:31:21 GMT"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"key": "Strict-Transport-Security",
|
|
1209
|
+
"value": "max-age=63072000; includeSubDomains"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"key": "X-Content-Type-Options",
|
|
1213
|
+
"value": "nosniff"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"key": "X-XSS-Protection",
|
|
1217
|
+
"value": "1; mode=block"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"key": "X-Robots-Tag",
|
|
1221
|
+
"value": "none"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"key": "Cache-Control",
|
|
1225
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"key": "Sforce-Limit-Info",
|
|
1229
|
+
"value": "api-usage=49/15000"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"key": "Content-Type",
|
|
1233
|
+
"value": "application/json;charset=UTF-8"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"key": "Transfer-Encoding",
|
|
1237
|
+
"value": "chunked"
|
|
1238
|
+
}
|
|
1239
|
+
],
|
|
1240
|
+
"cookie": [],
|
|
1241
|
+
"body": "[\n {\n \"id\": \"001...\",\n \"success\": true,\n \"errors\": []\n }\n]"
|
|
1242
|
+
}
|
|
1243
|
+
]
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
}
|