Create a record with an image or PDF in a container field

To create a record for a table with one or more container fields, set the field with base64-encoded data. Only GIF, PNG, JPEG, TIFF, and PDF data types are supported. The POST body must contain a single valid record representation.

Component Description

HTTP method

POST

URL

https://host/fmi/odata/version/database-name/table-name

host – FileMaker Cloud or FileMaker Server host name

version – the OData version, always v4

database-name – the name of the hosted database

table-name - the name of the table

Example: /fmi/odata/v4/ContactMgmt/Contacts

Parameters

JSON example:

Copy
{
  "PrimaryKey": "BJONES",
  "First Name": "Bob",
  "Last Name": "Jones",
  "Photo": "R0lGODlhCQAJAIABAH9/f////yH5BAEAAAEALAAAAAAJAAkAAAIMjI+pC+1wHkSOrbsKADs="
}

FileMaker information

The media type a base64-encoded container value is inferred by comparing the first bytes of the data to expected values for the supported media types.