/api/public/v1/preference-templatespreference_templates.create
Create a template (revision 1); values default to the canonical preference defaults.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
command_idbody | string (uuid) | Yes | Client-generated UUID for this command. Send the same id (and body) again to get the stored receipt instead of a second change; a different body under the same id is CONFLICT. |
namebody | string | Yes | (min length 1, max length 80) |
valuesbody | object | No | BrowserPreferences; omitted = canonical defaults |
is_defaultbody | boolean | No | Default: `false`. |
notebody | string | No | (max length 300) Default: `""`. |
Examples
curl -X POST "https://browlix.com/api/public/v1/preference-templates" \
-H "Authorization: Bearer $BROWLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"command_id":"<uuid>","name":"<name>"}'Response
201 with { data, replayed: false, correlation_id } the first time; 200 with replayed: true when the same command_id and body come again.
Errors
| Code | HTTP | Retryable |
|---|---|---|
| UNAUTHENTICATED | 401 | No |
| FORBIDDEN | 403 | No |
| RATE_LIMITED | 429 | Yes |
| VALIDATION_FAILED | 422 | No |
| CONFLICT | 409 | No |
| OUTCOME_UNKNOWN | 202 | Yes |
| DEPENDENCY_UNAVAILABLE | 503 | Yes |
| UNKNOWN | 500 | No |
