Accept invitation to company
Users
PUT accept invitation
Endpoint
PUT /api/v1/users/invitation
Parameters
Name | Description |
---|---|
user[password] required | Password |
user[password_confirmation] required | Password confirmation |
user[invitation_token] required | Invitation token |
Request
Route
PUT /api/v1/users/invitation
Headers
Accept: application/json
Content-Type: application/json
Host: example.org
Cookie:
Body
{
"user": {
"password": "correcT_passw0rd!",
"password_confirmation": "correcT_passw0rd!",
"invitation_token": "Wn2wwUkEU_GEyUAUhZF1"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODU3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjI4LCJleHAiOjE3NTU4NTgyMjgsImp0aSI6IjdmZjk1ZTI0LTkzNzEtNDEzOS1iMjQ3LTExZDRjOTQ2YTk3MSJ9.k6Y9qtsd9LQCsJTo5v-xmqT9g4FMKiPaxBhSZHWmMo8
set-cookie: _interslice_session=%2BovNSvp86h%2FpDziDCTaodMtu8D%2BWFQNDUhOqRJFrxQd2UTqqDasYvIqmGdhkIxyE4wBHkM5oAiDWzvRDrNEqYSjnNeqK0WGWXx2kRlyyCPKRL%2FFmqi5lqQcT8G8ZrtRjahC38mkz%2Bi8JoD0xqOJeOHXRvYXPWtRCo9bg7FcnIODVKQPjLvsA1J%2Fj1P5oGb%2BM22KHoTo7aAMu3prTEvierG2z1Us9Reabc0rIcVe0FybNOqNocacPczwlOCowPhZvKbz%2B05KLE2NlbvcSyU%2BN5hcpEBW8ulFUADB3pLc1Kw%3D%3D--fak924Umh4pPuUYh--d7yloTCIfIIuIpsMWeZ04g%3D%3D; path=/; httponly; samesite=lax
etag: W/"be4dea6c51888b9e0835a3cccb56a75c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0a7d5702-03c7-4955-90d6-5117927336c7
x-runtime: 0.018162
content-length: 371
Body
{
"user": {
"id": 1857,
"company": {
"id": 710,
"address": "25843 Maye Stream, New Loyd, WI W6 5NW",
"license_number": "6508090062",
"name": "Dietrich, Glover and Halvorson",
"state": "verified"
},
"contact_phone_number": null,
"email": "rolando.ward+operator@example.com",
"first_name": "Rolando",
"job_position": null,
"last_name": "Ward",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}