Skip to content

fix: Use correct parent-child endpoint for TicketNotes (fixes 404 error)#1

Open
aybouzaglou wants to merge 1 commit into
tegwin:mainfrom
aybouzaglou:fix/ticket-notes-endpoint-v2
Open

fix: Use correct parent-child endpoint for TicketNotes (fixes 404 error)#1
aybouzaglou wants to merge 1 commit into
tegwin:mainfrom
aybouzaglou:fix/ticket-notes-endpoint-v2

Conversation

@aybouzaglou

Copy link
Copy Markdown

Summary

Fixes the autotask_create_ticket_note tool which was returning 404 errors when attempting to create ticket notes.

Problem

The Autotask REST API requires TicketNotes to be created using a parent-child URL pattern (/Tickets/{id}/Notes), not a standalone endpoint (/TicketNotes). The current implementation was using the incorrect endpoint, causing all note creation attempts to fail with HTTP 404.

Changes

  • Changed endpoint from POST /TicketNotes to POST /Tickets/{ticket_id}/Notes
  • Removed ticketID from request payload (now specified in URL path)
  • Updated docstrings to reflect correct endpoint pattern
  • Also fixed the same issue in autotask_update_ticket_status_with_note helper

Testing

Tested against Autotask instance (ww14.autotask.net):

  • ✅ Note creation now succeeds
  • ✅ Notes appear correctly in Autotask UI

Related

This fix aligns with Autotask REST API documentation on child collection access URLs.

The Autotask REST API requires TicketNotes to be created using a
parent-child URL pattern (/Tickets/{id}/Notes), not a standalone
endpoint (/TicketNotes).

Changes:
- Changed endpoint from POST /TicketNotes to POST /Tickets/{id}/Notes
- Removed ticketID from payload (now in URL path)
- Updated docstrings to reflect correct endpoint pattern

This fixes HTTP 404 errors when attempting to create ticket notes.

Tested against Autotask instance ww14.autotask.net.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant