Skip to content

Update a portal

Request

Update an existing Dash portal, including the folders and permissions available to visitors, the URL slug and the passcode.

Security
bearerToken
Path
idstringrequired

The unique ID of the Portal

Bodyapplication/jsonrequired
namestring or null

Name of the Portal

Example:"Reseller portal"
slugstring or null

A human readable unique identifier, used in the Dash portal URL

Example:"reseller-portal"
whitelistedFolderFieldOptionIdsArray of strings or null

The folder FieldOptions which portal users will have permission to view/download assets from.

Example:
[ "4cb261ad-dffb-414e-89cf-6902e3031d44", "4e14dc90-eb7b-4fd2-87e5-e8968c236ec0" ]
welcomeMessageobject or null
showRecentlyAddedAssetsboolean or null

Whether this portal should include a preview of recently added assets

Example:true
passcodeobject

A passcode that must be provided when viewing a portal. Note that this is NOT a password and as such is stored in plain text

assetPermittedActionsstring

Permissions users have on assets they are viewing

Default:"VIEW_AND_DOWNLOAD"
Enum:"VIEW""VIEW_AND_DOWNLOAD"
Example:"VIEW"
curl -i -X PATCH \
  'https://api-v2.dash.app/portals/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Reseller portal",
    "slug": "reseller-portal",
    "whitelistedFolderFieldOptionIds": [
      "4cb261ad-dffb-414e-89cf-6902e3031d44",
      "4e14dc90-eb7b-4fd2-87e5-e8968c236ec0"
    ],
    "welcomeMessage": {
      "title": "Welcome to our reseller portal",
      "body": "Take a look around our reseller portal and quickly find all the assets you need. Happy browsing!"
    },
    "showRecentlyAddedAssets": true,
    "passcode": {
      "value": "example value"
    },
    "assetPermittedActions": "VIEW"
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "id": "55f9964c-095d-4b8b-bb5e-4118d2e76ad0", "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "name": "Reseller portal", "currentSlug": "reseller-portal", "slugs": [ … ], "whitelistedFolderFieldOptionIds": [ … ], "welcomeMessage": { … }, "showRecentlyAddedAssets": true, "passcode": "LetMeInPlease", "assetPermittedActions": "VIEW", "createdByUserId": "google-oauth2|123456789012345678901", "dateCreated": "2021-02-17T09:24:01.417Z" }, "permittedActions": [ { … } ] }