zenpy icon indicating copy to clipboard operation
zenpy copied to clipboard

Invalid Endpoint Error When Attempting To Update Tickets With Comments

Open shaan150 opened this issue 3 years ago • 2 comments

Hi all,

I get the error message zenpy.lib.exception.APIException: {"error": "InvalidEndpoint", "description": "Not found"} when trying to update tickets with comments.

I am using the following code:

    for x in range(len(ticket_id)):
      ticket = zenpy_client.tickets(id=ticket_id[x])
      date = parser.parse(created_at[x])
      ticket.comment = Comment(body=plain_body[x],public=False,author_id=author_id[x],created_at=date)
      zenpy_client.tickets.update(ticket)

shaan150 avatar Aug 05 '21 13:08 shaan150

I'm getting a similar response trying to perform a delete on a Jira Link resource. You ever figure out the result of this one @shaan150 ?

deybhayden avatar Dec 07 '21 18:12 deybhayden

I'm getting a similar response trying to perform a delete on a Jira Link resource. You ever figure out the result of this one @shaan150 ?

It's been awhile but if i recall i ended up using the api instead as i couldn't get zenpy to work

shaan150 avatar Dec 07 '21 19:12 shaan150