Skip to main content
POST
Update Permission Provider Config
Use this API to update the permission provider configuration for a workspace. At least one of usePermissionProvider or permissionProviderConfig must be provided. The config is merged with the existing value, so e.g. the authToken is preserved when only the URL changes.
This endpoint uses API-key-level auth: pass x-velt-api-key and x-velt-auth-token as headers. You can obtain these from the Get Auth Tokens endpoint.
Defaults on first enable. If you enable the provider (usePermissionProvider: true) and no permissionProviderConfig exists yet, an empty config is seeded (permissionProviderUrl and authToken set to empty strings) and returned in the response data. Any permissionProviderConfig values you send in the same request are merged on top.

Endpoint

POST https://api.velt.dev/v2/workspace/permissionproviderconfig/update

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Request

Example Response

Success Response

Failure Response

If permissionProviderUrl is not empty and not a valid http(s) URL