※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
Memberships
Supported Formats
json
PATCH /api/v1/teams/:team_id/memberships/:id
>>>
Update a membership
Supported Formats
jsonExamples
PATCH /api/v1/teams/399/memberships/388 { "membership": { "role": "member" } } 200 { "id": 388, "team_id": 399, "user_id": 206, "role": "member", "role_id": 797, "created_at": "2025-08-13T09:05:26.000+09:00", "updated_at": "2025-08-13T09:05:26.000+09:00", "deleted_at": null, "role_text": "Member", "team": { "id": 399, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAFgklEQVR42u2ceUyTZxzHn/ftQWk5yqG8lk5K4uRS5jYosuEYGAXBjekONt0W3cY28Qo6lzS6MCaEGTHGIBqjxA1Q1OjMPDcngRgIDEQqYkU5plWglhVqS8tLj7f7o38sC3lbWN+3D4nP51++fX/Hp3178RYrKmpuLi4GCEjgsBt43kECIIMEQAYJgAwSABkkADJIAGSQAMhwmT2crD5AGkFF1AdII+x0mT+3aXJaG0mxTUGmwR7/X4gOUUXYG1Hng6qj6ugy7fnakFs1Y4Tl8th6puoyLMC5+lQgBUu+p8vc1g+XdnJJsc0wowQohRVEaiqQgiUUXeb+0GjW/aVjhAWM3WCqLjoFQQYJgAwSABkkADJIAGSQAMggAZBBAiCDBEAGCYAMEgAZJAAySABkkADIIAGQQQIggwRABgmADBIAGSQAMkgAZJAAyCABkEECIIMEQAYJgAwSABkkADJMC/gBtIASNyV3YhJ8E+zBJ3eFS/CNrjOOItACGL6kl2EBtj0U11rjOiMY5ZYK6pmt6zm+WzkNghTXGavI3maNYbYuwwJIsV1BvuluVK7bUb2PYAu3XvC659NNF8YF2BQTbv7rf5bKNz30A2bres7sLuGl2Tnup2P6mgaGL9AYqZ7IHPUHAFjoM+HNfh+Fzw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CHvSJ4GqQUbzORxXI4W/n9PGzeWY8kdftwB37HQLrXqrcem78gC2NbNRXTfyu5+lOkN0jsweSjbUD6odphiePcL1swqAvgj3fpHlnmoDnDfSdMGSQAMggAZBBAiCDBEAGCYDMP0Qf9F16Vz21AAAAAElFTkSuQmCC", "time_limit": 0, "name": "Utah horses", "hierarchized": false, "default_duration": 15, "created_at": "2025-08-13T09:05:26.000+09:00", "updated_at": "2025-08-13T09:05:26.000+09:00", "workspaces_workspace_id": 417, "ancestry": null, "html_url": "http://test.host/app/teams/399/edit", "personal": false, "is_personal": false, "can_manage": true, "can_manage_employ": true, "descendants_names": [], "is_payment_required": false, "payment_required": false, "price_users_count": 2, "payable": true, "parent": null, "is_custom_fields_allowed": true, "custom_fields_limit": 5, "rounding": "floor", "capacity": null }, "user": { "id": 206, "email": "ruthanne@huel.example", "nickname": "Lamonica Torp JD", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "daily": true, "weekly": true, "calendar_zoom_rate": 1, "daily_time": "17:00", "has_password": true, "html_url": "http://test.host/app/users/206/calendar", "is_deactivated": false } }
Params
Param name | Description |
---|---|
role optional |
Can be either Validations:
|
DELETE /api/v1/teams/:team_id/memberships/:id
>>>
Destroy a membership
Supported Formats
jsonExamples
DELETE /api/v1/teams/400/memberships/390 {} 200 { "id": 390, "team_id": 400, "user_id": 208, "role": "manager", "role_id": 800, "created_at": "2025-08-13T09:05:26.000+09:00", "updated_at": "2025-08-13T09:05:26.000+09:00", "deleted_at": "2025-08-13T09:05:26.000+09:00", "role_text": "Owner", "team": { "id": 400, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACB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mPe1HvEQndLI74AEAL8R/VjhTffrksdKj/3g7xDcxHegpfXDurJBeOrb8/LeKN2foIrL4pgza/GTSp2/4pze1oWZ1drQwzZqo1o1AcE9Ut6rkkUnZ9Hwt+53LwYa/7uQMxcgG4K6S2TVjcYOpkTacIu8M771EGNZvSu2cv8h5NruNvYDHys23pKVsCHAbUuA9ynC1/02MSL80unczlV1kQEAS9LXdC2fXp4aDpHd0L2DXqVAbHRRW3wnWdTO6fpA5ZXm3PzgqLZtWNaaz5luKnu0cfKKw2N5m16HLgrS2ETfqGvseYC3kyA112vvNHRkd+j+9rwk4qIdk1AbHpTHjxD8MIJVsqOs5F1vnc2XAB3zWwT/c+A94rvCgZrfqivPzckuhCF7Du+NdjtUwXgO/iaTrYgLcJ/I72Yu8RGgQWAEOB3S6QJddcqXfukhTwZXn1rxAV+w7NjTnysw5dMPxD6bcQeH6eXPw72cCt9/mVUPtbxvWSRMLhxxXDMla0TsSqLb2i2YU4Y8HvAe7n+3S57uO/6TtFkHGevA1Tf+YcZBvJ6nylqPzHIPZ9AxH1Ffoy7jcnAv2jYbvLXvaJjGKXqW4rl2l0SmgyvuTXiMsZRRvSkPv23vLXtBcfnahzMiOOLWXbGYYCdcRhgZxwG2BmHAXbGYYCdcRhgZ/4H2MbL929+fEYAAAAASUVORK5CYII=", "time_limit": 0, "name": "Ohio sorcerors", "hierarchized": false, "default_duration": 15, "created_at": "2025-08-13T09:05:26.000+09:00", "updated_at": "2025-08-13T09:05:26.000+09:00", "workspaces_workspace_id": 418, "ancestry": null, "html_url": "http://test.host/app/teams/400/edit", "personal": false, "is_personal": false, "can_manage": true, "can_manage_employ": true, "descendants_names": [], "is_payment_required": false, "payment_required": false, "price_users_count": 1, "payable": true, "parent": null, "is_custom_fields_allowed": true, "custom_fields_limit": 5, "rounding": "floor", "capacity": null }, "user": { "id": 208, "email": "dewitt.schoen@ledner-hahn.test", "nickname": "Rodney Cassin", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "daily": true, "weekly": true, "calendar_zoom_rate": 1, "daily_time": "17:00", "has_password": true, "html_url": "http://test.host/app/users/208/calendar", "is_deactivated": false } }