Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 600 Bytes

File metadata and controls

27 lines (17 loc) · 600 Bytes

Invites

Accept an invitation

GET /invites/:inviteID/accept

Description

Accepts the user's invitation, given its invite ID.

Authorization

  • A JWT for a registered user must be supplied in the Authorization field of the request header.
  • The token must be supplied in the format JWT 'token'

Success response

  • Code: 200 OK
  • Content: A success flag and the accepted invite

Errors

  • 400 Bad Request – database validation error
  • 401 Unauthorized – no/invalid JWT provided, invite does not belong to you
  • 404 Not Found – invite does not exist