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": "8pGGexZqE1cT8-rBe4Cs"
}
}
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.eyJzdWIiOiIxODUwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM5LCJleHAiOjE3NTExMDg1MzksImp0aSI6ImZmODMxYmM0LTYyMTMtNGFhZi04Y2EwLTlmYjhmYzJhZTc4NCJ9.DXfk3caT749DSnM9o3FtJLcMKx_I8SGSMQRqPzAZ088
set-cookie: _interslice_session=igeqLtpc3O%2BC0AuWVuijU8w4wT%2Bjz7N3AhNPxHchN0JtfVG4wCzk%2FIXNjkpl%2BN%2B%2F8LJRpGinSxiDqFRLXOhPS5OlxrIzQ7nZABvMlJnHkjWvFvQnZj51BvfYsDiuH0zcgQO2X49%2Fmzop%2B5c%2BdNybnA8OkVsTSkE9a%2Ff%2Bv1EX%2FMbdQxxEhn53WjWXblHd9sj6vusPseHXXw4Y9zwDT0cMsyM02soWQU8jryD4mP5cascyP3DkZZYhE7BzQn7r3dZOU7yB50FgmJnAAkwHBLrzcOkco16KOwXEhKu7eYw85w%3D%3D--Rd2FtV9JlawkjyT8--YyfewtG1t8j2n1SArbxb%2Fw%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"ecf9b908e4052a3b5819a5497c0dcea9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 041eb030-6ad0-4083-9ce7-f5530748d066
x-runtime: 0.016302
content-length: 376
Body
{
"user": {
"id": 1850,
"company": {
"id": 707,
"address": "74189 Okuneva Common, Rippinberg, MI ZF7R 7BS",
"license_number": "7597433278",
"name": "Kub, Erdman and Legros",
"state": "verified"
},
"contact_phone_number": null,
"email": "reynaldo.wunsch+operator@example.com",
"first_name": "Reynaldo",
"job_position": null,
"last_name": "Wunsch",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}