View all methods
scorecards.delete
Delete a scorecard.
Facts
| Method | POST https://api.getdx.com/scorecards.delete |
| Required scope | scorecards:write |
Arguments
| Name | Type | Description |
|---|---|---|
token |
Token |
Auth token passed as an HTTP header. |
id |
Text |
The unique ID of the scorecard. |
Example request
This is a typical request:
curl -X POST https://api.getdx.com/scorecards.delete?id=pht2wuldvjcb \
-H 'Accept: application/json' \
-H 'Authorization: Bearer xxxx-xxxxxxxxx-xxxx' \
-H 'Content-Type: application/json'
Example response
This is a typical success response:
{
"ok": true
}
Errors
This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing. Callers should always check the value of the ok param in the response.
| Error | Description |
|---|---|
not_authed |
No authentication token provided. |
invalid_auth |
Some aspect of authentication cannot be validated. |