POST /api/v1/teams/manager/users role=member&username=test1 200 { "id": 559, "name": "manager", "is_default": false, "created_at": "2016-01-07T02:11:43.000Z", "updated_at": "2016-01-07T02:11:44.000Z", "html_url": "http://www.example.com/manager", "avatar_url": "http://www.example.com/manager/avatar", "role": "manager", "managers": [ { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:11:36.000Z", "updated_at": "2016-01-07T02:11:44.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" } ], "members": [ { "id": 1, "username": "test1", "receive_email": true, "created_at": "2016-01-07T02:11:36.000Z", "updated_at": "2016-01-07T02:11:45.000Z", "keyboard_shortcuts": false, "html_url": "http://www.example.com/test1", "avatar_url": "http://www.example.com/test1/avatar", "lang": { "code": "ja", "model": "lang" }, "name": "test1", "model": "user" } ], "plan": "micro", "model": "team" }
POST /api/v1/teams/manager/users role=member&username=test1 200 { "id": 609, "name": "manager", "is_default": false, "created_at": "2016-01-07T02:12:29.000Z", "updated_at": "2016-01-07T02:12:29.000Z", "html_url": "http://www.example.com/manager", "avatar_url": "http://www.example.com/manager/avatar", "role": "manager", "managers": [ { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:12:22.000Z", "updated_at": "2016-01-07T02:12:30.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" } ], "members": [ { "id": 1, "username": "test1", "receive_email": true, "created_at": "2016-01-07T02:12:22.000Z", "updated_at": "2016-01-07T02:12:31.000Z", "keyboard_shortcuts": false, "html_url": "http://www.example.com/test1", "avatar_url": "http://www.example.com/test1/avatar", "lang": { "code": "ja", "model": "lang" }, "name": "test1", "model": "user" } ], "plan": "micro", "model": "team" }
Param name | Description |
---|---|
username required |
Value: Must be String |
role optional |
Can be either Value: Must be String |