Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The individual Board fields in the field collection are:

field_customaccme_board_name: A select field expecting the machine name value of the Board.

field_customaccme_board_id: A free text field.

...

field_name: The profile field machine name. This may be different for each customer. The default value is field_customaccme_boardsids. You can verify this value with your project manager.

...

Code Block
breakoutModefull-width
curl -X POST -H "Content-Type: application/json" -u 'USER:PASSWORD' https://your-domain.com/field_collection_item.json -d \
'{"host_entity":{"id":"127","resource":"profile2"},"field_name":"field_customaccme_boardsids","field_customaccme_board_id":"PA12345","field_customaccme_board_name":"abim"}'
Code Block
breakoutModefull-width
curl -X POST -H "Content-Type: application/json" -u 'USER:PASSWORD' https://your-domain.com/field_collection_item.json -d \
'{"host_entity":{"id":"127","resource":"profile2"},"field_name":"field_customaccme_boardsids","field_customaccme_board_id":"DE09876","field_customaccme_board_name":"abpmr"}'

A successful return provides the id information of the newly created field_collection_item entity.

...