schemas

Define a new schema for a linked collection. When creating a schema with this endpoint, ensure that the JSON payload is completely unescaped. Incorrectly escaped JSON formats can lead to errors.

post/groups/{groupId}/apps/{appId}/schemas

Request

  • Base URL
    https://services.cloud.mongodb.com/api/admin/v3.0
  • URL
    https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/schemas
  • Auth
    HTTP bearer

Request body

relationshipsSchemaRelationships

Relationships to foreign collections. Each field name is a property in the schema. The corresponding value is a relationship definition for that field.

Response

Ok

_idstring required

Changes

    • breaking

      removed the enum value undefined of the request property /////

    • info

      added the new null enum value to the request property /////

    • breaking

      added subschema #1 to the request body allOf list

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      the response property became required for the status

    • info

      the response property became required for the status