/api/public/v1/profiles/restoreprofiles.restore
Restore up to 1,000 profiles from trash; per-profile results.
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. |
idsbody | array<string (uuid)> | Yes | (min 1 items, max 1000 items) |
Examples
curl -X POST "https://browlix.com/api/public/v1/profiles/restore" \
-H "Authorization: Bearer $BROWLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"command_id":"<uuid>","ids":["<id>"]}'Response
201 with { data, replayed: false, correlation_id } the first time; 200 with replayed: true when the same command_id and body come again.
| Field | Type | Always present | Description |
|---|---|---|---|
| data | object | Yes | |
| data.op | string | Yes | |
| data.total | integer | Yes | (min -9007199254740991, max 9007199254740991) |
| data.succeeded | integer | Yes | (min -9007199254740991, max 9007199254740991) |
| data.failed | integer | Yes | (min -9007199254740991, max 9007199254740991) |
| data.failures | array<object> | Yes | One entry per item that was refused, with its typed reason |
| data.failures[].id | string | No | |
| data.failures[].code | string | No | |
| data.created_ids | array<string (uuid)> | Yes | |
| data.selection_id | string (uuid) | Yes | The frozen set this bulk command applied to (replays reuse it) |
| correlation_id | string (uuid) | Yes | |
| replayed | boolean | No | true when this command_id was already applied and the stored receipt came back |
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 |
