-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Partner API Documentation | ||
|
||
The partner account creation URL is `https://app.makeplans.com/api/` for production apps and `https://app.test.makeplans.net/api/` for test apps. | ||
|
||
Only account creation is done at this URL. All other requests are done on the URL for the API account subdomain. | ||
|
||
## Account | ||
|
||
### Add new account | ||
|
||
`POST /client` will create a new client and user. | ||
|
||
The initial user is set as admin on the account. The attributes for creation are limited. See API documentation for updating other attributes on the account or to add additional users. | ||
|
||
#### Client Attributes | ||
|
||
<table> | ||
<tr><th>Name</th><th>Type</th><th>Description</th></tr> | ||
<tr><td>subdomain</td><td>String</td><td>Required</td></tr> | ||
<tr><td>email</td><td>String</td><td>Required</td></tr> | ||
<tr><td>name</td><td>String</td><td>Required</td></tr> | ||
<tr><td>time_zone</td><td>String</td><td>Required</td></tr> | ||
<tr><td>country_code</td><td>String</td><td>Required. ISO 3166-1 alpha-2.</td></tr> | ||
<tr><td>locale</td><td>String</td><td>Required. Supported locales: 'en', 'sv' and 'nb'. Default: 'en'.</td></tr> | ||
</table> | ||
|
||
#### User Attributes | ||
|
||
<table> | ||
<tr><th>Name</th><th>Type</th><th>Description</th></tr> | ||
<tr><td>name</td><td>String</td><td>Required</td></tr> | ||
<tr><td>email</td><td>String</td><td>Required</td></tr> | ||
<tr><td>password</td><td>String</td><td>Required</td></tr> | ||
<tr><td>phone_number</td><td>String</td><td>Also available as phonenumber (deprecated).</td></tr> | ||
</table> |