Skip to main content
POST
/
adminPortal#addUsers
addUsers
curl --request POST \
  --url 'https://sandbox.rollfi.xyz/adminPortal#addUsers' \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "addUsers",
  "companyId": "33A04AFB-4317-464A-B1E0-BAB610086174",
  "users": [
    {
      "firstName": "Marcus",
      "middleName": "Austin",
      "lastName": "Steve",
      "email": "[email protected]",
      "phoneNumber": "9889890989",
      "dateOfJoin": "2000-01-01",
      "workerType": "W2",
      "jobTitle": "Manager",
      "companyLocationCategory": "Remote",
      "stateCode": "FL",
      "companyLocationId": ""
    },
    {
      "firstName": "Laura",
      "middleName": "Beth",
      "lastName": "Johnson",
      "email": "[email protected]",
      "phoneNumber": "9988776655",
      "dateOfJoin": "2001-02-02",
      "workerType": "W2",
      "jobTitle": "Developer",
      "companyLocationCategory": "Remote",
      "stateCode": "CA",
      "companyLocationId": ""
    },
    {
      "firstName": "Aaron",
      "middleName": "",
      "lastName": "Ruth",
      "email": "[email protected]",
      "phoneNumber": "9988776655",
      "dateOfJoin": "2001-02-02",
      "workerType": "W2",
      "jobTitle": "Developer",
      "companyLocationCategory": "Remote",
      "stateCode": "CA",
      "companyLocationId": ""
    }
  ]
}
'
[
  {
    "user": {
      "userId": "BAF0E9A0-0468-4936-A18A-B764772EBD6D",
      "status": "KYC Pending",
      "message": "Marcus Steve has been successfully added as Employee in Company146933."
    }
  },
  {
    "user": {
      "userId": "4D6E227F-48E4-4808-A95C-61D09863A5D2",
      "status": "KYC Pending",
      "message": "Laura Johnson has been successfully added as Employee in Company146933."
    }
  },
  {
    "user": {
      "userId": "EF7B8546-D333-4FED-8D08-F0720857F9A4",
      "status": "KYC Pending",
      "message": "Aaron Ruth has been successfully added as Employee in Company146933."
    }
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
method
string
required
companyId
string<uuid>
required
user
object[]
required

Response

user
object
required