Create a record with an image or PDF 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 file 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////yH5
      BAEAAAEALAAAAAAJAAkAAAIMjI+pC+1wHk
      SOrbsKADs="
}

FileMaker information

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