Parameters expected for link field?

Am trying to create a link field, but getting an unexpected error.

  const component = await client.fields.create(component.id, {
    label: "Component",
    fieldType: "link",
    apiKey: "componentlink",
    validators: {
      itemItemType: {
        itemTypes: [item.id]
      }
    },
    appearance: {
      editor: 'link_select',
      parameters: {},
      addons: [],
    },
  });

Am getting the following error from the API:

ApiException: 422 INVALID_FIELD (details: {"field":"appearance.parameters","code":"VALIDATION_INVALID"})

The link field requires an empty parameters object per the docs.

hello, I’ve just run your code and that works for me. Can you please double check that component.id and item.id have good values?