Update
/api/v2/access/update
Post
profiles
jwt
Purpose
To allow a user to update an existing Access Group.
Body Content [input]
{
uid: string,
accessID: string,
name: string,
members: string[]
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Loops through each of the
memberin the passedmembersfield and ensures that there’s a record for thatuserin theprofilescollection [404]. - Finds the
profileof the record corresponding to theuidpassed from theprofilescollection and updates the object inside of theaccess_groupsfield corresponding to theaccessIDfield passed [404] with the values of thenameand/ormembersfields passed.