Skip to content

Commit

Permalink
docs(35/admins/ref) add generate_register_url description INTF-1506 (#…
Browse files Browse the repository at this point in the history
…272)

Review in staging.
  • Loading branch information
h3xar0n authored May 8, 2019
1 parent de90e82 commit 3ef52f3
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions app/enterprise/0.35-x/admin-api/admins/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ HTTP 200 OK

| Attribute | Description |
|-------------|------------------------------------------------------------|
| `email` | The Admin's email address |
| `username` | The Admin's username |
| `custom_id` <br>optional | The Admin's custom ID |
| `email` | The **Admin**'s email address |
| `username` | The **Admin**'s username |
| `custom_id` <br>optional | The **Admin**'s custom ID |

**Response**

Expand Down Expand Up @@ -72,9 +72,9 @@ HTTP 200 OK
| Attribute | Description |
|-------------|---------------------------|
| `token` | The authentication token |
| `username` | The admin's username |
| `email` | The admin's email address |
| `password` | The admin's new password |
| `username` | The **Admin**'s username |
| `email` | The **Admin**'s email address |
| `password` | The **Admin**'s new password |

**Response**

Expand All @@ -89,7 +89,7 @@ HTTP 201 Created

| Attribute | Description |
|-------------|------------------------------------------------------------|
| `email` | The Admin's email address |
| `email` | The **Admin**'s email address |

**Response**

Expand All @@ -104,8 +104,8 @@ HTTP 201 Created

| Attribute | Description |
|-------------|------------------------------------------------------------|
| `email` | The Admin's email address |
| `password` | The Admin's new password |
| `email` | The **Admin**'s email address |
| `password` | The **Admin**'s new password |
| `token` | The authentication token |

**Response**
Expand All @@ -121,7 +121,14 @@ HTTP 200 OK

| Attribute | Description |
|------------|-----------------------------------|
| name_or_id | The Admin's username or ID |
| `name_or_id` | The **Admin**'s username or ID |
| `generate_register_url` <br>optional | `true` returns a unique registration URL for the **Admin** |

**Notes:**
* `generate_register_url` will only generate a URL if the **Admin**'s
invitation status is 4 ("invited").
* `generate_register_url` will override the preåvious registration URL
for the particular **Admin** each time it is requested.

**Response**

Expand All @@ -147,10 +154,10 @@ HTTP 200 OK

| Attribute | Description |
|----------------------|--------------------------------------------|
| `name_or_id` | The Admin's current username or custom ID |
| `email` <br>optional | The Admin's new email address |
| `username` <br>optional | The Admin's new username |
| `custom_id` <br>optional | The Admin's new custom ID |
| `name_or_id` | The **Admin**'s current username or custom ID |
| `email` <br>optional | The **Admin**'s new email address |
| `username` <br>optional | The **Admin**'s new username |
| `custom_id` <br>optional | The **Admin**'s new custom ID |

**Response**

Expand All @@ -176,7 +183,7 @@ HTTP 200 OK

| Attribute | Description |
|--------------|-----------------------------------|
| `name_or_id` | The Admin's username or ID |
| `name_or_id` | The **Admin**'s username or ID |

**Response**

Expand All @@ -191,7 +198,7 @@ HTTP 204 No Content

| Attribute | Description |
|--------------|-----------------------------------|
| `name_or_id` | The Admin's username or ID |
| `name_or_id` | The **Admin**'s username or ID |

**Response**

Expand Down Expand Up @@ -224,8 +231,8 @@ HTTP 200 OK

| Attribute | Description |
|--------------|-----------------------------------------------------------|
| `name_or_id` | The Admin's current username or ID |
| `roles` | (comma separated) string of names of Roles to create or update for an Admin |
| `name_or_id` | The **Admin**'s current username or ID |
| `roles` | (comma separated) string of names of Roles to create or update for an **Admin** |

**Response**

Expand Down Expand Up @@ -265,8 +272,8 @@ HTTP 201 OK

| Attribute | Description |
|--------------|-----------------------------------------------------------|
| `name_or_id` | The Admin's current username or custom ID |
| `roles` | (comma separated) string of names of Roles to remove from an Admin |
| `name_or_id` | The **Admin**'s current username or custom ID |
| `roles` | (comma separated) string of names of Roles to remove from an **Admin** |

**Response**

Expand All @@ -281,7 +288,7 @@ HTTP 204 No Content

| Attribute | Description |
|--------------|-----------------------------------|
| `name_or_id` | The Admin's username or ID |
| `name_or_id` | The **Admin**'s username or ID |

**Response**

Expand Down

0 comments on commit 3ef52f3

Please sign in to comment.