Skip to main content
PUT
/
api
/
business-logic-rulesets
/
{id}
/
default
Set a ruleset as the organization default
curl --request PUT \
  --url https://app.solya.app/api/business-logic-rulesets/{id}/default \
  --header 'Authorization: Bearer <token>'
{
  "createdAt": "2026-06-04T10:00:00.000Z",
  "description": "Rules specific to high-value product collections",
  "id": "ruleset-uuid-123",
  "isDefault": true,
  "name": "Premium Collection Rules",
  "tags": [
    "premium",
    "collection"
  ],
  "updatedAt": "2026-06-04T12:00:00.000Z"
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Path Parameters

id
string
required

Unique identifier of the ruleset (UUID)

Minimum string length: 1

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true