{"action":"created","comment":{"url":"https://api.github.com/repos/sdelements/slate/pulls/comments/76093293","id":76093293,"diff_hunk":"@@ -57,12 +80,118 @@ HTTP/1.1 200 OK\n Content-Type: application/json\n \n {\n-    \"id\": \"PR4\",\n-    \"name\": \"Manage Project\",\n-    \"description\": \"Can change project survey, ...\"\n+    \"id\": \"CPR1\",\n+    \"name\": \"Custom Role\",\n+    \"description\": \"Can view project.\",\n+    \"permissions\": [\n+        \"view_project\"\n+    ]\n }\n ```\n \n-This endpoint returns a specific Project Role resource, specified its id.\n+This endpoint returns a specific Project Role resource, specified by its id.\n \n **`GET /api/v2/project-roles/{project_role_id}/`**\n+\n+### URL Parameters\n+\n+Parameter         | Description\n+----------------- | -----------\n+project_role_id   | The id of the Project Role to retrieve.\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+## Create a New Project Role\n+\n+```http\n+POST /api/v2/project-roles/ HTTP/1.1\n+Accept: application/json\n+Authorization: Token \"YOUR SDE ACCESS TOKEN\"\n+\n+{\n+    \"name\": \"New Project Role\",\n+    \"description\": \"Can view project!\",\n+    \"inherits_from\": \"PR6\"","path":"source/includes/project_roles.md","position":99,"original_position":99,"commit_id":"3b6c7a80934e38ef79117ba27628aad74ee20cf0","original_commit_id":"3b6c7a80934e38ef79117ba27628aad74ee20cf0","user":{"login":"jnlantos","id":3140576,"avatar_url":"https://avatars.githubusercontent.com/u/3140576?v=3","gravatar_id":"","url":"https://api.github.com/users/jnlantos","html_url":"https://github.com/jnlantos","followers_url":"https://api.github.com/users/jnlantos/followers","following_url":"https://api.github.com/users/jnlantos/following{/other_user}","gists_url":"https://api.github.com/users/jnlantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jnlantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnlantos/subscriptions","organizations_url":"https://api.github.com/users/jnlantos/orgs","repos_url":"https://api.github.com/users/jnlantos/repos","events_url":"https://api.github.com/users/jnlantos/events{/privacy}","received_events_url":"https://api.github.com/users/jnlantos/received_events","type":"User","site_admin":false},"body":"I think I want to change this to 'inherit_from' instead of 'inherits_from'","created_at":"2016-08-24T16:42:04Z","updated_at":"2016-08-24T16:42:04Z","html_url":"https://github.com/sdelements/slate/pull/104#discussion_r76093293","pull_request_url":"https://api.github.com/repos/sdelements/slate/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/sdelements/slate/pulls/comments/76093293"},"html":{"href":"https://github.com/sdelements/slate/pull/104#discussion_r76093293"},"pull_request":{"href":"https://api.github.com/repos/sdelements/slate/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/sdelements/slate/pulls/104","id":82496035,"html_url":"https://github.com/sdelements/slate/pull/104","diff_url":"https://github.com/sdelements/slate/pull/104.diff","patch_url":"https://github.com/sdelements/slate/pull/104.patch","issue_url":"https://api.github.com/repos/sdelements/slate/issues/104","number":104,"state":"open","locked":false,"title":"Make Project Role writable","user":{"login":"jnlantos","id":3140576,"avatar_url":"https://avatars.githubusercontent.com/u/3140576?v=3","gravatar_id":"","url":"https://api.github.com/users/jnlantos","html_url":"https://github.com/jnlantos","followers_url":"https://api.github.com/users/jnlantos/followers","following_url":"https://api.github.com/users/jnlantos/following{/other_user}","gists_url":"https://api.github.com/users/jnlantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jnlantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnlantos/subscriptions","organizations_url":"https://api.github.com/users/jnlantos/orgs","repos_url":"https://api.github.com/users/jnlantos/repos","events_url":"https://api.github.com/users/jnlantos/events{/privacy}","received_events_url":"https://api.github.com/users/jnlantos/received_events","type":"User","site_admin":false},"body":"Refs SDE-3022","created_at":"2016-08-24T07:46:53Z","updated_at":"2016-08-24T16:42:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"754617615c670bae1a41e7e3965585bd4ce84ede","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sdelements/slate/pulls/104/commits","review_comments_url":"https://api.github.com/repos/sdelements/slate/pulls/104/comments","review_comment_url":"https://api.github.com/repos/sdelements/slate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdelements/slate/issues/104/comments","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/3b6c7a80934e38ef79117ba27628aad74ee20cf0","head":{"label":"sdelements:feature/3022_project_role_writable","ref":"feature/3022_project_role_writable","sha":"3b6c7a80934e38ef79117ba27628aad74ee20cf0","user":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"repo":{"id":37938251,"name":"slate","full_name":"sdelements/slate","owner":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdelements/slate","description":"SD Elements - API v2 Documentation","fork":false,"url":"https://api.github.com/repos/sdelements/slate","forks_url":"https://api.github.com/repos/sdelements/slate/forks","keys_url":"https://api.github.com/repos/sdelements/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdelements/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdelements/slate/teams","hooks_url":"https://api.github.com/repos/sdelements/slate/hooks","issue_events_url":"https://api.github.com/repos/sdelements/slate/issues/events{/number}","events_url":"https://api.github.com/repos/sdelements/slate/events","assignees_url":"https://api.github.com/repos/sdelements/slate/assignees{/user}","branches_url":"https://api.github.com/repos/sdelements/slate/branches{/branch}","tags_url":"https://api.github.com/repos/sdelements/slate/tags","blobs_url":"https://api.github.com/repos/sdelements/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdelements/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdelements/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdelements/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/sdelements/slate/languages","stargazers_url":"https://api.github.com/repos/sdelements/slate/stargazers","contributors_url":"https://api.github.com/repos/sdelements/slate/contributors","subscribers_url":"https://api.github.com/repos/sdelements/slate/subscribers","subscription_url":"https://api.github.com/repos/sdelements/slate/subscription","commits_url":"https://api.github.com/repos/sdelements/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdelements/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdelements/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdelements/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdelements/slate/contents/{+path}","compare_url":"https://api.github.com/repos/sdelements/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdelements/slate/merges","archive_url":"https://api.github.com/repos/sdelements/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdelements/slate/downloads","issues_url":"https://api.github.com/repos/sdelements/slate/issues{/number}","pulls_url":"https://api.github.com/repos/sdelements/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/sdelements/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/sdelements/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdelements/slate/labels{/name}","releases_url":"https://api.github.com/repos/sdelements/slate/releases{/id}","deployments_url":"https://api.github.com/repos/sdelements/slate/deployments","created_at":"2015-06-23T18:48:14Z","updated_at":"2016-08-05T23:46:56Z","pushed_at":"2016-08-24T07:46:53Z","git_url":"git://github.com/sdelements/slate.git","ssh_url":"git@github.com:sdelements/slate.git","clone_url":"https://github.com/sdelements/slate.git","svn_url":"https://github.com/sdelements/slate","homepage":"https://api.sdelements.com","size":905,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":5,"default_branch":"master"}},"base":{"label":"sdelements:master","ref":"master","sha":"f4add05d77ceac96d86a25e3aceed7fddeb73be3","user":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"repo":{"id":37938251,"name":"slate","full_name":"sdelements/slate","owner":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdelements/slate","description":"SD Elements - API v2 Documentation","fork":false,"url":"https://api.github.com/repos/sdelements/slate","forks_url":"https://api.github.com/repos/sdelements/slate/forks","keys_url":"https://api.github.com/repos/sdelements/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdelements/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdelements/slate/teams","hooks_url":"https://api.github.com/repos/sdelements/slate/hooks","issue_events_url":"https://api.github.com/repos/sdelements/slate/issues/events{/number}","events_url":"https://api.github.com/repos/sdelements/slate/events","assignees_url":"https://api.github.com/repos/sdelements/slate/assignees{/user}","branches_url":"https://api.github.com/repos/sdelements/slate/branches{/branch}","tags_url":"https://api.github.com/repos/sdelements/slate/tags","blobs_url":"https://api.github.com/repos/sdelements/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdelements/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdelements/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdelements/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/sdelements/slate/languages","stargazers_url":"https://api.github.com/repos/sdelements/slate/stargazers","contributors_url":"https://api.github.com/repos/sdelements/slate/contributors","subscribers_url":"https://api.github.com/repos/sdelements/slate/subscribers","subscription_url":"https://api.github.com/repos/sdelements/slate/subscription","commits_url":"https://api.github.com/repos/sdelements/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdelements/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdelements/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdelements/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdelements/slate/contents/{+path}","compare_url":"https://api.github.com/repos/sdelements/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdelements/slate/merges","archive_url":"https://api.github.com/repos/sdelements/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdelements/slate/downloads","issues_url":"https://api.github.com/repos/sdelements/slate/issues{/number}","pulls_url":"https://api.github.com/repos/sdelements/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/sdelements/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/sdelements/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdelements/slate/labels{/name}","releases_url":"https://api.github.com/repos/sdelements/slate/releases{/id}","deployments_url":"https://api.github.com/repos/sdelements/slate/deployments","created_at":"2015-06-23T18:48:14Z","updated_at":"2016-08-05T23:46:56Z","pushed_at":"2016-08-24T07:46:53Z","git_url":"git://github.com/sdelements/slate.git","ssh_url":"git@github.com:sdelements/slate.git","clone_url":"https://github.com/sdelements/slate.git","svn_url":"https://github.com/sdelements/slate","homepage":"https://api.sdelements.com","size":905,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdelements/slate/pulls/104"},"html":{"href":"https://github.com/sdelements/slate/pull/104"},"issue":{"href":"https://api.github.com/repos/sdelements/slate/issues/104"},"comments":{"href":"https://api.github.com/repos/sdelements/slate/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/sdelements/slate/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/sdelements/slate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdelements/slate/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/sdelements/slate/statuses/3b6c7a80934e38ef79117ba27628aad74ee20cf0"}}}}
{"actor":{"display_login":"jnlantos"}}