Skip to main content

Options

By default, at a Data API level, the data from your models can be updated & deleted without any restriction for all types of user.

If you want to restrict this possibility for everyone, that can be done with the options property.

{
slug: 'users',
model: models.users,
options: {
canUpdate: false,
canDelete: false
}
}

Later in this documentation, we will show you how to restrict / grant all types of actions depending on the type of the user & the team he is part of.