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": "hhGh3S8mkTXqSd1SXA8d"
}
}
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.eyJzdWIiOiIxNzk1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTkyLCJleHAiOjE3NDAxNDM1OTIsImp0aSI6ImUwYmIyZjVkLWU0ZGMtNDUwMy1iZWEyLWQzMmIwMmM2Y2ZkYiJ9.EJZHi9-c5udxALO-JJQSzRUsFIQmmDYYI9zQ3lhJ-So
set-cookie: _interslice_session=ukHOJuJhtZjMAxHFaA4rq75GbrVgp929YFDv6nMZGaUQHekxlpxsqvf%2BnNADCMoihZdPK%2BsSM%2BD1iFuKhNPrdmZMi1Bdi8sfzXu0MPx%2Bg3WsjDqX%2FF9KrfuAUdWYP%2BJadb%2BH2mf0kGhkSuJRSG8oBNJbbQbm8YV1s9GL2eNaWQlb8xemglEHYbpg0rp%2F186u%2FsCmNWrGKTIg90OpjUCcwrPLwMgb7qLXYgOzP%2BRGzz1xbod6UZTT6ubkCXT4YJGtPIlqyrjPNpSrYLm7Du2g3KVQDyHsUdTUvi5BDRApSg%3D%3D--hFjUQnLVjjONYdMN--SvdAuPlv1xAAfyKuOIHr9Q%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"3f0c8c93e165b566cae6aae65e522439"
cache-control: max-age=0, private, must-revalidate
x-request-id: bf55b3d9-3497-43d9-b5bd-54d30dcc4e55
x-runtime: 0.014965
content-length: 382
Body
{
"user": {
"id": 1795,
"company": {
"id": 685,
"address": "Suite 701 607 Katelin Fall, North Vince, NM RH7W 6NJ",
"license_number": "8526451920",
"name": "Barton, Wilderman and Farrell",
"state": "verified"
},
"contact_phone_number": null,
"email": "soo.farrell+operator@example.com",
"first_name": "Soo",
"job_position": null,
"last_name": "Farrell",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}