Portrait allows you to configure a source with sourceType: 'api'
. These sources can be manually managed through the API.
...
Info |
---|
The source name must be in lowercase (wrong: EM2008, correct; em2008) |
Example:
Code Block |
---|
|
- id: em2008
sourceType: 'api'
excludeKeysFromSuggestions: [ ] |
...
Remove all entries from an API source
Status |
---|
colour | RedPurple |
---|
title | DELETEPATCH |
---|
|
/api/sources/:sourceName
Code Block |
---|
|
curl -X 'DELETEPATCH' \
'http://localhost:8080/api/sources/em2008' \
-H 'accept: application/json' \
-H 'Authorization: Bearer yourToken' \ |
...