View all methods
customData.delete
Delete a record based on unique reference and key pair, or ID.
Facts
| Method | POST https://yourinstance.getdx.net/api/customData.delete |
Arguments
If looking up by reference and key pair:
| Name | Type | Description |
|---|---|---|
token |
Token |
Auth token passed as an HTTP header. |
reference |
Text |
The domain reference. |
key |
Text |
The domain key. |
If looking up by ID:
| Name | Type | Description |
|---|---|---|
token |
Token |
Auth token passed as an HTTP header. |
id |
Text |
Generated unique ID for the record. |
Usage info
Custom data APIs allow you to add arbitrary JSON data to your DX database. The records are stored in the custom_data table that is queryable alongside all of your other DX data.
For more information about the supported SQL operators and functions available for querying the JSON values please reference the PostgreSQL documentation.
Example request
This is a typical request:
curl -X POST https://yourinstance.getdx.net/api/customData.delete \
-H 'Accept: application/json' \
-H 'Authorization: Bearer xxxx-xxxxxxxxx-xxxx' \
-H 'Content-Type: application/json' \
--data '{
"reference": "orgname/repo",
"key": "example"
}'