{
  "opencollection": "1.0.0",
  "info": {
    "name": "Spoke Depots Members API",
    "version": "v0.2b"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Members",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a new member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spoke.com/public/v0.2b/members",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a member with the given data in your team. Prefer using the [batch import endpoint](#operation/importMembers) for creating multiple members at once as it is more efficient."
        },
        {
          "info": {
            "name": "Update a member",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.spoke.com/public/v0.2b/members/:memberId",
            "params": [
              {
                "name": "memberId",
                "value": "",
                "type": "path",
                "description": "The member id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a member from your team."
        },
        {
          "info": {
            "name": "Remove a member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.spoke.com/public/v0.2b/members/:memberId",
            "params": [
              {
                "name": "memberId",
                "value": "",
                "type": "path",
                "description": "The member id"
              }
            ]
          },
          "docs": "Removes a member from your team. If the member also has driver access, the member will only have their operational role(s) revoked; thus not being listed among the team members, but will keep their driver access."
        },
        {
          "info": {
            "name": "Import multiple members",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spoke.com/public/v0.2b/members:import",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Import multiple members at once."
        }
      ]
    }
  ],
  "bundled": true
}