Constructor
new CertificationcategoriesResource(client)
Create a new Certificationcategories resource
Parameters:
| Name | Type | Description |
|---|---|---|
client |
ApiClient | API client instance |
Classes
Methods
(async) create(data) → {Promise.<Object>}
Create a new record
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Record data |
Returns:
- Created record with data and headers
- Type
- Promise.<Object>
(async) create(data) → {Promise.<Object>}
Create a new record
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Record data |
Returns:
- Created record with data and headers
- Type
- Promise.<Object>
(async) deleteCertificationcategoriesId() → {Promise.<certificationcategory>}
Delete CertificationCategory (destroy) Delete the CertificationCategory record with the specified ID.
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) deleteCertificationcategoriesId() → {Promise.<certificationcategory>}
Delete CertificationCategory (destroy) Delete the CertificationCategory record with the specified ID.
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) deleteCertificationcategoriesIdAssociationChildid(association, childid) → {Promise.<certificationcategory>}
Remove from for CertificationCategory Remove a foreign record from one of this CertificationCategory record's collections.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
childid |
string | Path parameter |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) deleteCertificationcategoriesIdAssociationChildid(association, childid) → {Promise.<certificationcategory>}
Remove from for CertificationCategory Remove a foreign record from one of this CertificationCategory record's collections.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
childid |
string | Path parameter |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) destroy(id) → {Promise.<Object>}
Delete a record by id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | number | Record id |
Returns:
- Deletion result with data and headers
- Type
- Promise.<Object>
(async) destroy(id) → {Promise.<Object>}
Delete a record by id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | number | Record id |
Returns:
- Deletion result with data and headers
- Type
- Promise.<Object>
find(criteria) → {QueryChain}
Starts a new query chain with the given criteria
Parameters:
| Name | Type | Description |
|---|---|---|
criteria |
Object | Filter criteria |
Returns:
- Query chain for further operations
- Type
- QueryChain
find(criteria) → {QueryChain}
Starts a new query chain with the given criteria
Parameters:
| Name | Type | Description |
|---|---|---|
criteria |
Object | Filter criteria |
Returns:
- Query chain for further operations
- Type
- QueryChain
findOne(id, populateopt) → {QueryChain|Promise.<Object>}
Find a single record by id
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id |
string | number | Record id |
|
populate |
string | Array.<string> |
<optional> |
Fields to populate |
Returns:
- Query chain for further operations or found record with data and headers
- Type
- QueryChain | Promise.<Object>
findOne(id, populateopt) → {QueryChain|Promise.<Object>}
Find a single record by id
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id |
string | number | Record id |
|
populate |
string | Array.<string> |
<optional> |
Fields to populate |
Returns:
- Query chain for further operations or found record with data and headers
- Type
- QueryChain | Promise.<Object>
(async) getCertificationcategories(queryopt) → {Promise.<Array.<certificationcategory>>}
List CertificationCategory (find where) Find a list of CertificationCategory records that match the specified criteria.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<Array.<certificationcategory>>
(async) getCertificationcategories(queryopt) → {Promise.<Array.<certificationcategory>>}
List CertificationCategory (find where) Find a list of CertificationCategory records that match the specified criteria.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<Array.<certificationcategory>>
(async) getCertificationcategoriesCount(queryopt) → {Promise.<any>}
Count records Count the number of records that match the specified criteria.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<any>
(async) getCertificationcategoriesCount(queryopt) → {Promise.<any>}
Count records Count the number of records that match the specified criteria.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<any>
(async) getCertificationcategoriesId(queryopt) → {Promise.<certificationcategory>}
Get CertificationCategory (find one) Look up the CertificationCategory record with the specified ID.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) getCertificationcategoriesId(queryopt) → {Promise.<certificationcategory>}
Get CertificationCategory (find one) Look up the CertificationCategory record with the specified ID.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) getCertificationcategoriesIdAssociation(association, queryopt) → {Promise.<Array.<any>>}
Populate association for CertificationCategory Populate and return foreign record(s) for the given association of this CertificationCategory record.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
association |
string | Path parameter |
|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<Array.<any>>
(async) getCertificationcategoriesIdAssociation(association, queryopt) → {Promise.<Array.<any>>}
Populate association for CertificationCategory Populate and return foreign record(s) for the given association of this CertificationCategory record.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
association |
string | Path parameter |
|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<Array.<any>>
(async) getCertificationcategoriesSum(queryopt) → {Promise.<any>}
Sum field values Calculate the sum of a specified numeric field across filtered records.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<any>
(async) getCertificationcategoriesSum(queryopt) → {Promise.<any>}
Sum field values Calculate the sum of a specified numeric field across filtered records.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
Object |
<optional> |
Query parameters |
Returns:
- Response with data and headers
- Type
- Promise.<any>
(async) patchCertificationcategoriesId(data) → {Promise.<certificationcategory>}
Update CertificationCategory Update an existing CertificationCategory record.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) patchCertificationcategoriesId(data) → {Promise.<certificationcategory>}
Update CertificationCategory Update an existing CertificationCategory record.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) postCertificationcategories(data) → {Promise.<certificationcategory>}
Create CertificationCategory Create a new CertificationCategory record.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) postCertificationcategories(data) → {Promise.<certificationcategory>}
Create CertificationCategory Create a new CertificationCategory record.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) putCertificationcategoriesIdAssociation(association, data) → {Promise.<certificationcategory>}
Replace for CertificationCategory Replace all of the child records in one of this CertificationCategory record's associations.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) putCertificationcategoriesIdAssociation(association, data) → {Promise.<certificationcategory>}
Replace for CertificationCategory Replace all of the child records in one of this CertificationCategory record's associations.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
data |
Object | Request body |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) putCertificationcategoriesIdAssociationChildid(association, childid) → {Promise.<certificationcategory>}
Add to for CertificationCategory Add a foreign record to one of this CertificationCategory record's collections.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
childid |
string | Path parameter |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) putCertificationcategoriesIdAssociationChildid(association, childid) → {Promise.<certificationcategory>}
Add to for CertificationCategory Add a foreign record to one of this CertificationCategory record's collections.
Parameters:
| Name | Type | Description |
|---|---|---|
association |
string | Path parameter |
childid |
string | Path parameter |
Returns:
- Response with data and headers
- Type
- Promise.<certificationcategory>
(async) update(id, data) → {Promise.<Object>}
Update a record by id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | number | Record id |
data |
Object | Update data |
Returns:
- Updated record with data and headers
- Type
- Promise.<Object>
(async) update(id, data) → {Promise.<Object>}
Update a record by id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | number | Record id |
data |
Object | Update data |
Returns:
- Updated record with data and headers
- Type
- Promise.<Object>