/org
These methods allow you to create, delete and switch orgs. Other org methods allow you to invite and remove users from orgs.
Create an org
POST
https://pm415.com/api/org
Creates an organization.
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"name" : "myOrg"}
Get org info
GET
https://pm415.com/api/org
Gets info about all of the orgs. There are no request parameters - only a response.
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Switch orgs
POST
https://pm415.com/api/org/switch/:orgid
Switches orgs and generates a new token. This is useful if you are building a user interface, or CLI tool, and want to operate on one org at a time. The org you operate on is encapsulated in the token. Switching orgs, and tokens, allows you to operate on different orgs without having to save sessions artifacts (cookies, web storage, files, etc) on the client.
Path Parameters
:orgid
number
The ID of the org you want to switch to
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Update an org
PUT
https://pm415.com/api/org/:orgid
Update an org's name
Path Parameters
:orgid
number
The ID of the org you want to update
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"name": "updatedOrgName"}
Delete an org
DELETE
https://pm415.com/api/org/:orgid
Path Parameters
:orgid
number
The ID of the org you want to delete
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Get users
GET
https://pm415.com/api/org/:orgid/users
Gets information about an organization's users
Path Parameters
:orgid
number
The ID of the org you want to query
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Validate an user invite token
GET
https://pm415.com/api/org/invite/?token=8s80f934kf94
Checks an invite token to see if it is valid and who it belongs to.This method is used by the PM415 user interface and may not have any other practical use case.
Query Parameters
token
string
Invitation token sent to a user.
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Generate an invite link
POST
https://pm415.com/api/org/:orgid/invitelink
Creates an invite link for a new user.
Path Parameters
:orgid
number
The ID of the org you want to work with
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{email: “suziereider@tmail.com”}
Remove users
POST
https://pm415.com//api/org/:orgid/users/remove
Removes users from an organization. This does not delete the user's profile - just the link between the org and the user. To add them back, you must re-invite them.
Path Parameters
:orgid
number
The ID of the org you want to work with
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"usersId": ["4", "6"]}
Grant admin
PUT
https://pm415.com/api/org/:orgid/admin/grant
Gives a user admin privileges. Admins can perform all operations on an org and its users.
Path Parameters
:orgid
number
The ID of the org you want to work with
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"usersId": ["4", "6"]}
Revoke admin
PUT
https://pm415.com/api/org/:orgid/admin/revoke
Revokes a user's admin privileges.
Path Parameters
:orgid
number
The ID of the org you want to work with
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"usersId": ["4", "6"]}
Reset password
PUT
https://pm415.com/api/org/:orgid/admin/resetpassword
Resets user passwords and sends emails with reset links.
Path Parameters
:orgid
number
The ID of the org you want to work with
Headers
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
Request Body
object
{"usersId": ["4", "6"]}
Last updated
Was this helpful?