Skip to main content
Skip table of contents

Examples with curl

Listing directories

This gives you an overview of the configured directories. This is also the place to find out about the id that you need to start a directory sync.

curl -u admin http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/

See the API documentation for elaborate documentation about the options

Our API is not actively checking for the Content-Type that you request, as by default we return json only. However, depending on your deployment, not passing the Content-Type header, might result in an error like: 403 XSRF check failed. That can be resolved by passing the Content-Type header and in some cases the Origin header as well:

curl -H "Content-Type: application/json" -H "Origin: https://your.domain"

Start a sync

curl -X POST http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/10000/actions/sync -u admin

List users

curl http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/10000/users -u admin

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.