Update App
Update an App
curl --request PATCH \
--url https://mycluster.domino.tech/api/apps/beta/apps/{appId} \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"accessStatuses": [
{
"userId": "<string>"
}
],
"description": "<string>",
"discoverable": true,
"entryPoint": "<string>",
"mountDatasets": true,
"name": "<string>",
"renderIFrame": true,
"sendNotifications": true,
"version": {
"bundleId": "<string>",
"dataPlaneId": "<string>",
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": false,
"externalVolumeMountIds": [
"<string>"
],
"hardwareTierId": "<string>",
"netAppVolumeIds": [
"<string>"
],
"resolvedDfsCommitId": "<string>",
"resolvedGitCommitId": "<string>",
"resolvedImportedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"resolvedImportedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"vanityUrl": "<string>"
}
}
'import requests
url = "https://mycluster.domino.tech/api/apps/beta/apps/{appId}"
payload = {
"accessStatuses": [{ "userId": "<string>" }],
"description": "<string>",
"discoverable": True,
"entryPoint": "<string>",
"mountDatasets": True,
"name": "<string>",
"renderIFrame": True,
"sendNotifications": True,
"version": {
"bundleId": "<string>",
"dataPlaneId": "<string>",
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": False,
"externalVolumeMountIds": ["<string>"],
"hardwareTierId": "<string>",
"netAppVolumeIds": ["<string>"],
"resolvedDfsCommitId": "<string>",
"resolvedGitCommitId": "<string>",
"resolvedImportedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"resolvedImportedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"vanityUrl": "<string>"
}
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accessStatuses: [{userId: '<string>'}],
description: '<string>',
discoverable: true,
entryPoint: '<string>',
mountDatasets: true,
name: '<string>',
renderIFrame: true,
sendNotifications: true,
version: {
bundleId: '<string>',
dataPlaneId: '<string>',
description: '<string>',
dfsCommitId: '<string>',
entryScript: '<string>',
environmentId: '<string>',
environmentRevisionId: '<string>',
extendedIdentityPropagationToAppsEnabled: false,
externalVolumeMountIds: ['<string>'],
hardwareTierId: '<string>',
netAppVolumeIds: ['<string>'],
resolvedDfsCommitId: '<string>',
resolvedGitCommitId: '<string>',
resolvedImportedGitRepos: [{ref: '<string>', repoId: '<string>', repoName: '<string>'}],
resolvedImportedProjects: [
{
commitId: '<string>',
directoryName: '<string>',
ownerId: '<string>',
projectId: '<string>',
projectName: '<string>',
release: '<string>'
}
],
tags: [{key: '<string>', value: '<string>'}],
vanityUrl: '<string>'
}
})
};
fetch('https://mycluster.domino.tech/api/apps/beta/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/apps/beta/apps/{appId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'accessStatuses' => [
[
'userId' => '<string>'
]
],
'description' => '<string>',
'discoverable' => true,
'entryPoint' => '<string>',
'mountDatasets' => true,
'name' => '<string>',
'renderIFrame' => true,
'sendNotifications' => true,
'version' => [
'bundleId' => '<string>',
'dataPlaneId' => '<string>',
'description' => '<string>',
'dfsCommitId' => '<string>',
'entryScript' => '<string>',
'environmentId' => '<string>',
'environmentRevisionId' => '<string>',
'extendedIdentityPropagationToAppsEnabled' => false,
'externalVolumeMountIds' => [
'<string>'
],
'hardwareTierId' => '<string>',
'netAppVolumeIds' => [
'<string>'
],
'resolvedDfsCommitId' => '<string>',
'resolvedGitCommitId' => '<string>',
'resolvedImportedGitRepos' => [
[
'ref' => '<string>',
'repoId' => '<string>',
'repoName' => '<string>'
]
],
'resolvedImportedProjects' => [
[
'commitId' => '<string>',
'directoryName' => '<string>',
'ownerId' => '<string>',
'projectId' => '<string>',
'projectName' => '<string>',
'release' => '<string>'
]
],
'tags' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'vanityUrl' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/apps/beta/apps/{appId}"
payload := strings.NewReader("{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://mycluster.domino.tech/api/apps/beta/apps/{appId}")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/apps/beta/apps/{appId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"accessStatuses": [
{
"status": "ALLOWED",
"userId": "<string>"
}
],
"configurationType": "STANDARD",
"discoverable": true,
"entryPoint": "<string>",
"id": "<string>",
"mountDatasets": true,
"name": "<string>",
"project": {
"id": "<string>",
"name": "<string>",
"ownerId": "<string>",
"ownerUsername": "<string>",
"projectType": "Analytic"
},
"renderIFrame": true,
"url": "<string>",
"views": 123,
"visibility": "AUTHENTICATED",
"currentVersion": {
"createdAt": 123,
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": true,
"externalVolumeMountIds": [
"<string>"
],
"hardwareTierId": "<string>",
"id": "<string>",
"netAppVolumeIds": [
"<string>"
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"updatedAt": 123,
"autoscalingSpecification": {
"enabled": true,
"maxReplicas": 15,
"minReplicas": 15,
"scaleDownStabilizationWindowSeconds": 1800,
"scaleUpStabilizationWindowSeconds": 1800,
"targetCpuAvgUtilizationPct": 50,
"targetMemoryAvgUtilizationPct": 50,
"useSessionAffinity": true
},
"bundleId": "<string>",
"bundleName": "<string>",
"currentInstance": {
"createdAt": 123,
"id": "<string>",
"status": "<string>",
"describeUrl": "<string>",
"dfsCommitId": "<string>",
"gitCommitId": "<string>"
},
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"gitRef": {
"type": "head",
"value": "<string>"
},
"publisher": {
"id": "<string>",
"name": "<string>"
},
"resolvedCommits": {
"dfsCommitId": "<string>",
"gitCommitId": "<string>",
"importedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"importedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
]
},
"vanityUrl": "<string>",
"versionNumber": 123
},
"description": "<string>",
"properties": [
{
"fields": [
{
"propertyId": "<string>",
"propertyLabel": "<string>",
"status": "active",
"type": "text",
"updatedAt": 123,
"updatedBy": {
"userId": "<string>",
"username": "<string>"
},
"value": "<string>"
}
],
"groupName": "<string>"
}
],
"publisher": {
"id": "<string>",
"name": "<string>"
},
"taxonomyTags": [
{
"id": "<string>",
"label": "<string>",
"namespaceId": "<string>",
"description": "<string>",
"fullPath": [
"<string>"
],
"namespaceLabel": "<string>"
}
],
"thumbnailEtag": "<string>",
"updatedAt": 123,
"vanityUrl": "<string>"
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Path Parameters
The id of the app to update.
Body
Request to update an app
Request body for updating an app. All fields are optional; omitted fields preserve existing values. The side effects of an update depend on which fields changed:
- Reproducibility fields (mountDatasets, and any reproducibility fields inside the nested version object such as dfsCommitId, gitRef, environmentId, environmentRevisionId, externalVolumeMountIds, netAppVolumeIds, and entryScript) create a new app version and stop the currently running instance. Note: bundleId is immutable after creation and is not affected by updates.
- Execution fields (renderIFrame, and execution fields inside the nested version object such as hardwareTierId, autoscalingSpecification, and vanityUrl) update the version in-place, stop the running instance, and restart from the same version.
- Metadata fields (name, description, entryPoint, visibility, accessStatuses, discoverable) are updated in-place without restarting.
Access statuses for the app. Metadata field: updated without restarting.
Show child attributes
Show child attributes
App description. Metadata field: updated without restarting.
Whether the app is discoverable. Metadata field: updated without restarting.
App entry point. Metadata field: updated without restarting.
Whether to mount datasets. Reproducibility field: changing this creates a new version.
Display name for the app. Metadata field: updated without restarting.
Whether to render the app in an iframe. Execution field: changing this triggers a restart.
When access is granted to new users via accessStatuses, controls whether those users receive an email notification. Defaults to false when omitted.
Show child attributes
Show child attributes
App visibility level. Metadata field: updated without restarting.
AUTHENTICATED, GRANT_BASED, GRANT_BASED_STRICT, PUBLIC Response
Success
Show child attributes
Show child attributes
Type of configuration for the app which determines different deployment resources and settings.
STANDARD, AISYSTEM Show child attributes
Show child attributes
AUTHENTICATED, GRANT_BASED, GRANT_BASED_STRICT, PUBLIC The most recently started (which may be different from the most recently created) version of this App. If no version has been started, defaults to most recently created version.
Show child attributes
Show child attributes
Property values assigned to this app, grouped by group name.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Taxonomy tags assigned to this app. Omitted when the taxonomy feature is disabled.
Show child attributes
Show child attributes
Was this page helpful?
curl --request PATCH \
--url https://mycluster.domino.tech/api/apps/beta/apps/{appId} \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"accessStatuses": [
{
"userId": "<string>"
}
],
"description": "<string>",
"discoverable": true,
"entryPoint": "<string>",
"mountDatasets": true,
"name": "<string>",
"renderIFrame": true,
"sendNotifications": true,
"version": {
"bundleId": "<string>",
"dataPlaneId": "<string>",
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": false,
"externalVolumeMountIds": [
"<string>"
],
"hardwareTierId": "<string>",
"netAppVolumeIds": [
"<string>"
],
"resolvedDfsCommitId": "<string>",
"resolvedGitCommitId": "<string>",
"resolvedImportedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"resolvedImportedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"vanityUrl": "<string>"
}
}
'import requests
url = "https://mycluster.domino.tech/api/apps/beta/apps/{appId}"
payload = {
"accessStatuses": [{ "userId": "<string>" }],
"description": "<string>",
"discoverable": True,
"entryPoint": "<string>",
"mountDatasets": True,
"name": "<string>",
"renderIFrame": True,
"sendNotifications": True,
"version": {
"bundleId": "<string>",
"dataPlaneId": "<string>",
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": False,
"externalVolumeMountIds": ["<string>"],
"hardwareTierId": "<string>",
"netAppVolumeIds": ["<string>"],
"resolvedDfsCommitId": "<string>",
"resolvedGitCommitId": "<string>",
"resolvedImportedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"resolvedImportedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"vanityUrl": "<string>"
}
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accessStatuses: [{userId: '<string>'}],
description: '<string>',
discoverable: true,
entryPoint: '<string>',
mountDatasets: true,
name: '<string>',
renderIFrame: true,
sendNotifications: true,
version: {
bundleId: '<string>',
dataPlaneId: '<string>',
description: '<string>',
dfsCommitId: '<string>',
entryScript: '<string>',
environmentId: '<string>',
environmentRevisionId: '<string>',
extendedIdentityPropagationToAppsEnabled: false,
externalVolumeMountIds: ['<string>'],
hardwareTierId: '<string>',
netAppVolumeIds: ['<string>'],
resolvedDfsCommitId: '<string>',
resolvedGitCommitId: '<string>',
resolvedImportedGitRepos: [{ref: '<string>', repoId: '<string>', repoName: '<string>'}],
resolvedImportedProjects: [
{
commitId: '<string>',
directoryName: '<string>',
ownerId: '<string>',
projectId: '<string>',
projectName: '<string>',
release: '<string>'
}
],
tags: [{key: '<string>', value: '<string>'}],
vanityUrl: '<string>'
}
})
};
fetch('https://mycluster.domino.tech/api/apps/beta/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/apps/beta/apps/{appId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'accessStatuses' => [
[
'userId' => '<string>'
]
],
'description' => '<string>',
'discoverable' => true,
'entryPoint' => '<string>',
'mountDatasets' => true,
'name' => '<string>',
'renderIFrame' => true,
'sendNotifications' => true,
'version' => [
'bundleId' => '<string>',
'dataPlaneId' => '<string>',
'description' => '<string>',
'dfsCommitId' => '<string>',
'entryScript' => '<string>',
'environmentId' => '<string>',
'environmentRevisionId' => '<string>',
'extendedIdentityPropagationToAppsEnabled' => false,
'externalVolumeMountIds' => [
'<string>'
],
'hardwareTierId' => '<string>',
'netAppVolumeIds' => [
'<string>'
],
'resolvedDfsCommitId' => '<string>',
'resolvedGitCommitId' => '<string>',
'resolvedImportedGitRepos' => [
[
'ref' => '<string>',
'repoId' => '<string>',
'repoName' => '<string>'
]
],
'resolvedImportedProjects' => [
[
'commitId' => '<string>',
'directoryName' => '<string>',
'ownerId' => '<string>',
'projectId' => '<string>',
'projectName' => '<string>',
'release' => '<string>'
]
],
'tags' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'vanityUrl' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/apps/beta/apps/{appId}"
payload := strings.NewReader("{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://mycluster.domino.tech/api/apps/beta/apps/{appId}")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/apps/beta/apps/{appId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accessStatuses\": [\n {\n \"userId\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"discoverable\": true,\n \"entryPoint\": \"<string>\",\n \"mountDatasets\": true,\n \"name\": \"<string>\",\n \"renderIFrame\": true,\n \"sendNotifications\": true,\n \"version\": {\n \"bundleId\": \"<string>\",\n \"dataPlaneId\": \"<string>\",\n \"description\": \"<string>\",\n \"dfsCommitId\": \"<string>\",\n \"entryScript\": \"<string>\",\n \"environmentId\": \"<string>\",\n \"environmentRevisionId\": \"<string>\",\n \"extendedIdentityPropagationToAppsEnabled\": false,\n \"externalVolumeMountIds\": [\n \"<string>\"\n ],\n \"hardwareTierId\": \"<string>\",\n \"netAppVolumeIds\": [\n \"<string>\"\n ],\n \"resolvedDfsCommitId\": \"<string>\",\n \"resolvedGitCommitId\": \"<string>\",\n \"resolvedImportedGitRepos\": [\n {\n \"ref\": \"<string>\",\n \"repoId\": \"<string>\",\n \"repoName\": \"<string>\"\n }\n ],\n \"resolvedImportedProjects\": [\n {\n \"commitId\": \"<string>\",\n \"directoryName\": \"<string>\",\n \"ownerId\": \"<string>\",\n \"projectId\": \"<string>\",\n \"projectName\": \"<string>\",\n \"release\": \"<string>\"\n }\n ],\n \"tags\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"vanityUrl\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"accessStatuses": [
{
"status": "ALLOWED",
"userId": "<string>"
}
],
"configurationType": "STANDARD",
"discoverable": true,
"entryPoint": "<string>",
"id": "<string>",
"mountDatasets": true,
"name": "<string>",
"project": {
"id": "<string>",
"name": "<string>",
"ownerId": "<string>",
"ownerUsername": "<string>",
"projectType": "Analytic"
},
"renderIFrame": true,
"url": "<string>",
"views": 123,
"visibility": "AUTHENTICATED",
"currentVersion": {
"createdAt": 123,
"environmentId": "<string>",
"environmentRevisionId": "<string>",
"extendedIdentityPropagationToAppsEnabled": true,
"externalVolumeMountIds": [
"<string>"
],
"hardwareTierId": "<string>",
"id": "<string>",
"netAppVolumeIds": [
"<string>"
],
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"updatedAt": 123,
"autoscalingSpecification": {
"enabled": true,
"maxReplicas": 15,
"minReplicas": 15,
"scaleDownStabilizationWindowSeconds": 1800,
"scaleUpStabilizationWindowSeconds": 1800,
"targetCpuAvgUtilizationPct": 50,
"targetMemoryAvgUtilizationPct": 50,
"useSessionAffinity": true
},
"bundleId": "<string>",
"bundleName": "<string>",
"currentInstance": {
"createdAt": 123,
"id": "<string>",
"status": "<string>",
"describeUrl": "<string>",
"dfsCommitId": "<string>",
"gitCommitId": "<string>"
},
"description": "<string>",
"dfsCommitId": "<string>",
"entryScript": "<string>",
"gitRef": {
"type": "head",
"value": "<string>"
},
"publisher": {
"id": "<string>",
"name": "<string>"
},
"resolvedCommits": {
"dfsCommitId": "<string>",
"gitCommitId": "<string>",
"importedGitRepos": [
{
"ref": "<string>",
"repoId": "<string>",
"repoName": "<string>"
}
],
"importedProjects": [
{
"commitId": "<string>",
"directoryName": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"release": "<string>"
}
]
},
"vanityUrl": "<string>",
"versionNumber": 123
},
"description": "<string>",
"properties": [
{
"fields": [
{
"propertyId": "<string>",
"propertyLabel": "<string>",
"status": "active",
"type": "text",
"updatedAt": 123,
"updatedBy": {
"userId": "<string>",
"username": "<string>"
},
"value": "<string>"
}
],
"groupName": "<string>"
}
],
"publisher": {
"id": "<string>",
"name": "<string>"
},
"taxonomyTags": [
{
"id": "<string>",
"label": "<string>",
"namespaceId": "<string>",
"description": "<string>",
"fullPath": [
"<string>"
],
"namespaceLabel": "<string>"
}
],
"thumbnailEtag": "<string>",
"updatedAt": 123,
"vanityUrl": "<string>"
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}