This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Discover required and optional inputs for existing installations and their proposed target versions.
Resolves input requirements and available sources using the requested target versions, location overrides, and recommendation strategies.
The request token must have permission to edit each target. Every input in the target product versions must have an API name.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:v3:marketplace-installation-job:read:discover-inputs.
objectlist<InstallationTarget>optionalBetween 1 and 10 distinct installations, with at most one installation per product. Targets must share a namespace and marketplace and have at most one resulting ontology after applying overrides.
list<RecommendationStrategy>optionalAn empty list disables recommendations from installations outside the requested targets. Targets in this request may still supply inputs to one another.
objectoptionalWhen supplied, excludes an input if any of its available sources appears in excludedSources. If omitted, returns only inputs whose sole available source is MANUAL. Inputs with no available source are always omitted.
objectlist<InstallationError>optionalErrors encountered during input resolution. Errors for inputs excluded by sourceFilter are omitted.
map<MarketplaceInstallationRid, DiscoveredInstallationInputs>optionalAll matching input requirements for each requested installation after source filtering, without pagination. An installation's input map is empty if no inputs match.
1
2
3
4
5
curl -X POST \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v3/platform/marketplaceInstallationJobs/discoverInputs?preview=true" \
-d '{"installations":[{"installationRid":"ri.marketplace.main.block-set-installation.5b2d8f31-6c42-4a7e-9a13-8e0a3e6d9c52","targetVersion":{"type":"latest"},"overrides":{"ontology":{"ontologyRid":"ri.ontology.main.ontology.c1e96527-1a20-4c7b-b17a-b3c7cfc8f024","type":"set"}}}],"recommendations":[{"suffixFilter":"shared","type":"sameNamespace"}],"sourceFilter":{"excludedSources":["AUTO_MAPPED"]}}'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"inputs": {
"ri.marketplace.main.block-set-installation.5b2d8f31-6c42-4a7e-9a13-8e0a3e6d9c52": {
"inputs": {
"myDataset.address": {
"inputId": "0c47d2a9-83e1-4f6b-9d50-2a8b74e3c619",
"inputType": "DATA_SOURCE_COLUMN",
"optional": false,
"sources": [
"MANUAL"
],
"supportedTypes": [
{
"valueType": "STRING",
"type": "simple"
}
]
}
}
}
},
"errors": [
{
"severity": "BLOCKING",
"target": {
"type": "job"
},
"errorValue": {
"errorCode": "INVALID_ARGUMENT",
"errorName": "Marketplace:IncompatibleDefaultBuildOptions",
"parameters": {
"errorType": {
"kind": "installJob"
}
},
"type": "other"
}
}
]
}| Error Name | ||
|---|---|---|
Installation | Error Code | CONFLICT |
| Status Code | 409 | |
| Description | Uninstall has begun for the target installation. Create a new installation to install the product again. | |
| Parameters | installationRid | |
Ambiguous | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | A namespace recommendation strategy matches multiple installations of the same linked product. Narrow its suffix filter or use explicit recommendations. Overlapping recommendation inputs or sources are reported separately as `InstallationError` entries in the discovery response. | |
| Parameters | productId, installationRids | |
Conflicting | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | A recommendation supplies a product that is also included in the requested targets. Remove that recommendation. | |
| Parameters | recommendationInstallationRid, requestedInstallationRid | |
Discover | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | The request token does not have permission to edit one or more target installations and cannot discover their inputs. | |
| Parameters | installationRids | |
Duplicate | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | An installation occurs more than once in the target list. | |
| Parameters | installationRids | |
Installation | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The requested target version could not be found within the installation product and marketplace. | |
| Parameters | installationRid, targetVersion | |
Installation | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | One or more installations have product inputs without API names. Enable input API name generation for those products before interacting with them. | |
| Parameters | installationRids | |
Marketplace | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | ||
| Parameters | marketplaceInstallationRid | |
Installation | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The target products must belong to a single marketplace. | |
| Parameters | installationRids | |
Missing | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | At least one installation target must be supplied. | |
| Parameters | | |
Installation | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The target installations must belong to a single namespace. | |
| Parameters | installationRids | |
Installation | Error Code | CONFLICT |
| Status Code | 409 | |
| Description | The caller already has a preparing or idle draft for a target installation. Complete or abort the existing draft before preparing another job or discovering inputs for that installation. | |
| Parameters | installationRid, existingInstallationJobRid | |
Duplicate | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | More than one target installation uses the same product. | |
| Parameters | productId, installationRids | |
Max | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The number of installation targets exceeds the maximum supported by this operation. | |
| Parameters | installationsCount, maxInstallationsCount | |
Installation | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The target installations must have at most one resulting ontology after applying location overrides. | |
| Parameters | installationRids | |
Discover | Error Code | INTERNAL |
| Status Code | 500 | |
| Description | Marketplace could not complete input discovery. | |
| Parameters | errorName, errorCode | |
Invalid | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The target semantic version must be an exact major.minor.patch version with non-negative integer components and no leading zeros. Each component must be at most 2⁵³ - 2 (9,007,199,254,740,990). Version ranges, wildcards, prerelease identifiers, and build metadata are not supported. | |
| Parameters | version | |
See Errors for a general overview of errors in the platform.