-
Notifications
You must be signed in to change notification settings - Fork 1.4k
absentify: Update to v2 webhook payload format #4085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
absentify: Update to v2 webhook payload format #4085
Conversation
- Enhanced connector description for better discoverability - Improved trigger summaries: "When a leave request is created/status changes" - Added detailed operation descriptions with use-case examples - Fixed security definition naming (undefined -> oauth2_auth) - Added x-ms-visibility: important for triggers - Added proper response codes (200, 201) for webhook subscriptions - Fixed validation issues: added consumes/produces, required body parameter - Added tags for better organization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
f5b5392 to
bec5417
Compare
- Add new v2 triggers (TriggerRequestCreatedV2, TriggerRequestStatusChangedV2) - New v2 endpoints: /webhooks/manage_ms_webhook_v2/request_created and request_status_changed - v2 payload uses body wrapper with event_type field - Mark v1 triggers as deprecated (visibility: advanced) - Keep v1 triggers for backward compatibility - Update version to 2.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- v2 triggers use /webhooks/manage_ms_webhook/... with payload_version: v2 - v1 deprecated triggers use /webhooks/manage_ms_webhook/..._v1 paths - Avoids duplicate path conflicts in swagger 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove _v1 endpoint paths (not implemented in API) - Keep only v2 triggers with payload_version parameter - Existing flows continue working (API defaults to v1 without payload_version) - New flows will use v2 payload format 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Hi @marc-on-github, Please confirm that the below swagger validation errors will not break the existing flows so we can approve this PR. ##[error]The operation has been deleted. This change breaks existing flows. ValuePath: operation/TriggerRequestCreated Source: NewSwagger |
Add comprehensive API operations for the absentify Plus plan: Members (11 operations): - Get all members, Get/Update/Delete member by ID - Get member by Microsoft ID, email, or custom ID - Update member approvers, allowance, and schedule Departments (4 operations): - Get all, Create, Update, Delete departments Leave Types (4 operations): - Get all, Create, Update, Delete leave types Requests (5 operations): - Get all, Create, Get/Update/Delete by ID Public Holidays (5 operations): - Get all calendars, Create, Get/Update/Delete by ID Workspace & Absences (2 operations): - Get workspace settings, Get absences by date range All Plus plan operations are marked with [Plus] prefix in summary and "Requires absentify Plus plan." in description. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.
apiDefinition.swagger.json, by runningpaconn validatecommand.apiProperties.jsonhas a valid brand color and doesn't use an invalid brand color,#007ee5or#ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.Summary
This PR updates the absentify connector to version 2.0 with improved webhook payload format and better descriptions.
Breaking Change Notice
This update introduces a new webhook payload format (v2). The connector now sends
payload_version: "v2"when registering webhooks.Backward Compatibility
payload_versionand will receive the v1 payload formatpayload_version: "v2"which triggers the new payload structurePayload Format Changes
v1 (existing flows):
{ "id": "...", "start": "2025-01-15", "details": { "status": "APPROVED", "requester_member": { ... } } }v2 (new flows):
{ "event_type": "request_created", "body": { "id": "...", "start": "2025-01-15", "status": "APPROVED", "requester_member": { ... } } }Changes
event_typeandbodywrapperpayload_versionparameter to webhook registration (internal, auto-set to "v2")undefinedtooauth2_authx-ms-visibility: importantfor triggers to ensure proper visibilityconsumes/produceswithapplication/jsonrequired: truefor webhook operations#6465a7Validation
✅ Successfully validated with
paconn validatecommand