{
  "opencollection": "1.0.0",
  "info": {
    "name": "Castor EDC / CDMS Audit Trail Users API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://data.castoredc.com/api/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://data.castoredc.com/api/user"
          },
          "docs": "Lists the users the authenticated account can access."
        },
        {
          "info": {
            "name": "Retrieve a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://data.castoredc.com/api/user/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The user GUID."
              }
            ]
          },
          "docs": "Retrieves a single user by ID."
        },
        {
          "info": {
            "name": "List study users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://data.castoredc.com/api/study/:study_id/user",
            "params": [
              {
                "name": "study_id",
                "value": "",
                "type": "path",
                "description": "The study GUID (uppercase, 8-4-4-4-12 format)."
              }
            ]
          },
          "docs": "Lists the users who are members of a given study."
        }
      ]
    }
  ],
  "bundled": true
}