Update app surface settings
PUT
/api/v1/apps/surfaces
const url = 'https://example.com/api/v1/apps/surfaces';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"surface":"notes"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/apps/surfaces \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "surface": "notes" }'Updates the app surface settings. It requires a signed-in User with the account scope. It can return 400 if the request is invalid, 401 if the session is missing or expired and 403 if access is denied. Route: /api/v1/apps/surfaces. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enabled
required
boolean
surface
required
These gates protect external automation credentials. Browser sessions remain usable so a User can always restore their own access in Settings.
string
Responses
Section titled “Responses”Media typeapplication/json
object
effective_enabled
required
boolean
instance_enabled
required
boolean
surface
required
These gates protect external automation credentials. Browser sessions remain usable so a User can always restore their own access in Settings.
string
user_enabled
required
boolean
Example
{ "surface": "notes"}