Organizations overview

babylon-projekt/developer articles

Organizations are teams of people with a shared interest. Permissions to resources can be shared to teams instead of users.

Get your organizations

GET /user/organizations

List user organizations

GET /people/:namespace/organizations

Get a organization

GET /organizations/:id

Response

Note: Only visible organizations will be returned.

Status: 200 OK
{
  id: 1,
  name: "Babylon",
  member_ids: [1,2,3,4,6,7,8],
  oauth_application_uids: [
    "3023250f82464559c9911c63c67d9f55cf4b7382460c1f3c0e4155b55d18239a",
    "b27e21242f3bd6df490776e26466ade4e6b1845c07a12eff43b5ba1862788e52",
    "8081134e6b0692628719026f0578a0182454757cfa02f5d240f374b64e52e487",
    "3d7ba9cf62c1bf977a3063eb6e9eaa8abc5a8622e7647dc7bfdb4cf27cf1c957"
  ]
}

Get all organizations

Lists all organizations, in the order that they where created (desc) on babili.

GET /organizations

Response

Status: 200 OK
[
  {
    id: 1,
    name: "Babylon",
    member_ids: [1,2,3,4,6,7,8],
    oauth_application_uids: [
      "3023250f82464559c9911c63c67d9f55cf4b7382460c1f3c0e4155b55d18239a",
      "b27e21242f3bd6df490776e26466ade4e6b1845c07a12eff43b5ba1862788e52",
      "8081134e6b0692628719026f0578a0182454757cfa02f5d240f374b64e52e487",
      "3d7ba9cf62c1bf977a3063eb6e9eaa8abc5a8622e7647dc7bfdb4cf27cf1c957"
    ]
  }
]