PUT
/
repos
/
{repo_id}
/
workspaces
/
{workspace_id}
/
preferences
curl --request PUT \
  --url https://api.diversion.dev/v0/repos/{repo_id}/workspaces/{workspace_id}/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sync_paths_rules": [
    "<string>"
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

workspace_id
string
required

The repo ID of the workspace.

Required string length: 3 - 128
Example:

"example_id"

Body

application/json

Preferences associated with a user for a workspace

sync_paths_rules
string[]
required

List of rules setting which paths to sync, an empty list means sync all

Response

202
_mintlify/placeholder

Request completed successfully