Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
meta {
|
|
name: Bulk Dismiss Conflicts
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/conflicts/bulk-dismiss
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{authToken}}
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"conflict_ids": [
|
|
"{{conflictId1}}",
|
|
"{{conflictId2}}"
|
|
]
|
|
}
|
|
}
|
|
|
|
script:post-response {
|
|
function onResponse(res) {
|
|
if (res.getStatus() === 200) {
|
|
tests['Bulk dismiss successful'] = true;
|
|
const body = res.getBody();
|
|
tests['Has results array'] = Array.isArray(body.results);
|
|
tests['Has total count'] = body.total !== undefined;
|
|
tests['Has success count'] = body.success !== undefined;
|
|
tests['Has failed count'] = body.failed !== undefined;
|
|
} else {
|
|
tests['Bulk dismiss failed'] = false;
|
|
}
|
|
}
|
|
onResponse(res);
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Bulk Dismiss Conflicts
|
|
|
|
Dismisses multiple sync conflicts without resolving them. This removes them from the conflict list while leaving the data unchanged.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/conflicts/bulk-dismiss
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Request Body:**
|
|
- `conflict_ids` (array): Array of conflict UUIDs to dismiss
|
|
|
|
**Response:**
|
|
- `results` (array): Results for each dismissal
|
|
- `total` (number): Total number of conflicts processed
|
|
- `success` (number): Number of successfully dismissed conflicts
|
|
- `failed` (number): Number of failed dismissals
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid request data
|
|
- 401: Unauthorized
|
|
- 403: Forbidden
|
|
- 404: One or more conflicts not found
|
|
- 500: Internal server error
|
|
|
|
**Example:**
|
|
```json
|
|
{
|
|
"conflict_ids": ["uuid-1", "uuid-2"]
|
|
}
|
|
```
|
|
|
|
**Note:** Dismissing a conflict removes it from the conflict list but does not merge or resolve the conflicting data. Use this when you want to ignore a conflict and handle it manually.
|
|
}
|