Delete a widget
DELETE
/widgets/{widgetId}
const url = 'https://api.example.com/v1/widgets/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.example.com/v1/widgets/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” widgetId
required
string
The unique identifier of the widget.
Responses
Section titled “ Responses ”The widget was deleted.
The requested resource does not exist.
Media type application/json
object
code
required
string
message
required
string
request_id
string
Example
{ "code": "invalid_request", "message": "The `name` field is required.", "request_id": "req_01H8Z9XJ7M3K4P5Q6R7S8T9V0W"}Maintained by EkLine