Delete a prompt
Deletes a specific prompt associated with a tune.
Parameters
id
(required)
The ID of the prompt to be deleted.
Returns
Returns 200 OK if the prompt was successfully deleted.
DELETE /tunes/:tune_id/prompts/:id
- cURL
- Node.js
- Python
curl -X DELETE -H "Authorization: Bearer $API_KEY" https://api.astria.ai/prompts/1
const fetch = require('node-fetch');
const API_URL = 'https://api.astria.ai/prompts/1';
const API_KEY = 'YOUR_API_KEY'; // Replace with your actual API key
const headers = { Authorization: `Bearer ${API_KEY}` }
fetch(API_URL, {
method: 'DELETE',
headers: headers
}).then(response => response.json())
import requests
API_URL = 'https://api.astria.ai/prompts/1'
API_KEY = 'YOUR_API_KEY' # Replace with your actual API key
headers = {
'Authorization': f'Bearer {API_KEY}'
}
response = requests.delete(API_URL, headers=headers)
Response
{
"message": "Prompt successfully deleted"
}