Script settings
Set up
Section titled “Set up”npm install @reminix/sdkimport { createClient } from "@reminix/sdk";
const reminix = createClient(); // reads REMINIX_API_KEYpip install reminixfrom reminix import Reminix
reminix = Reminix() # reads REMINIX_API_KEYnpm install -g @reminix/clireminix loginexport REMINIX_API_KEY="<your API key>"Get the workspace’s script settings
Section titled “Get the workspace’s script settings”GET /v1/script-settings
How the workspace governs scripts — e.g. whether publishing needs a second person.
await reminix.scriptSettings.get();reminix.script_settings.get()reminix script-settings getcurl -X GET "https://api.reminix.com/v1/script-settings" \ -H "Authorization: Bearer $REMINIX_API_KEY"Change the workspace’s script settings
Section titled “Change the workspace’s script settings”PATCH /v1/script-settings
Workspace owners and admins, or a workspace API key.
await reminix.scriptSettings.update();reminix.script_settings.update()reminix script-settings updatecurl -X PATCH "https://api.reminix.com/v1/script-settings" \ -H "Authorization: Bearer $REMINIX_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'| Field | Description |
|---|---|
publishNeedsSecondPerson | Publishing needs a person other than the one who asks: a publish becomes a request an owner or admin approves. |