Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languageyaml
    - id: em2008
      sourceType: 'api'
      excludeKeysFromSuggestions: [ ]

...

Remove all entries from an API source

Status
colourRedPurple
titleDELETEPATCH
/api/sources/:sourceName

Code Block
languagebash
curl -X 'DELETEPATCH' \
  'http://localhost:8080/api/sources/em2008' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer yourToken' \

...