OrgManager

The OrgManager Documentation

Welcome to the OrgManager Documentation. You'll find comprehensive guides and instructions to help you start working with OrgManager as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

This endpoint contains information about the authenticated user.

gethttps://orgmanager.miguelpiedrafita.com/api/user
curl --request GET \
  --url https://orgmanager.miguelpiedrafita.com/api/user
var request = require("request");

var options = { method: 'GET',
  url: 'https://orgmanager.miguelpiedrafita.com/api/user' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/user")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://orgmanager.miguelpiedrafita.com/api/user");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/user"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Miguel Piedrafita",
  "email": "soy@miguelpiedrafita.com",
  "github_username": "m1guelpf",
  "created_at": "2017-01-25 18:44:32",
  "updated_at": "2017-02-16 19:40:50"
}

Response

OK

Suggest Edits

/user/orgs

 

This endpoint contains information about the authenticated user's organizations.

gethttps://orgmanager.miguelpiedrafita.com/api/user/orgs
curl --request GET \
  --url https://orgmanager.miguelpiedrafita.com/api/user/orgs
var request = require("request");

var options = { method: 'GET',
  url: 'https://orgmanager.miguelpiedrafita.com/api/user/orgs' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/user/orgs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://orgmanager.miguelpiedrafita.com/api/user/orgs");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/user/orgs"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Test Organization",
  "url": "https://api.github.com/orgs/test-org",
  "description": null,
  "avatar": "https://miguelpiedrafita.com/logo.png",
  "invitecount": 100
}

Response

OK

Suggest Edits

/org/[id]

 

This endpoint contains information about an organization, and allows to change password, update or delete it if you're his owner.

gethttps://orgmanager.miguelpiedrafita.com/api/org/[id]
curl --request GET \
  --url 'https://orgmanager.miguelpiedrafita.com/api/org/[id]'
var request = require("request");

var options = { method: 'GET',
  url: 'https://orgmanager.miguelpiedrafita.com/api/org/[id]' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/org/[id]")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://orgmanager.miguelpiedrafita.com/api/org/[id]");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/org/[id]"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Test Org",
  "url": "https://api.github.com/orgs/test-org",
  "description": null,
  "avatar": "https://avatars.githubusercontent.com/1",
  "invitecount": 0
}

Response

OK

posthttps://orgmanager.miguelpiedrafita.com/api/org/[id]
curl --request POST \
  --url 'https://orgmanager.miguelpiedrafita.com/api/org/[id]'
var request = require("request");

var options = { method: 'POST',
  url: 'https://orgmanager.miguelpiedrafita.com/api/org/[id]' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/org/[id]")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://orgmanager.miguelpiedrafita.com/api/org/[id]");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/org/[id]"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Test Org",
  "url": "https://api.github.com/orgs/test-org",
  "description": null,
  "avatar": "https://avatars.githubusercontent.com/1",
  "invitecount": 0,
  "password": "{newpassword}"
}

Response

OK

puthttps://orgmanager.miguelpiedrafita.com/api/org/[id]
curl --request PUT \
  --url 'https://orgmanager.miguelpiedrafita.com/api/org/[id]'
var request = require("request");

var options = { method: 'PUT',
  url: 'https://orgmanager.miguelpiedrafita.com/api/org/[id]' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/org/[id]")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://orgmanager.miguelpiedrafita.com/api/org/[id]");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/org/[id]"

response = requests.request("PUT", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Response

No Content

deletehttps://orgmanager.miguelpiedrafita.com/api/org/[id]
curl --request DELETE \
  --url 'https://orgmanager.miguelpiedrafita.com/api/org/[id]'
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://orgmanager.miguelpiedrafita.com/api/org/[id]' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/org/[id]")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://orgmanager.miguelpiedrafita.com/api/org/[id]");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/org/[id]"

response = requests.request("DELETE", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Response

No Content

Suggest Edits

/join/[id]

 

This endpoint allows the organization's owner to invite people to his organization.

posthttps://orgmanager.miguelpiedrafita.com/api/join/[id]
curl --request POST \
  --url 'https://orgmanager.miguelpiedrafita.com/api/join/[id]'
var request = require("request");

var options = { method: 'POST',
  url: 'https://orgmanager.miguelpiedrafita.com/api/join/[id]' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/join/[id]")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://orgmanager.miguelpiedrafita.com/api/join/[id]");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/join/[id]"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Response

No Content

Suggest Edits

/token/regenerate

 

This endpoint allows the authenticated user to regenerate his API token

gethttps://orgmanager.miguelpiedrafita.com/api/token/regenerate
curl --request GET \
  --url https://orgmanager.miguelpiedrafita.com/api/token/regenerate
var request = require("request");

var options = { method: 'GET',
  url: 'https://orgmanager.miguelpiedrafita.com/api/token/regenerate' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://orgmanager.miguelpiedrafita.com/api/token/regenerate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://orgmanager.miguelpiedrafita.com/api/token/regenerate");

xhr.send(data);
import requests

url = "https://orgmanager.miguelpiedrafita.com/api/token/regenerate"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{newtoken}

Response

OK