Accept an invitation with a password
POST
/api/invitations/accept
const url = 'https://forge.example.com/api/invitations/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","displayName":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/invitations/accept \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "displayName": "example", "password": "example" }'Takes the token, a display name and a password of at least 12 characters. The session starts in the refresh token cookie, as on any page load.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
displayName
required
null | string
password
required
string
Example generated
{ "token": "example", "displayName": "example", "password": "example"}Responses
Section titled “Responses”Done. The answer has no body.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}