Create Definitions
CreateDefinitions creates one-many new Definitions for the specified ConnectorVersion. For simple cases, it’s recommended to create Definitions individually, however this endpoint can be used to create multiple Definitions for cases where one Definition references another.
Definitions with cyclic references can be created in one API call, see the documentation for the
DefinitionCreate schema for more info.
Authorizations
Path Parameters
Body
DefinitionsCreate is the payload used to create new Definitions. Each definition can reference another definition in the same request using the following syntax:
New definitions may also reference existing definitions, however they use the proper URL syntax:
Note, the $refs stored in GCS are the
gs://URLs. The API must transform the URLs to the correct public URL. Ideally, the Definition'snamewould be in the URL, but this would cause issues if a user wanted to rename a Definition, which is something I think we should support. For now usingidis fine, but if we changed to in the future, we'd need a way to iterate over all Definitions referencing the one being renamed and update the $ref URLs.
For referencing existing definitions, the definition name must already exist within the scope of the current Connector and Version.
Each definition must have matching dataMediaTypes and schema.mediaType values.