{
  "opencollection": "1.0.0",
  "info": {
    "name": "Optimizely Campaign REST Assets Schema API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Schema",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List schema objects",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.campaign.episerver.net/rest/schema/objects"
          },
          "docs": "Returns a list of all domain object types defined in the ODP schema, including their fields and configurations."
        },
        {
          "info": {
            "name": "Get a schema object",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.campaign.episerver.net/rest/schema/objects/:object_type",
            "params": [
              {
                "name": "object_type",
                "value": "",
                "type": "path",
                "description": "The type of object (e.g., products, orders)"
              }
            ]
          },
          "docs": "Retrieves the schema definition for a specific domain object type."
        },
        {
          "info": {
            "name": "Create a schema object",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.campaign.episerver.net/rest/schema/objects/:object_type",
            "params": [
              {
                "name": "object_type",
                "value": "",
                "type": "path",
                "description": "The type of object (e.g., products, orders)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new domain object type in the ODP schema."
        },
        {
          "info": {
            "name": "Create a schema field",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.campaign.episerver.net/rest/schema/objects/:object_type/fields",
            "params": [
              {
                "name": "object_type",
                "value": "",
                "type": "path",
                "description": "The type of object (e.g., products, orders)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a new field to an existing domain object type in the ODP schema."
        }
      ]
    }
  ],
  "bundled": true
}