Webhook creation with header authentication using API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 08-23-2024 03:16 AM
Hello,
I am trying to create a webhook using API as mentioned in https://developer.jamf.com/jamf-pro/reference/createwebhookbyid with <authentication_type>HEADER</authentication_type>
I am unable to find any documentation on how to pass the header information in the API. As per https://learn.jamf.com/en-US/bundle/jamf-pro-documentation-current/page/Webhooks.html
header information needs to be sent as key value pairs but not sure how to pass in the API.
I get this error,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Just found your post.
It´s all in the docu: https://learn.jamf.com/de-DE/bundle/jamf-pro-documentation-current/page/Webhooks.html
Just add your bearer token to the authentication.
If you call a Okta Workflow, you get the token if you user the API Endpoint. For other platforms take care that the token doesn´t expire.
best
Stephan
