{
  "opencollection": "1.0.0",
  "info": {
    "name": "Omni AI Model git configuration API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Model git configuration",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get git configuration",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of additional fields to include in the response.\n\n- `webhookSecret` - Include the webhook secret in the response\n"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves the git configuration for a shared model.\n"
        },
        {
          "info": {
            "name": "Create git configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a new git configuration for a shared model.\n"
        },
        {
          "info": {
            "name": "Update git configuration",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates the git configuration for a shared model. Oly provided fields will be updated."
        },
        {
          "info": {
            "name": "Delete git configuration",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Removes the git configuration from a shared model."
        },
        {
          "info": {
            "name": "Sync model with git repository",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git/sync",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Triggers a sync operation between the model and its configured git repository.\n\nThis will pull the latest changes from the repository and apply them to the model.\n"
        },
        {
          "info": {
            "name": "Create or update a pull request for a model branch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.omniapp.co/api/v1/models/:modelId/git/commit",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the shared model."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<Note>\n  This endpoint requires **Modeler** or **Connection Admin** permisisons.\n</Note>\n\nPushes a branch's model contents to git and creates or updates a pull request. This mirrors the **Create Pull Request** / **Update Pull Request** buttons in Omni allowing API consumers and AI agents to drive the pull request workflow programmatically.\n\nBy default, the endpoint automatically detects whether the git branch exists. If a branch doesn't exist, a successful request will create a new git branch an"
        }
      ]
    }
  ],
  "bundled": true
}