Delete Preset
This endpoint allows you to delete an existing preset from the system. This operation is permanent and cannot be undone.
πΉ Endpoint Detailsβ
DELETE /api/v1/presets/{presetId}
π Authenticationβ
Header | Required | Description |
---|---|---|
Content-Type | Yes | Must be application/json |
Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Path Parametersβ
Parameter | Type | Required | Description |
---|---|---|---|
presetId | string | Yes | ID of the preset to delete |
π§© Request Exampleβ
curl -X DELETE "https://openapi.onlive.site/api/v1/presets/123e4567-e89b-12d3-a456-426614174001" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π₯ Responseβ
Success Response (200 OK)β
Field | Type | Description |
---|---|---|
id | string | ID of the deleted preset |
status | string | Status of the operation |
deletedAt | string (ISO 8601) | Timestamp when the preset was deleted |
Response Exampleβ
{
"id": "123e4567-e89b-12d3-a456-426614174001",
"status": "deleted",
"deletedAt": "2025-05-28T12:34:56Z"
}
π Notesβ
- Deleting a preset is permanent and cannot be undone
- Associated assets are not deleted, only the association is removed
- If a preset is referenced by other resources, the operation may fail
- You must have appropriate permissions to delete presets
β Error Responsesβ
Error Response Examplesβ
404 Not Foundβ
{
"statusCode": 404,
"message": "Preset not found",
"error": "Not Found"
}
403 Forbiddenβ
{
"statusCode": 403,
"message": "Insufficient permissions to delete this preset",
"error": "Forbidden"
}
409 Conflictβ
{
"statusCode": 409,
"message": "Preset cannot be deleted because it is currently in use by other resources",
"error": "Conflict"
}
β Common Use Casesβ
- π§Ή Cleanup Unused Presets: Remove presets that are no longer needed
- π Replace Outdated Configurations: Delete old presets before creating updated versions
- ποΈ Remove Test Presets: Clean up presets created for testing purposes
- π Security Management: Remove presets with sensitive configurations
400 Bad Requestβ
{
"statusCode": 400,
"message": "Invalid preset ID format"
}
401 Unauthorizedβ
{
"statusCode": 401,
"message": "Unauthorized access",
"error": "Unauthorized"
}