Tip |
---|
Available from CRM.COM R9.0.0 |
Table of Contents | ||
---|---|---|
|
GET webhook_requests/show
This method returns information related with a webhook request. A single webhook request is returned by each call
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Webhook Request Identifier
The identifier of the webhook request that should be returned as a result. The allowed webhook request Identifier fields are the following:
...
fields_set
(optional)
...
List of Strings, comma separated
...
A list of fields that should be included in the results. If not specified then all the available fields will be returned
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||
---|---|---|
| ||
HTTP Method: GET
Request: Response: {
"status":
{
"message": "",
"description": "",
"code": "OK"
},
"data":
{
"response": "4A63ECC0D78946F8BF23D73681D6DA66",
"entity": "ACTIVITIES",
"error_code": "LazyInitializationException",
"error_description": "org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
at com.crm.dataobject.securitymanagement.CRMDOSecretKey_$$_javassist_111.getKey(CRMDOSecretKey_$$_javassist_111.java)
at com.cr",
"number": "7",
"url": "http://127.0.0.1:9080/crmapi/rest/v2/activities/create",
"request": "4A63ECC0D78946F8BF23D73681D6DA66",
"log_information":
{
"updated_date": "2015-11-02T16:03:41",
"created_date": "2015-11-02T16:03:33",
"created_by_unit":
{
"community_name": "Internal Community",
"id": "0C3B5CB66ED4AACF5C2FDDAE984704E8",
"name": "Installation Team 4",
"group_name": "Paphos",
"description": null,
"alternative_code": "IT4"
},
"updated_by_unit":
{
"community_name": "Internal Community",
"id": "0C3B5CB66ED4AACF5C2FDDAE984704E8",
"name": "Installation Team 4",
"group_name": "Paphos",
"description": null,
"alternative_code": "IT4"
},
"created_by_user":
{
"person_name": "m_ioannou",
"username": "m_ioannou",
"id": "C5D6D95C71C4484F9168A5444FC928EF",
"email": "m_ioannou@crm.com"
},
"updated_by_user":
{
"person_name": "m_ioannou",
"username": "m_ioannou",
"id": "C5D6D95C71C4484F9168A5444FC928EF",
"email": "m_ioannou@crm.com"
}
},
"life_cycle_state": "REJECTED",
"entity_id": "4A63ECC0D78946F8BF23D73681D6DA66",
"id": "2429282E27054ABFB4A8F4F20593D241",
"webhook_definition":
{
"life_cycle_state": "EFFECTIVE",
"id": "53D29BC888854021A238DF9FEB7D6F76",
"name": "Test",
"alternative_code": "T"
},
"fields_set": null,
"workflow_rule":
{
"life_cycle_state": "EFFECTIVE",
"id": "A94ABA3BDF2745FA8AE8F5B71DD4CA8F",
"name": "Activity Rule",
"alternative_code": "AR"
}
}
} |
GET webhook_requests/list
This method returns information related with webhook requests having specific attributes. Multiple webhook requests are returned by each call.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
webhook_definition_identifier
(semi-optional)
...
workflow_rule_identifier
(semi-optional)
...
entity
(semi-optional)
...
The name of the entity related with the webhook requests that should be returned as a result. The supported entities are the following:
- ACTIVITIES
...
entity_id
(semi-optional)
...
url
(optional)
...
life_cycle_state
(optional)
...
created_date
(optional)
...
fields_set
(optional)
...
List of Strings, comma separated
...
A list of fields that should be included in the results. If not specified then all the available fields will be returned
Restrictions
- It is mandatory to specify at least one of the semi-optional parameters. Multiple of those parameters are allowed to be specified.
Response Data
...
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
POST webhook_requests/resend
This method is used to re-send rejected webhook requests. This method is applicable only on rejected webhook requests. A single webhook request can be re-send through this method
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Webhook Request Identifier
The identifier of the webhook request that should be send again. The allowed webhook request Identifier fields are the following:
...
Note that only rejected webhook requests can be specified in this method.
...
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST
Request: Body:
Response:
|
POST webhook_requests/delete
This method is used to delete successful or rejected webhook requests. A single webhook request can be deleted through this method
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Webhook Request Identifier
The identifier of the webhook request that should be deleted. The allowed webhook request Identifier fields are the following:
...
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST
Request: Body:
Response:
|
Webhook Request Data Structure Description
Activities
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
Include Page | V4:activities_complete | V4:activities_complete|||||
Panel | ||||||
| ||||||
|