API: Create article on behalf of customer

Infos:

  • Used Zammad version: 6.4.1
  • Used Zammad installation type: (docker-compose)
  • Operating system: linux

How do I create an article for a ticket on behalf of a user via the API?

this is my article:

article={
  "subject": "subject",
  "ticket_id": 29,
  "created_at": "2025-01-29 11:16:38",
  "updated_at": "0000-00-00 00:00:00",
  "body": " test ",
  "content_type": "text/html",
  "sender": "Customer",

  "from": "email@domain.com",
  "internal": False,
  "type": "email",
  "customer_id":"guess:email@domain.com",
  "sender_id":"23",
}

the user with the id does exist…

ok I think

'origin_by_id': 23,

does the trick…

https://docs.zammad.org/en/latest/api/intro.html#actions-on-behalf-of-other-users