Example editor widget with a text input field

This webhook is queried to determine the appearance of the sidebar widget of draft proposals. It can be used to set custom values in the proposal’s data field.

The layout is built up of a list of integration fields.

The POST request will contain this in its body:

Content Details Request
{
  type: 'proposal.editorWidget';
  integration: IntegrationSessionData;
  proposal: Proposal;
}

The response needs to be in the following shape.

{
  data: {
    fields: IntegrationField[]
  }
}

Input fields will modify properties in the proposal’s data field.