How to give a user access to a piece of equipment in Fabman via the API


#1

Hi, my team and I are trying to map out resources with fabman and we are wondering how to give a user/member access to an equipment via API?


#2

Hi, I think you can use this API: https://fabman.io/api/v1/documentation#!/members/postMembersIdTrainings


#3

Yes, as @mzuzelka described, you might need to add training records to a member, if you have configured your equipment to require training.

But you definitely need to assign them at least one package to give them access to your equipment. (Unless they are an admin or owner.)

You can manage a member’s packages via the /members/{id}/packages endpoints. For example, here’s how to assign package 100 to member 25:

POST https://fabman.io/api/v1/members/25/packages
[
  {
    "package": 100,
    "fromDate": "2018-12-04"
  }
]

#4

@mzuzelka and @raphael Thank you guys for the response!