This page documents webhook request payloads for organization events. For an overview, seeWebhook event types.

Detail object properties

For organization events, thedetailobject contains the following properties from theorganization resource schema:

  • created_at
  • external_id
  • group_id(returned as a string)
  • id(returned as a string)
  • name
  • shared_comments
  • shared_tickets
  • updated_at

Event types

The following sections contain example payloads andeventobject properties for organization event types.

Event type Payload and properties
zen:event-type:organization.created Support Organization Created
zen:event-type:organization.custom_field_changed Support Organization Custom Field Changed
zen:event-type:organization.deleted Support Organization Deleted
zen:event-type:organization.external_id_changed Support Organization External ID Changed
zen:event-type:organization.name_changed Support Organization Name Changed
zen:event-type:organization.tags_changed Support Organization Tags Changed

Support Organization Created

An organization was created.

             
{"type":"zen:event-type:organization.created","account_id":10973248,"subject":"zen:organization:6607619104125","id":"a540ab78-88f2-49e1-93a7-16152a6f782c","time":"2099-07-07T03:44:13Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T03:44:13Z","id":"6607619104125","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T03:44:13Z","group_id":null,"external_id":null},"event":{}}

The payload contains an emptyeventobject.

Support Organization Custom Field Changed

Acustom organization fieldwas changed.

             
{"type":"zen:event-type:organization.custom_field_changed","subject":"zen:organization:6607817309693","account_id":9732064,"id":"697bbd67-869c-4f1f-a47c-b296258c50c8","time":"2099-07-07T05:10:01Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T05:09:55Z","external_id":null,"group_id":null,"id":"6607817309693","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T05:10:01Z"},"event":{"current":{“价值”:true},"field":{"id":"6607814943229","title":"checkbox_3b02","type":"checkbox"},“以前”:{“价值”:false}}}

The event uses a different schema for a custom field with the lookup relationship field type:

             
{"type":"zen:event-type:organization.custom_field_changed","subject":"zen:organization:6607817309693","account_id":9732064,"id":"697bbd67-869c-4f1f-a47c-b296258c50c8","time":"2099-07-07T05:10:01Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T05:09:55Z","external_id":null,"group_id":null,"id":"6607817309693","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T05:10:01Z"},"event":{"current":{"relationship_target":"user","id":"2"},"custom_field":{"id":"6600020807549","title":"lookup_cuf1","type":"lookup"},“以前”:{"relationship_target":"user","id":"1"}}}

Theeventobject contains the following properties.

Property Data type Description
current object Contains the current custom field value
current.value Current field value. Iffield.typeis "lookup", this property is not included
current.relationship_target string Current type of object the lookup relationship field is targeting. Possible values are "ticket", "user" and "organization". Only included ifcustom_field.typeis "lookup"
current.id string Current id of the object the lookup relationship field is targeting. Only included ifcustom_field.typeis "lookup"
field object Contains the field's configuration
field.id string id for the custom field
field.title string Custom field name
field.type string Field data type. Possible values are "checkbox", "date", "decimal", "integer", "lookup", "regex", "tagger", "text", and "textarea"
previous object Contains the previous custom field value
previous.value Previous field value. Iffield.typeis "lookup", this property is not included
previous.relationship_target string Previous type of object the lookup relationship field is targeting. Possible values are "ticket", "user" and "organization". Only included ifcustom_field.typeis "lookup"
previous.id string Previous id of the object the lookup relationship field is targeting. Only included ifcustom_field.typeis "lookup"

Support Organization Deleted

An organization was deleted.

             
{"type":"zen:event-type:organization.deleted","account_id":10973196,"id":"b4fa7f87-a23a-407b-8e18-23493b6c3cb6","subject":"zen:organization:6607650028541","time":"2099-07-07T03:44:09Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T03:43:56Z","id":"6607650028541","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T03:44:09Z","group_id":null,"external_id":null},"event":{}}

The payload contains an emptyeventobject.

Support Organization External ID Changed

An organization's external id changed.

             
{"type":"zen:event-type:organization.external_id_changed","account_id":10963496,"id":"87cfb1a5-26fd-436c-ad55-0ac7bb080189","subject":"zen:organization:6607644529405","time":"2099-07-07T03:43:54Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T03:43:50Z","id":"6607644529405","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T03:43:54Z","group_id":null,"external_id":"6607644529405_deleted_CCC3"},"event":{"current":"6607644529405_deleted_CCC3",“以前”:"CCC3"}}

Theeventobject contains the following properties.

Property Data type Description
current string Current external id
previous string Previous external id

Support Organization Name Changed

An organization's name changed.

             
{"type":"zen:event-type:organization.name_changed","account_id":11883297,"id":"3ffea334-0d99-4e78-b2bb-f0faabd20c8c","subject":"zen:organization:6607649967101","time":"2099-07-07T03:43:03Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T03:42:52Z","id":"6607649967101","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T03:43:03Z","group_id":null,"external_id":null},"event":{"current":"Acme",“以前”:"Acme Motors"}}

Theeventobject contains the following properties.

Property Data type Description
current string Current name
previous string Previous name

Support Organization Tags Changed

An organization's tags changed.

             
{"type":"zen:event-type:organization.tags_changed","account_id":10973196,"id":"b4fa7f87-a23a-407b-8e18-23493b6c3cb6","subject":"zen:organization:6607650028541","time":"2099-07-07T03:44:09Z","zendesk_event_version":"2022-06-20","detail":{"created_at":"2099-07-07T03:43:56Z","external_id":null,"group_id":null,"id":"6607650028541","name":"Acme","shared_comments":false,"shared_tickets":false,"updated_at":"2099-07-07T03:44:09Z"},"event":{“添加ed":{"tags":["bar"]},"removed":{"tags":["foo"]}}}

Theeventobject contains the following properties.

Property Data type Description
added object Contains tags added to the organization
added.tags array of strings Tags added to the organization
removed object Contains tags removed from the organization
removed.tags array of strings Tags removed from the organization