Users

Accept invitation to company

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": "nFkYsVDs9Se8YtnxHpdx"
  }
}

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.eyJzdWIiOiIxODI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTUzLCJleHAiOjE3NDUwNTY5NTMsImp0aSI6Ijc4NTdlMDI3LWQ4OTEtNDI2ZC1iZTBlLTZkNmI2MWQyODA1NCJ9.ykmaw0lGcLNfxi0dr7UJRZihgTHIuifmwyqYLvVh65Y
set-cookie: _interslice_session=bo679BrKuEyC%2BE8rWOtIy5oPA5LmC5fx08LRUWmEXgka%2Bj3B2jKYKtYLNcCs2wWUFB%2BOC9fqpgLDYDENrHKEux3jwEJnp0oJOkBG80XluOxy390r%2BmH4oemx97%2BdZPMboiZF10Rptgln5iO5asa%2BknDjnlNrTl56dGRpAzelR8sO95Pt8SKs2qD114uqP4JVDWtvE%2FnA3dJDr98blIcK1leRNd%2BAjrELEQuoEr6DG%2FTZAW8IN7TVDZS1oyR3s8GmXtbfI5ligOst0iC36Yb9mPwum6Ec%2FXDJpCXuBNxWaA%3D%3D--3iG9JrR4QwTJJb3c--%2BCphBcuYkJSZ5Btj%2F0txJQ%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"96cfd75e5951159eea25a55927b46c44"
cache-control: max-age=0, private, must-revalidate
x-request-id: 532a5055-62fd-4a78-9ce4-7d658f0868e4
x-runtime: 0.017684
content-length: 368

Body

{
  "user": {
    "id": 1826,
    "company": {
      "id": 694,
      "address": "Apt. 504 6320 Thaddeus Turnpike, Wileyfurt, KY Y5B 2AN",
      "license_number": "2941318459",
      "name": "Kertzmann Inc",
      "state": "verified"
    },
    "contact_phone_number": null,
    "email": "toby.torphy+operator@example.com",
    "first_name": "Toby",
    "job_position": null,
    "last_name": "Torphy",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}