v3-groups-group-invite-links.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-groups-group-invite-links.yaml
  2. post:
  3. summary: 签一张团队邀请链接
  4. tags:
  5. - groups
  6. operationId: post_api_v3_groups_group_invite_links
  7. description: |-
  8. 团队的 owner / manager 才能调用。7 天有效,经它加入的成员角色是 reader(只读)。
  9. 链接不能单独作废:签发人被移出团队或降为 editor / reader 时,他签的链接全部失效。
  10. 实现:`V3\GroupInviteLinkController@store`
  11. security:
  12. -
  13. bearerAuth: []
  14. parameters:
  15. -
  16. name: group
  17. in: path
  18. required: true
  19. schema:
  20. type: string
  21. description: '团队 uid'
  22. responses:
  23. 200:
  24. description: 成功
  25. content:
  26. application/json:
  27. schema:
  28. type: object
  29. properties:
  30. data:
  31. type: object
  32. properties:
  33. token:
  34. type: string
  35. role:
  36. type: string
  37. expires_at:
  38. type: string
  39. 201:
  40. description: 签发成功
  41. content:
  42. application/json:
  43. schema:
  44. type: object
  45. properties:
  46. data:
  47. type: object
  48. properties:
  49. token:
  50. type: string
  51. role:
  52. type: string
  53. expires_at:
  54. type: string
  55. 401:
  56. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  57. 403:
  58. description: '不能管理这个团队的成员,或用 AI 模型的 token 调用'
  59. content:
  60. application/problem+json:
  61. schema:
  62. $ref: '../../main.yaml#/components/schemas/ProblemDetails'
  63. 422:
  64. $ref: '../../main.yaml#/components/responses/ProblemValidation'