Skip to main content
POST

Recipes

1

1. Set a name of the classs

Use a name parameter to set the name of the class.
2

2. Use a `fields` parameter to set custom fields

The fields stores a set of unique keys each having an associated value parameter.
3

3. Set fields of the custom class

Set as many fields for a new class as you need.
4

4. Use a `permissions` parameter to set operations allowed and access levels

5

5. Set CRUD operations

Set the operations that can be performed on a record.Here, the create, read, and update operations are set.
6

6. Set access levels

Set an access level for a record.Here, the open, not_allowed, and open_for_users_ids access levels are set.
7

7. Set IDs of users

Set IDs of users who can make a required operation.
8

8. As a result, the API returns a newly created class.

1

1. Use 'Authorization' header to pass API key

2

2. Set a name of the classs

Use a name parameter to set the name of the class.
3

3. Use a `fields` parameter to set custom fields

The fields stores a set of unique keys each having an associated value parameter.
4

4. Set fields of the custom class

Set as many fields for a new class as you need.
5

5. Use a `permissions` parameter to set operations allowed and access levels

6

6. Set CRUD operations

Set the operations that can be performed on a record.Here, the create, read, and update operations are set.
7

7. Set access levels

Set an access level for a record.Here, the open, not_allowed, and open_for_users_ids access levels are set.
8

8. Set IDs of users

Set IDs of users who can make a required operation.
9

9. As a result, the API returns a newly created class.

Allowed permissions

Body Parameters

name
string
required
Custom class name.
fields
object
Custom class fields with types. Format: fields.{custom_field}=<field_type>.
permissions
string
Class permissions. Format:
permission.<CRUD_operation>.access=<value>
permission.<CRUD_operation>.<option>=<value>
CRUD operations: create, read, update, delete.
CRUD access values: open, owner, not_allowed, open_for_users_ids, open_for_groups.
CRUD options: ids, groups.

Headers

QB-Token
string
required
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Authorization
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
On-Behalf-Of
string
User ID. The user ID of the user on whose behalf the request is being made.

Responses

A successful response
_id
string
acl
object
application_id
integer
The ID of the associated application
custom_fields
array
name
string
Name of the resource
user_id
integer
The ID of the associated user
An error response
errors
array of strings
An error response