v50

latestOpenAPI 3.1.0raw.githubusercontent.com2025-06-09181183330.0 KB
services

Generate a JSON schema from sample

Sample a subset of documents in a collection to generate a JSON schema.

post/groups/{groupId}/apps/{appId}/services/{serviceId}/commands/generate_schema

Request body

database_namestring required

The name of the database that contains the collection.

collection_namestring required

The name of the collection to sample and generate a schema for.

limitinteger required

The maximum number of documents to include in the sample.

Response

Successfully generated schema

schemaobject

The generated JSON schema