Uploading files in Brightspot Content Management API
This guide will explain how to upload files to Brightspot records via CMA GraphQL mutation APIs.
Prerequisites for uploading a file
For endpoint configuration, see Custom Content Management API development and Hello Content Management API.
Introduction to uploading a file
Being that the official GraphQL spec does not currently support upload mutations, the CMA implements a popular community extension to the specification: GraphQL multipart request specification.
Background to uploading a file
Consider the following Image content class that will store our file and be configured as a mutable entry field on our endpoint:
Example of uploading a file
Previous Topic
Creating and updating records in Brightspot Content Management API
Next Topic
Custom Content Management API development