Accept Invitation
POST/api/content/:contentType/invitations/accept
Accept an invitation from a user to access or edit a content object.
You can find more information about invitations and content here.
Locale
A locale can be specified for this request.
The given object will be returned in the specified locale.
If no locale is specified, the applications default locale will be used. You can learn more about configuring the default locale here.
Request
Responses
- 200
- 401
- 404
- 500
The content object the user was invited to. The response depends on the content object. For articles it will return FullArticleResponseand for file metadata it will return FileMetadataResponse.
The following error codes correspond to this status:
ACCESS_TOKEN_EXPIRED: Indicates that the access token is expired.ACCESS_TOKEN_INVALID: Indicates that the access token cannot be decoded.INVITATION_TOKEN_EXPIRED: Indicates that the invitation token is expired.INVITATION_TOKEN_INVALID: Indicates that the invitation token cannot be decoded.INVITATION_TOKEN_MISSING: Thrown when the invitation token is missing.
The following error codes correspond to this status:
CONTENT_TYPE_NOT_FOUND: Content type not found.INVITATION_NOT_FOUND: Invitation not found.
The following error codes correspond to this status:
ACCESS_TOKEN_ALLOWLIST_READING_FAILURE: Represents an exception indicating a failure when reading the allowlist for an access token cache.DATABASE_FAILURE: Exception representing a general failure related to database operations.POST_COMMIT_SIDE_EFFECT_FAILURE: Exception representing a failure to perform a side effect after a successful database operation.