※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。

Supported Formats

json

Examples

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+FzwVngJnZ2p4Rnuknk1TR/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/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 member or manager.

Validations:

  • Must be a String