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

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.eyJzdWIiOiIxODM2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc4LCJleHAiOjE3NjM1NDI0NzgsImp0aSI6ImI1MDY3MDQ4LTY2ODMtNDljYS04NWY4LTJlNGE3YTI4MDJmOSJ9.IiUv3jKi_numsWoZ-ZOgyFOATWKnfQ4OqETf_shwNtY
set-cookie: _interslice_session=c5ji%2B1CcFcqOCi%2FUz8cvBAUqZErrHYBK0cyeTNAqz0ruOaaoRSdkoHa605bo5i7%2FrdKzeI%2FPFumCuYqDQ1y95nungWpY3pDBmbVx85EdmhivAnTj0GuwkL0pmPTcOaPXIESylzJMxjH%2F50S8G69rzwVTiCtv7HzTicdUCN7Ls%2FGzgQSg%2BwBEP8L9W46vU3o1PErklSmM9srpZFEyh1f4nOA4jpMKHEKhAXTeyDods%2F2LTs9RZ4mvR5bzPBGESTCi5ItzRWk8mxQRJ7F%2BkLVHuIsUnVdZo94DZ67WxmAcvg%3D%3D--xWFKCvcEGmxjI9vP--%2BVx7jL%2BVYARxlrcziGh5%2FQ%3D%3D; path=/; httponly; samesite=lax
etag: W/"7f07a88f22db7b9d0362e0b075bf8c91"
cache-control: max-age=0, private, must-revalidate
x-request-id: 53627c1c-5d86-4e69-b4e4-eb494936afc7
x-runtime: 0.013684
content-length: 407

Body

{
  "user": {
    "id": 1836,
    "company": {
      "id": 705,
      "address": "Apt. 286 4001 Hegmann Fields, Breitenbergfort, PA Y8H 2WA",
      "country": "GBR",
      "currency": "GBP",
      "license_number": "4388885171",
      "name": "Towne-Cummings",
      "state": "verified"
    },
    "contact_phone_number": null,
    "email": "brooks.ratke+operator@example.com",
    "first_name": "Brooks",
    "job_position": null,
    "last_name": "Ratke",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}