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

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.eyJzdWIiOiIxODgzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDEzLCJleHAiOjE3NjYyMTg0MTMsImp0aSI6IjQxOTc0YTkyLWFkZmUtNDMwMy05ZjdmLTUyMWM4YzdkOTg0MiJ9.p2zxagY6yy41l4FqlW5OUZmEO_ls9z0wBQDWT0SHO4g
set-cookie: _interslice_session=zkrHpUXOK26lEn6NjOvWowgXzMd2R6Uv8JI7mPfZKmySKrlO%2B8GERMIOmhaYTkwLGcjMirDTPJaXVVG3lAmsIM8GTFIfivt5%2BIa4jpG7rpydbNYpX%2FiRn6v%2FNhX9OhBfWRqzZ9ftP%2FHO7EQdfmS9fLQaciO%2FtWwvzH6XUfysh8t6wmNIIToC5Nvz2TGCWDRHhkET4U2BTHg%2BB9Vzl2I3VW1syi0IQaD16kJojLruX2z6C2Ypt0Qd4uVHC04CxtGjZh990UVom8FKblKg0X5mwtR5s9jtk0yQy%2BKc48BMrw%3D%3D--WL6idHdhzk0RRxIz--uHODlUQiv41o6QtJloJ%2FaA%3D%3D; path=/; httponly; samesite=lax
etag: W/"61d79d99e53b90012e14cdb37bfbfcff"
cache-control: max-age=0, private, must-revalidate
x-request-id: ba76d300-49ed-4ddc-a3db-d312ff1479ee
x-runtime: 0.013133
content-length: 426

Body

{
  "user": {
    "id": 1883,
    "company": {
      "id": 724,
      "address": "649 Ramona Radial, Brakusbury, AK TY1 2BB",
      "country": "GBR",
      "currency": "GBP",
      "license_number": "3955976370",
      "name": "Larson and Sons",
      "state": "verified"
    },
    "contact_phone_number": null,
    "email": "maragret.heller+operator@example.com",
    "financial_company_id": null,
    "first_name": "Maragret",
    "job_position": null,
    "last_name": "Heller",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}