Manage consents
YetiForce API for Webservice App. Type: Manage consents (0.2)
Download OpenAPI specification:Download
Skip the /webservice
fragment for connections via ApiProxy. There are two ways to connect to API, with or without rewrite, below are examples of both:
- rewrite
- CRM_URL/webservice/ManageConsents/Users/Login
- CRM_URL/webservice/ManageConsents/Accounts/RecordRelatedList/117/Contacts
- without rewrite
- CRM_URL/webservice.php?_container=ManageConsents&module=Users&action=Login
- CRM_URL/webservice.php?_container=ManageConsents&module=Accounts&action=RecordRelatedList&record=117¶m=Contacts
Gets the list of consents for specific entry
Gets consents.
Authorizations:
path Parameters
moduleName required | string Example: Contacts Module name |
Request Body schema: required
Required data for communication
token | string Entry unique ID (Token type field in the module is required) |
Responses
Request samples
- Payload
Response samples
- 200
{- "status": 0,
- "result": {
- "id": 24842,
- "consents": {
- "property1": 24862,
- "property2": 24862
}
}
}
Send e-mail
Send e-mail.
Authorizations:
path Parameters
moduleName required | string Example: Contacts Module name |
Request Body schema: required
Required data for communication
string E-mail address (Token type field in the module is required) | |
templateId | integer Specific ID of the email template |
Responses
Request samples
- Payload
Response samples
- 200
{- "status": 0,
- "result": true
}
Adds an consent entry
Add record.
Authorizations:
Request Body schema: required
Required data for communication
The list is based on fields in the Consent register module. Accepting or declining consent takes place based on the value in the approvals_register_status field.
Responses
Request samples
- Payload
Response samples
- 200
{- "status": 0,
- "result": {
- "id": 24842,
- "error": ""
}
}
Gets the list of consents
Gets consents.
Authorizations:
header Parameters
x-row-limit | integer Example: 1000 Get rows limit, default: 1000 |
x-row-offset | integer Offset, default: 0 |
x-raw-data | integer Enum: 0 1 Example: 1 Gets raw data |
x-condition | object (Conditions) Example: {"fieldName":"approvals_status","value":"PLL_ACTIVE","operator":"e"} Conditions [Json format] |
Responses
Response samples
- 200
- 401
- 403
- 405
{- "status": 0,
- "result": {
- "records": {
- "24862": {
- "id": 24862,
- "name": "Consent for email",
- "approvals_status": "Active",
- "number": "N12",
- "assigned_user_id": "Kowalski Adam",
- "createdtime": "2019-10-07 08:32:38",
- "modifiedtime": "2019-10-07 08:32:38",
- "created_user_id": "Kowalski Adam",
- "shownerid": "Kowalski Adam",
- "description": "I confirm to have read.."
}
}, - "rawData": {
- "24862": {
- "id": 24862,
- "name": "Consent for email",
- "approvals_status": "PLL_ACTIVE",
- "number": "N12",
- "assigned_user_id": 245,
- "createdtime": "2019-10-07 08:32:38",
- "modifiedtime": "2019-10-07 08:32:38",
- "created_user_id": 245,
- "shownerid": "Kowalski Adam",
- "description": "I confirm to have read.."
}
}, - "isMorePages": true
}
}