picked 0.0.101-next.2 → 0.0.101
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 +27 -12
- package/docs/explanation/conditions-and-the-logic-engine.md +94 -0
- package/docs/explanation/content-references.md +99 -0
- package/docs/explanation/feature-flag-allocation.md +218 -0
- package/docs/explanation/how-picked-works.md +124 -0
- package/docs/explanation/how-pickedql-works.md +76 -0
- package/docs/explanation/pages-and-flows.md +64 -0
- package/docs/explanation/the-content-model.md +87 -0
- package/docs/explanation/the-two-apis.md +68 -0
- package/docs/explanation/why-server-side-rendering.md +76 -0
- package/docs/explanation/workspaces-and-versions.md +71 -0
- package/docs/how-to/add-a-step-field-or-action.md +56 -0
- package/docs/how-to/analytics/index.md +324 -0
- package/docs/how-to/archive-or-delete-a-workspace.md +59 -0
- package/docs/how-to/authenticate-the-cli.md +101 -0
- package/docs/how-to/authenticate-with-a-magic-link.md +56 -0
- package/docs/how-to/authenticate-with-a-password.md +68 -0
- package/docs/how-to/authenticate-with-an-api-key.md +60 -0
- package/docs/how-to/authenticate-with-oauth.md +49 -0
- package/docs/how-to/build-a-flow.md +106 -0
- package/docs/how-to/call-an-external-api-from-a-workflow.md +116 -0
- package/docs/how-to/connect-the-mcp-server.md +46 -0
- package/docs/how-to/create-a-content-entry.md +58 -0
- package/docs/how-to/create-a-project.md +40 -0
- package/docs/how-to/create-an-experience.md +51 -0
- package/docs/how-to/create-and-revoke-an-api-key.md +54 -0
- package/docs/how-to/debug-with-the-chrome-extension.md +57 -0
- package/docs/how-to/define-a-page-layout.md +54 -0
- package/docs/how-to/fill-and-publish-a-page.md +82 -0
- package/docs/how-to/install-the-gtm-template.md +84 -0
- package/docs/how-to/install-the-sdk.md +93 -0
- package/docs/how-to/install-the-vite-plugin.md +69 -0
- package/docs/how-to/invite-and-remove-members.md +45 -0
- package/docs/how-to/point-one-entry-at-another.md +75 -0
- package/docs/how-to/preview-a-workspace.md +39 -0
- package/docs/how-to/publish-a-workspace.md +42 -0
- package/docs/how-to/read-a-feature-flag.md +113 -0
- package/docs/how-to/read-a-referenced-entry.md +109 -0
- package/docs/how-to/register-a-component.md +55 -0
- package/docs/how-to/register-an-action-handler.md +85 -0
- package/docs/how-to/register-an-api-that-uses-oauth2.md +107 -0
- package/docs/how-to/render-a-step-form.md +131 -0
- package/docs/how-to/render-an-unpublished-preview.md +41 -0
- package/docs/how-to/retry-a-failed-call-with-a-loop.md +81 -0
- package/docs/how-to/reuse-a-section.md +64 -0
- package/docs/how-to/reuse-a-step-field-or-action.md +39 -0
- package/docs/how-to/roll-back-a-published-version.md +39 -0
- package/docs/how-to/run-an-ab-test.md +59 -0
- package/docs/how-to/run-code-on-a-form-submission.md +125 -0
- package/docs/how-to/server-render-a-page.md +81 -0
- package/docs/how-to/set-a-content-security-policy.md +32 -0
- package/docs/how-to/set-up-mfa.md +126 -0
- package/docs/how-to/switch-workspaces.md +122 -0
- package/docs/how-to/upload-and-use-an-asset.mdx +87 -0
- package/docs/how-to/validate-a-field.md +52 -0
- package/docs/how-to/wait-for-an-action-response.md +182 -0
- package/docs/how-to/write-a-condition.md +57 -0
- package/docs/how-to/write-a-predicate.md +60 -0
- package/docs/index.md +59 -0
- package/docs/reference/dashboard/actions.mdx +65 -0
- package/docs/reference/dashboard/api-keys.mdx +47 -0
- package/docs/reference/dashboard/conditions.mdx +51 -0
- package/docs/reference/dashboard/content/asset-library.mdx +74 -0
- package/docs/reference/dashboard/content/blocks.mdx +66 -0
- package/docs/reference/dashboard/content/content-entries.mdx +109 -0
- package/docs/reference/dashboard/content/models.mdx +119 -0
- package/docs/reference/dashboard/content/pages.mdx +72 -0
- package/docs/reference/dashboard/experiences.mdx +61 -0
- package/docs/reference/dashboard/external-apis.md +182 -0
- package/docs/reference/dashboard/features.mdx +165 -0
- package/docs/reference/dashboard/fields.mdx +120 -0
- package/docs/reference/dashboard/flow-builder/canvas.mdx +58 -0
- package/docs/reference/dashboard/flow-builder/condition-builder.md +69 -0
- package/docs/reference/dashboard/flow-builder/keyboard-shortcuts.md +72 -0
- package/docs/reference/dashboard/flow-builder/nodes.md +74 -0
- package/docs/reference/dashboard/labels.md +321 -0
- package/docs/reference/dashboard/lead-search.md +235 -0
- package/docs/reference/dashboard/projects.mdx +53 -0
- package/docs/reference/dashboard/reports.mdx +53 -0
- package/docs/reference/dashboard/steps.mdx +47 -0
- package/docs/reference/dashboard/team-management.md +38 -0
- package/docs/reference/dashboard/workflow-runs.md +157 -0
- package/docs/reference/dashboard/workflow-templates.md +182 -0
- package/docs/reference/dashboard/workflow-test-runs.md +85 -0
- package/docs/reference/dashboard/workspace-versioning.mdx +42 -0
- package/docs/reference/dashboard/workspaces.mdx +91 -0
- package/docs/reference/delivery-api/experience-content.md +152 -0
- package/docs/reference/delivery-api/index.md +45 -0
- package/docs/reference/delivery-api/preview-caching-crawling.md +79 -0
- package/docs/reference/delivery-api/project-config.md +65 -0
- package/docs/reference/delivery-api/workspace-schema.md +107 -0
- package/docs/reference/glossary.md +201 -0
- package/docs/reference/management-api/authentication.md +87 -0
- package/docs/reference/management-api/authorization-and-scopes.md +291 -0
- package/docs/reference/management-api/error-handling.md +232 -0
- package/docs/reference/management-api/pagination.md +192 -0
- package/docs/reference/management-api/schema/action.md +261 -0
- package/docs/reference/management-api/schema/analytics-session.md +363 -0
- package/docs/reference/management-api/schema/analytics.md +73 -0
- package/docs/reference/management-api/schema/api-key.md +170 -0
- package/docs/reference/management-api/schema/auth.md +1177 -0
- package/docs/reference/management-api/schema/cms-fields.md +954 -0
- package/docs/reference/management-api/schema/cms-models.md +1155 -0
- package/docs/reference/management-api/schema/common.md +362 -0
- package/docs/reference/management-api/schema/condition.md +254 -0
- package/docs/reference/management-api/schema/design-system.md +199 -0
- package/docs/reference/management-api/schema/experience.md +1098 -0
- package/docs/reference/management-api/schema/external-api.md +637 -0
- package/docs/reference/management-api/schema/feature.md +350 -0
- package/docs/reference/management-api/schema/feedback.md +103 -0
- package/docs/reference/management-api/schema/field.md +400 -0
- package/docs/reference/management-api/schema/index.md +243 -0
- package/docs/reference/management-api/schema/integration.md +272 -0
- package/docs/reference/management-api/schema/label.md +349 -0
- package/docs/reference/management-api/schema/lead.md +340 -0
- package/docs/reference/management-api/schema/mcp-server.md +299 -0
- package/docs/reference/management-api/schema/metric.md +223 -0
- package/docs/reference/management-api/schema/operation.md +96 -0
- package/docs/reference/management-api/schema/organization.md +749 -0
- package/docs/reference/management-api/schema/project.md +607 -0
- package/docs/reference/management-api/schema/report.md +243 -0
- package/docs/reference/management-api/schema/saved-view.md +288 -0
- package/docs/reference/management-api/schema/shopify.md +795 -0
- package/docs/reference/management-api/schema/step.md +273 -0
- package/docs/reference/management-api/schema/tenant-branding.md +185 -0
- package/docs/reference/management-api/schema/workbench.md +246 -0
- package/docs/reference/management-api/schema/workflow-run.md +263 -0
- package/docs/reference/management-api/schema/workflow.md +1110 -0
- package/docs/reference/management-api/schema/workspace-version.md +823 -0
- package/docs/reference/management-api/schema/workspace.md +917 -0
- package/docs/reference/pickedql/data-sources.md +174 -0
- package/docs/reference/pickedql/dimensions.md +103 -0
- package/docs/reference/pickedql/filtering.md +64 -0
- package/docs/reference/pickedql/index.md +18 -0
- package/docs/reference/pickedql/schema.md +172 -0
- package/docs/reference/pickedql/virtual-functions.md +248 -0
- package/docs/reference/sdk/actions.md +154 -0
- package/docs/reference/sdk/analytics-events.md +453 -0
- package/docs/reference/sdk/conditions.md +147 -0
- package/docs/reference/sdk/content-security-policy.md +21 -0
- package/docs/reference/sdk/content.md +253 -0
- package/docs/reference/sdk/experiences.md +51 -0
- package/docs/reference/sdk/features.md +256 -0
- package/docs/reference/sdk/fields.md +255 -0
- package/docs/reference/sdk/index.md +68 -0
- package/docs/reference/sdk/plugins/create-experience.md +123 -0
- package/docs/reference/sdk/plugins/dynamic-experiences.md +74 -0
- package/docs/reference/sdk/plugins/fingerprintjs.md +39 -0
- package/docs/reference/sdk/plugins/hotjar.md +60 -0
- package/docs/reference/sdk/plugins/index.md +33 -0
- package/docs/reference/sdk/plugins/sentry.md +51 -0
- package/docs/reference/sdk/plugins/shopify.md +109 -0
- package/docs/reference/sdk/plugins/window-object.md +25 -0
- package/docs/reference/sdk/predicates.md +43 -0
- package/docs/reference/sdk/react.md +61 -0
- package/docs/reference/sdk/ssr/index.md +33 -0
- package/docs/reference/sdk/ssr/rendering-and-hydration.md +103 -0
- package/docs/reference/sdk/ssr/serialize.md +80 -0
- package/docs/reference/sdk/ssr/slots-and-placements.md +113 -0
- package/docs/reference/sdk/steps.md +86 -0
- package/docs/reference/sdk/svelte.md +74 -0
- package/docs/reference/sdk/type-generation.md +265 -0
- package/docs/reference/tools/admin-api-client.md +89 -0
- package/docs/reference/tools/chrome-extension.md +16 -0
- package/docs/reference/tools/cli.md +319 -0
- package/docs/reference/tools/delivery-api-client.md +60 -0
- package/docs/reference/tools/image-optimisation-service.md +104 -0
- package/docs/reference/tools/mcp-run.md +121 -0
- package/docs/reference/tools/mcp.md +391 -0
- package/docs/reference/tools/vite-plugin.md +163 -0
- package/docs/tutorials/first-api-call.md +253 -0
- package/docs/tutorials/first-experience-in-the-dashboard.mdx +160 -0
- package/docs/tutorials/first-experience.mdx +254 -0
- package/docs/tutorials/first-server-rendered-page.mdx +186 -0
- package/package.json +8 -7
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: reference
|
|
3
|
+
layout: docs
|
|
4
|
+
generated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Management API schema
|
|
8
|
+
|
|
9
|
+
The Management API is one GraphQL endpoint. Every query and mutation below goes to it:
|
|
10
|
+
|
|
11
|
+
```http
|
|
12
|
+
POST https://api.picked.app/api/graphql
|
|
13
|
+
Authorization: Bearer <access token>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
An API key goes in the `X-API-Key` header in place of `Authorization`. See [Authentication](/reference/management-api/authentication). [`@picked/admin-api-client`](/reference/tools/admin-api-client) gives a typed client for every operation.
|
|
17
|
+
|
|
18
|
+
An operation with `@auth` needs a caller that has authenticated. `@auth(only: USER)` refuses an API key. The schema is also open to GraphQL introspection.
|
|
19
|
+
|
|
20
|
+
## Operations
|
|
21
|
+
|
|
22
|
+
| Operation | Type | Description |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| [`accountCreate`](/reference/management-api/schema/auth#accountcreate) | Mutation | Register an email address and send it a confirmation email. |
|
|
25
|
+
| [`accountResendVerification`](/reference/management-api/schema/auth#accountresendverification) | Mutation | Resend the email verification link. |
|
|
26
|
+
| [`accountVerifyEmail`](/reference/management-api/schema/auth#accountverifyemail) | Mutation | Verify a user's email address with a confirmation token. |
|
|
27
|
+
| [`action`](/reference/management-api/schema/action#action) | Query | Get an action by ID within a workspace. |
|
|
28
|
+
| [`actionCreate`](/reference/management-api/schema/action#actioncreate) | Mutation | Create a new action. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
29
|
+
| [`actionDelete`](/reference/management-api/schema/action#actiondelete) | Mutation | Delete an action. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
30
|
+
| [`actions`](/reference/management-api/schema/action#actions) | Query | List actions in a workspace. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
31
|
+
| [`actionUpdate`](/reference/management-api/schema/action#actionupdate) | Mutation | Update an action. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
32
|
+
| [`apiKeyCreate`](/reference/management-api/schema/api-key#apikeycreate) | Mutation | Create a new API key. Requires scope: `ORGANIZATION_API_KEYS_CREATE`. User authentication only (not API key). |
|
|
33
|
+
| [`apiKeyRevoke`](/reference/management-api/schema/api-key#apikeyrevoke) | Mutation | Revoke an API key. Requires scope: `ORGANIZATION_API_KEYS_DELETE`. |
|
|
34
|
+
| [`apiKeys`](/reference/management-api/schema/api-key#apikeys) | Query | List API keys for an organisation. Requires authentication. |
|
|
35
|
+
| [`asset`](/reference/management-api/schema/cms-models#asset) | Query | Fetch a CMS Asset by id. |
|
|
36
|
+
| [`assetCommit`](/reference/management-api/schema/cms-models#assetcommit) | Mutation | Finalise an Asset upload — captures size, MIME, and intrinsic dimensions for images. |
|
|
37
|
+
| [`assetDelete`](/reference/management-api/schema/cms-models#assetdelete) | Mutation | Soft-delete an Asset. The underlying storage object is removed best-effort. |
|
|
38
|
+
| [`assets`](/reference/management-api/schema/cms-models#assets) | Query | List CMS Assets in a project, with optional text search, MIME-type filtering, and sort. |
|
|
39
|
+
| [`assetUploadInit`](/reference/management-api/schema/cms-models#assetuploadinit) | Mutation | Initiate an Asset upload — returns a pre-signed PUT URL plus the allocated asset id. |
|
|
40
|
+
| [`condition`](/reference/management-api/schema/condition#condition) | Query | Get a condition by ID within a workspace. |
|
|
41
|
+
| [`conditionCreate`](/reference/management-api/schema/condition#conditioncreate) | Mutation | Create a new condition. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
42
|
+
| [`conditionDelete`](/reference/management-api/schema/condition#conditiondelete) | Mutation | Delete a condition. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
43
|
+
| [`conditions`](/reference/management-api/schema/condition#conditions) | Query | List conditions in a workspace. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
44
|
+
| [`conditionUpdate`](/reference/management-api/schema/condition#conditionupdate) | Mutation | Update a condition. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
45
|
+
| [`contentBlock`](/reference/management-api/schema/cms-models#contentblock) | Query | Fetch a CMS Content Block by id. |
|
|
46
|
+
| [`contentBlockCreate`](/reference/management-api/schema/cms-models#contentblockcreate) | Mutation | Create a new CMS Content Block. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
47
|
+
| [`contentBlockDelete`](/reference/management-api/schema/cms-models#contentblockdelete) | Mutation | Soft-delete a CMS Content Block. |
|
|
48
|
+
| [`contentBlocks`](/reference/management-api/schema/cms-models#contentblocks) | Query | List CMS Content Blocks in a workspace, optionally filtered by category. |
|
|
49
|
+
| [`contentBlockUpdate`](/reference/management-api/schema/cms-models#contentblockupdate) | Mutation | Update a CMS Content Block schema. |
|
|
50
|
+
| [`contentEntries`](/reference/management-api/schema/cms-models#contententries) | Query | List CMS Content Entries in a workspace, optionally filtered by parent Content Model. |
|
|
51
|
+
| [`contentEntry`](/reference/management-api/schema/cms-models#contententry) | Query | Fetch a CMS Content Entry by id. |
|
|
52
|
+
| [`contentEntryCreate`](/reference/management-api/schema/cms-models#contententrycreate) | Mutation | Create a new CMS Content Entry against a parent Content Model. |
|
|
53
|
+
| [`contentEntryDelete`](/reference/management-api/schema/cms-models#contententrydelete) | Mutation | Soft-delete a CMS Content Entry. Refuses if a Step references it. |
|
|
54
|
+
| [`contentEntryUpdate`](/reference/management-api/schema/cms-models#contententryupdate) | Mutation | Update a CMS Content Entry's data. |
|
|
55
|
+
| [`contentModel`](/reference/management-api/schema/cms-models#contentmodel) | Query | Fetch a CMS Content Model by id. |
|
|
56
|
+
| [`contentModelCreate`](/reference/management-api/schema/cms-models#contentmodelcreate) | Mutation | Create a new CMS Content Model. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
57
|
+
| [`contentModelDelete`](/reference/management-api/schema/cms-models#contentmodeldelete) | Mutation | Soft-delete a CMS Content Model. Refuses if dependent Content Entry rows still exist. |
|
|
58
|
+
| [`contentModels`](/reference/management-api/schema/cms-models#contentmodels) | Query | List CMS Content Models in a workspace, optionally filtered by category. |
|
|
59
|
+
| [`contentModelUpdate`](/reference/management-api/schema/cms-models#contentmodelupdate) | Mutation | Update a CMS Content Model. Returns migration warnings when the schema change drops or coerces dependent Content Entry fields. |
|
|
60
|
+
| [`createShopifyMetafieldConfig`](/reference/management-api/schema/shopify#createshopifymetafieldconfig) | Mutation | |
|
|
61
|
+
| [`createShopifyWebhook`](/reference/management-api/schema/shopify#createshopifywebhook) | Mutation | |
|
|
62
|
+
| [`deleteShopifyMetafieldConfig`](/reference/management-api/schema/shopify#deleteshopifymetafieldconfig) | Mutation | |
|
|
63
|
+
| [`deleteShopifyWebhook`](/reference/management-api/schema/shopify#deleteshopifywebhook) | Mutation | |
|
|
64
|
+
| [`designSystem`](/reference/management-api/schema/design-system#designsystem) | Query | Get a design system by ID. |
|
|
65
|
+
| [`designSystemCreate`](/reference/management-api/schema/design-system#designsystemcreate) | Mutation | Create a new design system. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
66
|
+
| [`designSystemDelete`](/reference/management-api/schema/design-system#designsystemdelete) | Mutation | Delete a design system. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
67
|
+
| [`designSystems`](/reference/management-api/schema/design-system#designsystems) | Query | List design systems in a project. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
68
|
+
| [`designSystemUpdate`](/reference/management-api/schema/design-system#designsystemupdate) | Mutation | Update a design system. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
69
|
+
| [`emailLinkVerify`](/reference/management-api/schema/auth#emaillinkverify) | Mutation | Verify the link from a password-reset, invitation, sign-in or confirmation email and create a session. The link is single-use, so call this when the recipient confirms, never on opening the link: an email security scanner that opens links before delivery would otherwise use it up. |
|
|
70
|
+
| [`experience`](/reference/management-api/schema/experience#experience) | Query | Get an experience by ID within a workspace. |
|
|
71
|
+
| [`experienceCreate`](/reference/management-api/schema/experience#experiencecreate) | Mutation | Create a new experience. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
72
|
+
| [`experienceDelete`](/reference/management-api/schema/experience#experiencedelete) | Mutation | Delete an experience. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
73
|
+
| [`experienceFlowUpdate`](/reference/management-api/schema/experience#experienceflowupdate) | Mutation | Atomically save all changes to an experience flow. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
74
|
+
| [`experiences`](/reference/management-api/schema/experience#experiences) | Query | List experiences within a workspace. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
75
|
+
| [`experienceUpdate`](/reference/management-api/schema/experience#experienceupdate) | Mutation | Update an experience. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
76
|
+
| [`externalApi`](/reference/management-api/schema/external-api#externalapi) | Query | Fetch a single external API by ID, or null if it does not exist. Requires authentication and `ORGANIZATION_INTEGRATIONS_READ` on its project. |
|
|
77
|
+
| [`externalApiAuthHeaderClear`](/reference/management-api/schema/external-api#externalapiauthheaderclear) | Mutation | Remove the static auth header from an external API. Idempotent. Requires a user context and `ORGANIZATION_INTEGRATIONS_UPDATE`; API keys are rejected. |
|
|
78
|
+
| [`externalApiAuthHeaderSet`](/reference/management-api/schema/external-api#externalapiauthheaderset) | Mutation | Set or replace the single static auth header on an external API, removing an OAuth2 credential it holds. Requires a user context and `ORGANIZATION_INTEGRATIONS_UPDATE`; API keys are rejected. |
|
|
79
|
+
| [`externalApiCreate`](/reference/management-api/schema/external-api#externalapicreate) | Mutation | Register an external API to a project. Requires a user context and `ORGANIZATION_INTEGRATIONS_CREATE`; API keys are rejected. |
|
|
80
|
+
| [`externalApiDelete`](/reference/management-api/schema/external-api#externalapidelete) | Mutation | Delete an external API registration and its encrypted credentials. Idempotent. Requires a user context and `ORGANIZATION_INTEGRATIONS_DELETE`; API keys are rejected. |
|
|
81
|
+
| [`externalApiOAuth2Clear`](/reference/management-api/schema/external-api#externalapioauth2clear) | Mutation | Remove the OAuth2 credential, its secrets and its cached access token from an external API. Idempotent. Requires a user context and `ORGANIZATION_INTEGRATIONS_UPDATE`; API keys are rejected. |
|
|
82
|
+
| [`externalApiOAuth2Set`](/reference/management-api/schema/external-api#externalapioauth2set) | Mutation | Set or replace the OAuth2 credential on an external API, removing a static auth header it holds. Requires a user context and `ORGANIZATION_INTEGRATIONS_UPDATE`; API keys are rejected. |
|
|
83
|
+
| [`externalApiUpdate`](/reference/management-api/schema/external-api#externalapiupdate) | Mutation | Rename an external API. Requires a user context and `ORGANIZATION_INTEGRATIONS_UPDATE`; API keys are rejected. |
|
|
84
|
+
| [`feature`](/reference/management-api/schema/feature#feature) | Query | Fetch a single feature by ID and workspace ID. Requires authentication. |
|
|
85
|
+
| [`featureCreate`](/reference/management-api/schema/feature#featurecreate) | Mutation | Create a new feature. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
86
|
+
| [`featureDelete`](/reference/management-api/schema/feature#featuredelete) | Mutation | Delete a feature. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
87
|
+
| [`features`](/reference/management-api/schema/feature#features) | Query | List features in a workspace. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
88
|
+
| [`featureUpdate`](/reference/management-api/schema/feature#featureupdate) | Mutation | Update a feature. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
89
|
+
| [`feedbackCreate`](/reference/management-api/schema/feedback#feedbackcreate) | Mutation | Submit user feedback from the dashboard. Requires authentication (USER token only). |
|
|
90
|
+
| [`field`](/reference/management-api/schema/field#field) | Query | Get a field by ID within a workspace. |
|
|
91
|
+
| [`fieldCreate`](/reference/management-api/schema/field#fieldcreate) | Mutation | Create a new field. Requires scope: `ORGANIZATION_PROJECTS_CREATE`. |
|
|
92
|
+
| [`fieldDelete`](/reference/management-api/schema/field#fielddelete) | Mutation | Delete a field. Requires scope: `ORGANIZATION_PROJECTS_DELETE`. |
|
|
93
|
+
| [`fields`](/reference/management-api/schema/field#fields) | Query | Get list of fields within a workspace. |
|
|
94
|
+
| [`fieldUpdate`](/reference/management-api/schema/field#fieldupdate) | Mutation | Update a field. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
95
|
+
| [`integrationConfigurationCreate`](/reference/management-api/schema/integration#integrationconfigurationcreate) | Mutation | Create a configuration for an installed integration. Requires scope: `ORGANIZATION_INTEGRATIONS_CREATE`. |
|
|
96
|
+
| [`integrationConfigurationDelete`](/reference/management-api/schema/integration#integrationconfigurationdelete) | Mutation | Delete an integration's configuration. Requires scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
|
|
97
|
+
| [`integrationConfigurationUpdate`](/reference/management-api/schema/integration#integrationconfigurationupdate) | Mutation | Update an integration's configuration. Requires scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
|
|
98
|
+
| [`integrationInstall`](/reference/management-api/schema/integration#integrationinstall) | Mutation | Install an integration for a project. Requires scope: `ORGANIZATION_INTEGRATIONS_CREATE`. |
|
|
99
|
+
| [`integrationUninstall`](/reference/management-api/schema/integration#integrationuninstall) | Mutation | Uninstall an integration (cascades to delete all configurations). Requires scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
|
|
100
|
+
| [`labelsDelete`](/reference/management-api/schema/label#labelsdelete) | Mutation | Remove labels from an owner. Requires scope: `ORGANIZATION_LEADS_UPDATE` on the lead's project for a `LEAD` owner, and `ORGANIZATION_PROJECTS_UPDATE` on the project for a `PROJECT` or `WORKFLOW_RUN` owner. |
|
|
101
|
+
| [`labelsSet`](/reference/management-api/schema/label#labelsset) | Mutation | Create or replace labels on an owner. Requires scope: `ORGANIZATION_LEADS_UPDATE` on the lead's project for a `LEAD` owner, and `ORGANIZATION_PROJECTS_UPDATE` on the project for a `PROJECT` or `WORKFLOW_RUN` owner. |
|
|
102
|
+
| [`lead`](/reference/management-api/schema/lead#lead) | Query | Get a lead by ID. Requires scope: `ORGANIZATION_LEADS_READ`. |
|
|
103
|
+
| [`leadDelete`](/reference/management-api/schema/lead#leaddelete) | Mutation | Permanently delete a lead and its labels. Requires scope: `ORGANIZATION_LEADS_DELETE`. |
|
|
104
|
+
| [`magicLinkSend`](/reference/management-api/schema/auth#magiclinksend) | Mutation | Email an existing account a sign-in code and link. Never creates an account, and answers `success: true` for an address with no account. |
|
|
105
|
+
| [`magicLinkVerify`](/reference/management-api/schema/auth#magiclinkverify) | Mutation | Verify the code from a sign-in or confirmation email and create a session. |
|
|
106
|
+
| [`mcpServer`](/reference/management-api/schema/mcp-server#mcpserver) | Query | Fetch a single registered MCP server by ID, or null if it doesn't exist. Requires authentication. |
|
|
107
|
+
| [`mcpServerAuthHeaderClear`](/reference/management-api/schema/mcp-server#mcpserverauthheaderclear) | Mutation | Remove the auth header from an MCP server. Idempotent. Requires a user context; API keys are rejected. |
|
|
108
|
+
| [`mcpServerAuthHeaderSet`](/reference/management-api/schema/mcp-server#mcpserverauthheaderset) | Mutation | Set or replace the single auth header on an MCP server. Requires a user context; API keys are rejected. |
|
|
109
|
+
| [`mcpServerDelete`](/reference/management-api/schema/mcp-server#mcpserverdelete) | Mutation | Delete an MCP server registration and any encrypted credentials. Idempotent. |
|
|
110
|
+
| [`mcpServerRegister`](/reference/management-api/schema/mcp-server#mcpserverregister) | Mutation | Register a new third-party MCP server. Requires a user context; API keys are rejected. |
|
|
111
|
+
| [`mcpServerUpdate`](/reference/management-api/schema/mcp-server#mcpserverupdate) | Mutation | Update an MCP server's display name. URL rotation goes through `mcpServerUrlSet`. Requires a user context; API keys are rejected. |
|
|
112
|
+
| [`mcpServerUrlSet`](/reference/management-api/schema/mcp-server#mcpserverurlset) | Mutation | Rotate the MCP server's URL. The new URL is encrypted; the response surfaces only the display URL. Requires a user context; API keys are rejected. |
|
|
113
|
+
| [`mfaChallengeCreate`](/reference/management-api/schema/auth#mfachallengecreate) | Mutation | Open a challenge against one of the caller's factors. Requires a user session; exempt from the MFA policy. |
|
|
114
|
+
| [`mfaChallengeVerify`](/reference/management-api/schema/auth#mfachallengeverify) | Mutation | Verify a code against a challenge and lift the caller's session to `AAL2`. Requires a user session; exempt from the MFA policy. |
|
|
115
|
+
| [`mfaFactorEnroll`](/reference/management-api/schema/auth#mfafactorenroll) | Mutation | Enrol an authenticator app for the caller. Requires a user session; exempt from the MFA policy. |
|
|
116
|
+
| [`mfaFactorUnenroll`](/reference/management-api/schema/auth#mfafactorunenroll) | Mutation | Remove one of the caller's factors. Requires a user session; exempt from the MFA policy, though removing a verified factor needs `AAL2`. |
|
|
117
|
+
| [`oauthAuthorize`](/reference/management-api/schema/auth#oauthauthorize) | Mutation | Initiate an OAuth authorisation flow. |
|
|
118
|
+
| [`oauthCallback`](/reference/management-api/schema/auth#oauthcallback) | Mutation | Handle the OAuth callback and create a session. |
|
|
119
|
+
| [`oauthConsentApprove`](/reference/management-api/schema/auth#oauthconsentapprove) | Mutation | Approve an OAuth consent request. Requires authentication. |
|
|
120
|
+
| [`oauthConsentDeny`](/reference/management-api/schema/auth#oauthconsentdeny) | Mutation | Deny an OAuth consent request. Requires authentication. |
|
|
121
|
+
| [`oauthConsentDetails`](/reference/management-api/schema/auth#oauthconsentdetails) | Query | Get OAuth consent authorisation details. Requires authentication (USER token only). |
|
|
122
|
+
| [`organization`](/reference/management-api/schema/organization#organization) | Query | Fetch a single organisation by ID or slug. Requires authentication. |
|
|
123
|
+
| [`organizationClientManagerScopesUpdate`](/reference/management-api/schema/organization#organizationclientmanagerscopesupdate) | Mutation | Set the scopes a client manager holds in one organisation. Requires `STAFF_INVITE_CLIENT_MANAGER` at root. The target must be a client manager, and a caller may not edit their own scopes. A client manager may add or remove only scopes their own client-manager grant in that organisation carries; a super admin may set any. |
|
|
124
|
+
| [`organizationCreate`](/reference/management-api/schema/organization#organizationcreate) | Mutation | Create a new organisation. Requires scope: `ORGANIZATION_CREATE`. |
|
|
125
|
+
| [`organizationDelete`](/reference/management-api/schema/organization#organizationdelete) | Mutation | Delete an organisation. Requires scope: `ORGANIZATION_DELETE`. |
|
|
126
|
+
| [`organizationInvitationAccept`](/reference/management-api/schema/organization#organizationinvitationaccept) | Mutation | Accept an organisation invitation. Requires authentication. |
|
|
127
|
+
| [`organizationInvitationDecline`](/reference/management-api/schema/organization#organizationinvitationdecline) | Mutation | Decline an organisation invitation. Requires authentication. |
|
|
128
|
+
| [`organizationInvitationRevoke`](/reference/management-api/schema/organization#organizationinvitationrevoke) | Mutation | Revoke an organisation invitation. Requires scope: `ORGANIZATION_INVITATIONS_DELETE`. |
|
|
129
|
+
| [`organizationMemberInvite`](/reference/management-api/schema/organization#organizationmemberinvite) | Mutation | Invite a member to an organisation. Requires scope: `ORGANIZATION_INVITATIONS_CREATE`. |
|
|
130
|
+
| [`organizationMemberRemove`](/reference/management-api/schema/organization#organizationmemberremove) | Mutation | Remove a member from an organisation. Requires scope: `ORGANIZATION_MEMBERS_DELETE`. |
|
|
131
|
+
| [`organizationMemberScopesUpdate`](/reference/management-api/schema/organization#organizationmemberscopesupdate) | Mutation | Set the scopes a member holds in an organisation. Requires `ORGANIZATION_MEMBERS_MANAGE_SCOPES` reaching that organisation. The target must be a member. A caller may not grant a scope they do not themselves hold, and may not edit their own scopes. |
|
|
132
|
+
| [`organizations`](/reference/management-api/schema/organization#organizations) | Query | List organisations the authenticated user belongs to. Requires authentication. |
|
|
133
|
+
| [`organizationShopifyWebhooks`](/reference/management-api/schema/shopify#organizationshopifywebhooks) | Query | |
|
|
134
|
+
| [`organizationUpdate`](/reference/management-api/schema/organization#organizationupdate) | Mutation | Update an organisation. Requires scope: `ORGANIZATION_UPDATE`. |
|
|
135
|
+
| [`passwordResetSend`](/reference/management-api/schema/auth#passwordresetsend) | Mutation | Send a password reset email. |
|
|
136
|
+
| [`passwordUpdate`](/reference/management-api/schema/auth#passwordupdate) | Mutation | Update the current user's password. Requires authentication. An `AAL1` session may set a password only while the user holds no verified factor, and is otherwise refused with `MFA_REQUIRED`. |
|
|
137
|
+
| [`pickedqlQuery`](/reference/management-api/schema/analytics#pickedqlquery) | Query | Execute a PickedQL query scoped to the caller's authorised projects. |
|
|
138
|
+
| [`ping`](/reference/management-api/schema/common#ping) | Query | Liveness probe used by infrastructure to confirm the GraphQL endpoint is up. Unauthenticated. |
|
|
139
|
+
| [`project`](/reference/management-api/schema/project#project) | Query | Fetch a single project by ID. Requires authentication. |
|
|
140
|
+
| [`projectCreate`](/reference/management-api/schema/project#projectcreate) | Mutation | Create a new project. Requires scope: `ORGANIZATION_PROJECTS_CREATE`. |
|
|
141
|
+
| [`projectDelete`](/reference/management-api/schema/project#projectdelete) | Mutation | Delete a project. Requires scope: `ORGANIZATION_PROJECTS_DELETE`. |
|
|
142
|
+
| [`projectPreviewEnvironmentCreate`](/reference/management-api/schema/project#projectpreviewenvironmentcreate) | Mutation | Create a project preview environment. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
143
|
+
| [`projectPreviewEnvironmentDelete`](/reference/management-api/schema/project#projectpreviewenvironmentdelete) | Mutation | Delete a project preview environment. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
144
|
+
| [`projectPreviewEnvironmentUpdate`](/reference/management-api/schema/project#projectpreviewenvironmentupdate) | Mutation | Update a project preview environment. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
145
|
+
| [`projects`](/reference/management-api/schema/project#projects) | Query | List projects the authenticated user can reach, across every organisation they belong to. Pass `organizationId` to narrow the list to one organisation, and `search` to match project names case-insensitively. Requires authentication. |
|
|
146
|
+
| [`projectShopifyMetafieldConfigs`](/reference/management-api/schema/shopify#projectshopifymetafieldconfigs) | Query | |
|
|
147
|
+
| [`projectUpdate`](/reference/management-api/schema/project#projectupdate) | Mutation | Update a project. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
148
|
+
| [`report`](/reference/management-api/schema/report#report) | Query | Fetch a single report by id. Requires authentication. |
|
|
149
|
+
| [`reportCreate`](/reference/management-api/schema/report#reportcreate) | Mutation | Create a new report. Requires scope: `ORGANIZATION_REPORTS_CREATE`. |
|
|
150
|
+
| [`reportDelete`](/reference/management-api/schema/report#reportdelete) | Mutation | Delete a report. Requires scope: `ORGANIZATION_REPORTS_DELETE`. |
|
|
151
|
+
| [`reportUpdate`](/reference/management-api/schema/report#reportupdate) | Mutation | Update a report. Requires scope: `ORGANIZATION_REPORTS_UPDATE`. |
|
|
152
|
+
| [`savedView`](/reference/management-api/schema/saved-view#savedview) | Query | Get a saved view by ID. Requires scope: `ORGANIZATION_PROJECTS_READ`. |
|
|
153
|
+
| [`savedViewCreate`](/reference/management-api/schema/saved-view#savedviewcreate) | Mutation | Save a view of a project's list. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
154
|
+
| [`savedViewDelete`](/reference/management-api/schema/saved-view#savedviewdelete) | Mutation | Delete a saved view. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
155
|
+
| [`savedViewUpdate`](/reference/management-api/schema/saved-view#savedviewupdate) | Mutation | Rename a saved view, change what it restores, or move the default. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
156
|
+
| [`sessionCreate`](/reference/management-api/schema/auth#sessioncreate) | Mutation | Create a new session by signing in with email and password. |
|
|
157
|
+
| [`sessionRefresh`](/reference/management-api/schema/auth#sessionrefresh) | Mutation | Refresh an existing session using a refresh token. |
|
|
158
|
+
| [`sessionStart`](/reference/management-api/schema/auth#sessionstart) | Mutation | Begin signing in with an email address alone. Answers `PASSWORD` when the account has set a password, and otherwise emails a sign-in code and link and answers `EMAIL_CODE`. Never creates an account. Returns `RATE_LIMITED` when the caller makes too many requests, or when the project's email quota is spent. |
|
|
159
|
+
| [`shopifyCollectionContentUpdate`](/reference/management-api/schema/shopify#shopifycollectioncontentupdate) | Mutation | Update Shopify collection content. Requires authentication. |
|
|
160
|
+
| [`shopifyMetafieldConfigCreate`](/reference/management-api/schema/shopify#shopifymetafieldconfigcreate) | Mutation | Create a Shopify metafield config. Requires authentication. |
|
|
161
|
+
| [`shopifyMetafieldConfigDelete`](/reference/management-api/schema/shopify#shopifymetafieldconfigdelete) | Mutation | Delete a Shopify metafield config. Requires authentication. |
|
|
162
|
+
| [`shopifyMetafieldConfigs`](/reference/management-api/schema/shopify#shopifymetafieldconfigs) | Query | List Shopify metafield configs for a project. Requires authentication. |
|
|
163
|
+
| [`shopifyMetafieldConfigUpdate`](/reference/management-api/schema/shopify#shopifymetafieldconfigupdate) | Mutation | Update a Shopify metafield config. Requires authentication. |
|
|
164
|
+
| [`shopifyProduct`](/reference/management-api/schema/shopify#shopifyproduct) | Query | |
|
|
165
|
+
| [`shopifyProductContentUpdate`](/reference/management-api/schema/shopify#shopifyproductcontentupdate) | Mutation | Update Shopify product content. Requires authentication. |
|
|
166
|
+
| [`shopifyProducts`](/reference/management-api/schema/shopify#shopifyproducts) | Query | |
|
|
167
|
+
| [`shopifyWebhookCreate`](/reference/management-api/schema/shopify#shopifywebhookcreate) | Mutation | Create a new Shopify webhook. Requires authentication. |
|
|
168
|
+
| [`shopifyWebhookDelete`](/reference/management-api/schema/shopify#shopifywebhookdelete) | Mutation | Delete a Shopify webhook. Requires authentication. |
|
|
169
|
+
| [`shopifyWebhooks`](/reference/management-api/schema/shopify#shopifywebhooks) | Query | List Shopify webhooks for an organisation. Requires authentication. |
|
|
170
|
+
| [`shopifyWebhookUpdate`](/reference/management-api/schema/shopify#shopifywebhookupdate) | Mutation | Update a Shopify webhook. Requires authentication. |
|
|
171
|
+
| [`step`](/reference/management-api/schema/step#step) | Query | Get a step by ID within a workspace. |
|
|
172
|
+
| [`stepCreate`](/reference/management-api/schema/step#stepcreate) | Mutation | Create a new step. Requires scope: `ORGANIZATION_PROJECTS_CREATE`. |
|
|
173
|
+
| [`stepDelete`](/reference/management-api/schema/step#stepdelete) | Mutation | Delete a step. Requires scope: `ORGANIZATION_PROJECTS_DELETE`. |
|
|
174
|
+
| [`steps`](/reference/management-api/schema/step#steps) | Query | Get list of steps within a workspace. |
|
|
175
|
+
| [`stepUpdate`](/reference/management-api/schema/step#stepupdate) | Mutation | Update a step. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
176
|
+
| [`tenant`](/reference/management-api/schema/tenant-branding#tenant) | Query | Resolve a tenant (and its branding) by host or explicit slug. Unauthenticated; cached for 5 minutes. |
|
|
177
|
+
| [`updateShopifyCollectionContent`](/reference/management-api/schema/shopify#updateshopifycollectioncontent) | Mutation | |
|
|
178
|
+
| [`updateShopifyMetafieldConfig`](/reference/management-api/schema/shopify#updateshopifymetafieldconfig) | Mutation | |
|
|
179
|
+
| [`updateShopifyProductContent`](/reference/management-api/schema/shopify#updateshopifyproductcontent) | Mutation | |
|
|
180
|
+
| [`updateShopifyWebhook`](/reference/management-api/schema/shopify#updateshopifywebhook) | Mutation | |
|
|
181
|
+
| [`user`](/reference/management-api/schema/auth#user) | Query | Fetch the currently authenticated user. Returns null if the request is unauthenticated. Exempt from the MFA policy, so a gated user can read `mfa` and `mfaFactors`. |
|
|
182
|
+
| [`viewerScopes`](/reference/management-api/schema/auth#viewerscopes) | Query | Root-level scopes for the authenticated user (e.g. `ORGANIZATION_CREATE`, `STAFF_READ`). Use `Organization.viewerScopes` for org-scoped scopes. |
|
|
183
|
+
| [`workbenchAssetAdoptOwned`](/reference/management-api/schema/workbench#workbenchassetadoptowned) | Mutation | Adopts an existing project-library Asset as `OWNED` by a Workbench, transferring the Asset's ownership. Used when a Create-Page upload is bound to its Workbench after the Workbench is created. |
|
|
184
|
+
| [`workbenchAssetImport`](/reference/management-api/schema/workbench#workbenchassetimport) | Mutation | Imports an Asset owned elsewhere into a Workbench, creating an `IMPORTED` membership. Removing the import (`workbenchAssetRemove`) drops only the join, never the Asset. |
|
|
185
|
+
| [`workbenchAssetRemove`](/reference/management-api/schema/workbench#workbenchassetremove) | Mutation | Removes an Asset's membership from a Workbench. If the membership was `OWNED`, the Asset is also soft-deleted; if `IMPORTED`, only the join is dropped. |
|
|
186
|
+
| [`workflow`](/reference/management-api/schema/workflow#workflow) | Query | Get a workflow by ID. |
|
|
187
|
+
| [`workflowCreate`](/reference/management-api/schema/workflow#workflowcreate) | Mutation | Create a new workflow. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
188
|
+
| [`workflowDelete`](/reference/management-api/schema/workflow#workflowdelete) | Mutation | Delete a workflow. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
189
|
+
| [`workflowGraphUpdate`](/reference/management-api/schema/workflow#workflowgraphupdate) | Mutation | Apply a batch of changes to a workflow's graph, all or nothing. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
190
|
+
| [`workflowRun`](/reference/management-api/schema/workflow-run#workflowrun) | Query | Get a workflow run by ID. Requires scope: `ORGANIZATION_PROJECTS_READ`. |
|
|
191
|
+
| [`workflows`](/reference/management-api/schema/workflow#workflows) | Query | List workflows in a workspace. Filter by name with `search` (case-insensitive substring) and order with `sortKey` (default `NAME`) plus `reverse`. |
|
|
192
|
+
| [`workflowTestRun`](/reference/management-api/schema/workflow#workflowtestrun) | Mutation | Walk a workflow's draft graph once against a supplied trigger input, holding every write back, and return what each node did. Nothing is stored. Requires scope `ORGANIZATION_WORKSPACE_UPDATE` and every scope in `Workflow.scopes`; a refusal names each one missing. |
|
|
193
|
+
| [`workflowTools`](/reference/management-api/schema/workflow#workflowtools) | Query | Every tool a workflow node may run, with the arguments each accepts. Read by the editor to build its node palette. |
|
|
194
|
+
| [`workflowUpdate`](/reference/management-api/schema/workflow#workflowupdate) | Mutation | Update a workflow. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
195
|
+
| [`workspace`](/reference/management-api/schema/workspace#workspace) | Query | Get a specific workspace. Requires authentication. |
|
|
196
|
+
| [`workspaceArchive`](/reference/management-api/schema/workspace#workspacearchive) | Mutation | Archive a non-live workspace. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
197
|
+
| [`workspaceContentEntryValidation`](/reference/management-api/schema/cms-models#workspacecontententryvalidation) | Query | Run schema validation across every Content Entry in a workspace and report which rows no longer conform. Read-only — does not auto-fix. Useful as a pre-publish sanity gate, especially after a Content Block schema change. Optionally narrow the sweep to a single Content Model with `contentModelId`. |
|
|
198
|
+
| [`workspaceCreate`](/reference/management-api/schema/workspace#workspacecreate) | Mutation | Create a new workspace on a project. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
199
|
+
| [`workspaceDelete`](/reference/management-api/schema/workspace#workspacedelete) | Mutation | Soft-delete a non-live workspace. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
200
|
+
| [`workspaceDiff`](/reference/management-api/schema/workspace-version#workspacediff) | Query | Compute a structural diff between two workspace snapshots. Each side can be either a live workspace (diffed against its current draft snapshot) or a previously-published `WorkspaceVersion`. Requires authentication and `ORGANIZATION_PROJECTS_READ` scope on the project shared by both sides. |
|
|
201
|
+
| [`workspaceDuplicate`](/reference/management-api/schema/workspace#workspaceduplicate) | Mutation | Duplicate an existing workspace with all of its child entities, including its workflows. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
202
|
+
| [`workspaceExport`](/reference/management-api/schema/workspace#workspaceexport) | Query | Export a workspace and every entity in it as a portable JSON bundle, with a manifest of the asset versions its content references. The asset bytes are not included; download each from its `downloadUrl`. Requires scope: `ORGANIZATION_PROJECTS_READ` on the workspace's project. |
|
|
203
|
+
| [`workspaceImport`](/reference/management-api/schema/workspace#workspaceimport) | Mutation | Create a new draft workspace in a project from a bundle returned by `workspaceExport`, committing every entity in one transaction. Requires scope: `ORGANIZATION_PROJECTS_UPDATE` on the target project. |
|
|
204
|
+
| [`workspacePublish`](/reference/management-api/schema/workspace#workspacepublish) | Mutation | Publish a workspace, creating an immutable version snapshot. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
205
|
+
| [`workspaceUnarchive`](/reference/management-api/schema/workspace#workspaceunarchive) | Mutation | Unarchive an archived workspace (restores it to `DRAFT`). Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
206
|
+
| [`workspaceUpdate`](/reference/management-api/schema/workspace#workspaceupdate) | Mutation | Rename an existing workspace. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
207
|
+
| [`workspaceVersionPublish`](/reference/management-api/schema/workspace#workspaceversionpublish) | Mutation | Promote a previously-published `WorkspaceVersion` to be its project's served (live) version by pointing `projects.live_workspace_version_id` at it and stamping the owning workspace's `publishedAt` with that version's original publish timestamp. Works for the latest version (re-publish) or an earlier one (rollback, in product terms). No new `WorkspaceVersion` row is appended. The target workspace becomes the project's live one (an archived workspace is un-archived). The draft state is NOT modified, so if the draft differs from the published snapshot it shows up as "unpublished changes" in the UI. Use `workspaceDiff` with `(baseWorkspaceId, compareWorkspaceVersionId)` to preview the impact before invoking this mutation. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`. |
|
|
208
|
+
|
|
209
|
+
## Domains
|
|
210
|
+
|
|
211
|
+
- [Action](/reference/management-api/schema/action)
|
|
212
|
+
- [Analytics session](/reference/management-api/schema/analytics-session)
|
|
213
|
+
- [Analytics](/reference/management-api/schema/analytics)
|
|
214
|
+
- [Api key](/reference/management-api/schema/api-key)
|
|
215
|
+
- [Auth](/reference/management-api/schema/auth)
|
|
216
|
+
- [Cms fields](/reference/management-api/schema/cms-fields)
|
|
217
|
+
- [Cms models](/reference/management-api/schema/cms-models)
|
|
218
|
+
- [Common](/reference/management-api/schema/common)
|
|
219
|
+
- [Condition](/reference/management-api/schema/condition)
|
|
220
|
+
- [Design system](/reference/management-api/schema/design-system)
|
|
221
|
+
- [Experience](/reference/management-api/schema/experience)
|
|
222
|
+
- [External api](/reference/management-api/schema/external-api)
|
|
223
|
+
- [Feature](/reference/management-api/schema/feature)
|
|
224
|
+
- [Feedback](/reference/management-api/schema/feedback)
|
|
225
|
+
- [Field](/reference/management-api/schema/field)
|
|
226
|
+
- [Integration](/reference/management-api/schema/integration)
|
|
227
|
+
- [Label](/reference/management-api/schema/label)
|
|
228
|
+
- [Lead](/reference/management-api/schema/lead)
|
|
229
|
+
- [Mcp server](/reference/management-api/schema/mcp-server)
|
|
230
|
+
- [Metric](/reference/management-api/schema/metric)
|
|
231
|
+
- [Operation](/reference/management-api/schema/operation)
|
|
232
|
+
- [Organization](/reference/management-api/schema/organization)
|
|
233
|
+
- [Project](/reference/management-api/schema/project)
|
|
234
|
+
- [Report](/reference/management-api/schema/report)
|
|
235
|
+
- [Saved view](/reference/management-api/schema/saved-view)
|
|
236
|
+
- [Shopify](/reference/management-api/schema/shopify)
|
|
237
|
+
- [Step](/reference/management-api/schema/step)
|
|
238
|
+
- [Tenant branding](/reference/management-api/schema/tenant-branding)
|
|
239
|
+
- [Workbench](/reference/management-api/schema/workbench)
|
|
240
|
+
- [Workflow run](/reference/management-api/schema/workflow-run)
|
|
241
|
+
- [Workflow](/reference/management-api/schema/workflow)
|
|
242
|
+
- [Workspace version](/reference/management-api/schema/workspace-version)
|
|
243
|
+
- [Workspace](/reference/management-api/schema/workspace)
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: reference
|
|
3
|
+
layout: docs
|
|
4
|
+
generated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Integration schema
|
|
8
|
+
|
|
9
|
+
The operations and types that `integration.graphql` adds to the Management API. See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
|
+
|
|
11
|
+
## Mutations
|
|
12
|
+
|
|
13
|
+
### `integrationInstall`
|
|
14
|
+
|
|
15
|
+
Install an integration for a project. Requires scope: `ORGANIZATION_INTEGRATIONS_CREATE`.
|
|
16
|
+
|
|
17
|
+
```graphql
|
|
18
|
+
integrationInstall(input: IntegrationInstallInput!): IntegrationInstallPayload! @auth
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### `integrationUninstall`
|
|
22
|
+
|
|
23
|
+
Uninstall an integration (cascades to delete all configurations). Requires scope: `ORGANIZATION_INTEGRATIONS_DELETE`.
|
|
24
|
+
|
|
25
|
+
```graphql
|
|
26
|
+
integrationUninstall(id: ID!): IntegrationUninstallPayload! @auth
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### `integrationConfigurationCreate`
|
|
30
|
+
|
|
31
|
+
Create a configuration for an installed integration. Requires scope: `ORGANIZATION_INTEGRATIONS_CREATE`.
|
|
32
|
+
|
|
33
|
+
```graphql
|
|
34
|
+
integrationConfigurationCreate(input: IntegrationConfigurationCreateInput!): IntegrationConfigurationCreatePayload! @auth
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### `integrationConfigurationUpdate`
|
|
38
|
+
|
|
39
|
+
Update an integration's configuration. Requires scope: `ORGANIZATION_INTEGRATIONS_UPDATE`.
|
|
40
|
+
|
|
41
|
+
```graphql
|
|
42
|
+
integrationConfigurationUpdate(id: ID!, input: IntegrationConfigurationUpdateInput!): IntegrationConfigurationUpdatePayload! @auth
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### `integrationConfigurationDelete`
|
|
46
|
+
|
|
47
|
+
Delete an integration's configuration. Requires scope: `ORGANIZATION_INTEGRATIONS_DELETE`.
|
|
48
|
+
|
|
49
|
+
```graphql
|
|
50
|
+
integrationConfigurationDelete(id: ID!, type: IntegrationType!): IntegrationConfigurationDeletePayload! @auth
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Types
|
|
54
|
+
|
|
55
|
+
### `IntegrationType`
|
|
56
|
+
|
|
57
|
+
```graphql
|
|
58
|
+
"""Integration types available for project configuration."""
|
|
59
|
+
enum IntegrationType {
|
|
60
|
+
"""
|
|
61
|
+
Vercel deployment integration — fires deploy hooks on workspace publish.
|
|
62
|
+
"""
|
|
63
|
+
VERCEL
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### `Integration`
|
|
68
|
+
|
|
69
|
+
```graphql
|
|
70
|
+
"""
|
|
71
|
+
An integration installed for a project. Created via `integrationInstall`;
|
|
72
|
+
removed via `integrationUninstall` (cascades to the configuration).
|
|
73
|
+
|
|
74
|
+
`configuration` is null until `integrationConfigurationCreate` is
|
|
75
|
+
invoked. The configuration union is resolved by `type`.
|
|
76
|
+
"""
|
|
77
|
+
type Integration {
|
|
78
|
+
"""Unique integration identifier."""
|
|
79
|
+
id: ID!
|
|
80
|
+
"""ID of the project this integration belongs to."""
|
|
81
|
+
projectId: ID!
|
|
82
|
+
"""The type of integration."""
|
|
83
|
+
type: IntegrationType!
|
|
84
|
+
"""When this integration was installed."""
|
|
85
|
+
installedAt: DateTime!
|
|
86
|
+
"""When this integration was last updated."""
|
|
87
|
+
updatedAt: DateTime!
|
|
88
|
+
"""The project this integration belongs to."""
|
|
89
|
+
project: Project!
|
|
90
|
+
"""
|
|
91
|
+
Integration-specific configuration (resolved by `type`). Null until `integrationConfigurationCreate` is invoked.
|
|
92
|
+
"""
|
|
93
|
+
configuration: IntegrationConfiguration @auth
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### `IntegrationConfiguration`
|
|
98
|
+
|
|
99
|
+
```graphql
|
|
100
|
+
"""
|
|
101
|
+
Union of all integration-specific configuration types. New types extend this union.
|
|
102
|
+
"""
|
|
103
|
+
union IntegrationConfiguration = VercelConfiguration
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### `VercelConfiguration`
|
|
107
|
+
|
|
108
|
+
```graphql
|
|
109
|
+
"""
|
|
110
|
+
Configuration for a Vercel integration with deploy hooks. Fires the
|
|
111
|
+
configured hooks on workspace publish so the downstream Vercel project
|
|
112
|
+
re-deploys with the latest content.
|
|
113
|
+
"""
|
|
114
|
+
type VercelConfiguration {
|
|
115
|
+
"""Unique configuration identifier."""
|
|
116
|
+
id: ID!
|
|
117
|
+
"""ID of the parent integration."""
|
|
118
|
+
integrationId: ID!
|
|
119
|
+
"""List of deploy hooks configured for this integration."""
|
|
120
|
+
deployHooks: [VercelDeployHook!]!
|
|
121
|
+
"""When this configuration was created."""
|
|
122
|
+
createdAt: DateTime!
|
|
123
|
+
"""When this configuration was last updated."""
|
|
124
|
+
updatedAt: DateTime!
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### `VercelDeployHook`
|
|
129
|
+
|
|
130
|
+
```graphql
|
|
131
|
+
"""A Vercel deploy hook with environment name and URL."""
|
|
132
|
+
type VercelDeployHook {
|
|
133
|
+
"""
|
|
134
|
+
Environment name (e.g. `Production`, `Staging`). Shown in the dashboard.
|
|
135
|
+
"""
|
|
136
|
+
name: String!
|
|
137
|
+
"""
|
|
138
|
+
Vercel deploy hook URL. Treat as sensitive — anyone with this URL can trigger the deploy.
|
|
139
|
+
"""
|
|
140
|
+
hookUrl: String!
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### `IntegrationInstallInput`
|
|
145
|
+
|
|
146
|
+
```graphql
|
|
147
|
+
"""Input for `integrationInstall`."""
|
|
148
|
+
input IntegrationInstallInput {
|
|
149
|
+
"""ID of the project to install the integration for."""
|
|
150
|
+
projectId: ID!
|
|
151
|
+
"""Type of integration to install."""
|
|
152
|
+
type: IntegrationType!
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### `IntegrationInstallPayload`
|
|
157
|
+
|
|
158
|
+
```graphql
|
|
159
|
+
"""Payload returned by `integrationInstall`."""
|
|
160
|
+
type IntegrationInstallPayload {
|
|
161
|
+
"""
|
|
162
|
+
The installed integration. Configuration is null until `integrationConfigurationCreate` is invoked.
|
|
163
|
+
"""
|
|
164
|
+
integration: Integration
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### `IntegrationUninstallPayload`
|
|
169
|
+
|
|
170
|
+
```graphql
|
|
171
|
+
"""
|
|
172
|
+
Payload returned by `integrationUninstall`. Removing an integration cascades to its configuration.
|
|
173
|
+
"""
|
|
174
|
+
type IntegrationUninstallPayload {
|
|
175
|
+
"""Whether the uninstall was successful."""
|
|
176
|
+
success: Boolean!
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### `VercelDeployHookInput`
|
|
181
|
+
|
|
182
|
+
```graphql
|
|
183
|
+
"""Input for a Vercel deploy hook."""
|
|
184
|
+
input VercelDeployHookInput {
|
|
185
|
+
"""Environment name (e.g. `Production`, `Staging`)."""
|
|
186
|
+
name: String!
|
|
187
|
+
"""Vercel deploy hook URL."""
|
|
188
|
+
hookUrl: String!
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### `VercelConfigurationInput`
|
|
193
|
+
|
|
194
|
+
```graphql
|
|
195
|
+
"""
|
|
196
|
+
Vercel-specific configuration input for `integrationConfigurationCreate`.
|
|
197
|
+
"""
|
|
198
|
+
input VercelConfigurationInput {
|
|
199
|
+
"""Deploy hooks for this configuration."""
|
|
200
|
+
deployHooks: [VercelDeployHookInput!]!
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### `VercelConfigurationUpdateFields`
|
|
205
|
+
|
|
206
|
+
```graphql
|
|
207
|
+
"""
|
|
208
|
+
Vercel-specific fields for `integrationConfigurationUpdate`. Omit a field to leave it unchanged.
|
|
209
|
+
"""
|
|
210
|
+
input VercelConfigurationUpdateFields {
|
|
211
|
+
"""Updated deploy hooks. Replaces the existing list when set."""
|
|
212
|
+
deployHooks: [VercelDeployHookInput!]
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### `IntegrationConfigurationCreateInput`
|
|
217
|
+
|
|
218
|
+
```graphql
|
|
219
|
+
"""
|
|
220
|
+
Input for `integrationConfigurationCreate`. Set the sub-input that matches the integration's `type`.
|
|
221
|
+
"""
|
|
222
|
+
input IntegrationConfigurationCreateInput {
|
|
223
|
+
"""ID of the integration to create the configuration for."""
|
|
224
|
+
integrationId: ID!
|
|
225
|
+
"""
|
|
226
|
+
Vercel-specific configuration. Provide when the integration type is `VERCEL`.
|
|
227
|
+
"""
|
|
228
|
+
vercel: VercelConfigurationInput
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### `IntegrationConfigurationCreatePayload`
|
|
233
|
+
|
|
234
|
+
```graphql
|
|
235
|
+
"""Payload returned by `integrationConfigurationCreate`."""
|
|
236
|
+
type IntegrationConfigurationCreatePayload {
|
|
237
|
+
"""The created configuration."""
|
|
238
|
+
configuration: IntegrationConfiguration
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### `IntegrationConfigurationUpdateInput`
|
|
243
|
+
|
|
244
|
+
```graphql
|
|
245
|
+
"""Input for `integrationConfigurationUpdate`."""
|
|
246
|
+
input IntegrationConfigurationUpdateInput {
|
|
247
|
+
"""
|
|
248
|
+
Vercel-specific configuration updates. Provide when the integration type is `VERCEL`.
|
|
249
|
+
"""
|
|
250
|
+
vercel: VercelConfigurationUpdateFields
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### `IntegrationConfigurationUpdatePayload`
|
|
255
|
+
|
|
256
|
+
```graphql
|
|
257
|
+
"""Payload returned by `integrationConfigurationUpdate`."""
|
|
258
|
+
type IntegrationConfigurationUpdatePayload {
|
|
259
|
+
"""The updated configuration."""
|
|
260
|
+
configuration: IntegrationConfiguration
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### `IntegrationConfigurationDeletePayload`
|
|
265
|
+
|
|
266
|
+
```graphql
|
|
267
|
+
"""Payload returned by `integrationConfigurationDelete`."""
|
|
268
|
+
type IntegrationConfigurationDeletePayload {
|
|
269
|
+
"""Whether the deletion was successful."""
|
|
270
|
+
success: Boolean!
|
|
271
|
+
}
|
|
272
|
+
```
|