Create a new record of particular class.
Create record
1. Set record fields.
You can set as many fields as you need.
2. Set a class.
Set a class for a new record.
Here, the ScoreTable
class is specified.
3. As a result, the API returns a new record.
Create record with permissions
1. Set record fields
You can set as many fields as you need for a new record
2. Use a `permissions` parameter to set operations allowed and access levels
3. Set CRUD operations
Set CRUD operations that can be performed on a record.
Here, the read
, and update
operations are set.
4. Set access levels
Set an access level for a record.
Here, the owner
, and open_for_groups
access levels are set.
5. Set a user group
Set a user group to determine who can make a required operation.
Here, users with the world
tag can make a required operation.
6. As a result, the API returns a new record.
To create a new record use a POST
request with application/json
or application/x-www-form-urlencoded
content
type of the POST body. Received values will be cast according to the class defined in QuickBlox Dashboard.
The field that is present in the class but not specified in the POST request will have a null
value.
Allowed permissions
Permission | Syntax | Example |
---|---|---|
Open | permissions.<CRUD_operation>.access | permissions.read.access=open |
Owner | permissions.<CRUD_operation>.access | permissions.read.access=owner |
Open for users IDs | permissions.<CRUD_operation>.access=open_for_users_ids permissions.<CRUD_operation>.ids=id_1,id_2,id_3,… | permissions.update.access=open_for_users_ids permissions.update.ids=3,12 |
Open for groups | permissions.<CRUD_operation>.access=open_for_groups permissions.<CRUD_operation>.groups=group_name_1,group_name_2 | permissions.delete.access=open_for_groups permissions.delete.groups=experience,rate |
Set value to the field defined in Custom Object class. Can be many 1..N.
Record permissions. Format:
permission.\<CRUD_operation>.access=\<value>
permission.\<CRUD_operation>.\<option>=\<value>
CRUD operations: create
, read
, update
, delete
.
CRUD access values: open
, owner
, open_for_users_ids
, open_for_groups
.
CRUD options: ids
, groups
.
201
400
An error response
Create a new record of particular class.
Create record
1. Set record fields.
You can set as many fields as you need.
2. Set a class.
Set a class for a new record.
Here, the ScoreTable
class is specified.
3. As a result, the API returns a new record.
Create record with permissions
1. Set record fields
You can set as many fields as you need for a new record
2. Use a `permissions` parameter to set operations allowed and access levels
3. Set CRUD operations
Set CRUD operations that can be performed on a record.
Here, the read
, and update
operations are set.
4. Set access levels
Set an access level for a record.
Here, the owner
, and open_for_groups
access levels are set.
5. Set a user group
Set a user group to determine who can make a required operation.
Here, users with the world
tag can make a required operation.
6. As a result, the API returns a new record.
To create a new record use a POST
request with application/json
or application/x-www-form-urlencoded
content
type of the POST body. Received values will be cast according to the class defined in QuickBlox Dashboard.
The field that is present in the class but not specified in the POST request will have a null
value.
Allowed permissions
Permission | Syntax | Example |
---|---|---|
Open | permissions.<CRUD_operation>.access | permissions.read.access=open |
Owner | permissions.<CRUD_operation>.access | permissions.read.access=owner |
Open for users IDs | permissions.<CRUD_operation>.access=open_for_users_ids permissions.<CRUD_operation>.ids=id_1,id_2,id_3,… | permissions.update.access=open_for_users_ids permissions.update.ids=3,12 |
Open for groups | permissions.<CRUD_operation>.access=open_for_groups permissions.<CRUD_operation>.groups=group_name_1,group_name_2 | permissions.delete.access=open_for_groups permissions.delete.groups=experience,rate |
Set value to the field defined in Custom Object class. Can be many 1..N.
Record permissions. Format:
permission.\<CRUD_operation>.access=\<value>
permission.\<CRUD_operation>.\<option>=\<value>
CRUD operations: create
, read
, update
, delete
.
CRUD access values: open
, owner
, open_for_users_ids
, open_for_groups
.
CRUD options: ids
, groups
.
201
400
An error response