System APIs
Create a new webhook
HTTP method | POST |
URI | https://api.rambase.net/system/webhooks |
Supported formats | Xml, Html, Json (ex. $format=json) |
Successful HTTP status code | 201 |
API resource identifier | 271, version 15 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
Name
Required/mandatory field
Name of webhook
>{String}</Name>Format
Format or response type for the webhook (XML / JSON).
Applicable domain values can be found here
Default value: JSON
This field is optional.
>{String}</Format>ParameterFilter
Filter for parameters. Contains one or more expressions. Expressions are in the syntax: parametername operator value. Parametername must be in brackets (ex [SalesOrderId]). Supported operators are '=' and '!='. Value must be inside single quotes.. Several expressions can be combined with AND or OR.
This field is optional.
>{String}</ParameterFilter>TargetUrl
Target url for POSTing , to which to POST data to. Must include protocol (http:// or https://). Example: http://client.example.com/example-webhook
Input must match the following regular expression pattern: ^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$
This field is optional.
>{String}</TargetUrl>ExclusivelyForCompany
Company this webhook belongs to
This field is optional.
>CompanyId
Company identifier
Minimum value: 100
This field is optional.
>{Integer}</CompanyId>RamBaseEventTypeId
Required/mandatory field
RamBase event type identifier
Minimum value: 100000
>{Integer}</RamBaseEventTypeId>MessageAuthentication
This field is optional.
>SecretToken
Secret token used to sign the webhook
This field is optional.
>{String}</SecretToken>HashFunction
Hash function used to generate the signature used to sign the webhook
Applicable domain values can be found here
This field is optional.
>{String}</HashFunction>Name
Required/mandatory field
Name of webhook
": "{String}",Format
Format or response type for the webhook (XML / JSON).
Applicable domain values can be found here
Default value: JSON
This field is optional.
": "{String}",ParameterFilter
Filter for parameters. Contains one or more expressions. Expressions are in the syntax: parametername operator value. Parametername must be in brackets (ex [SalesOrderId]). Supported operators are '=' and '!='. Value must be inside single quotes.. Several expressions can be combined with AND or OR.
This field is optional.
": "{String}",TargetUrl
Target url for POSTing , to which to POST data to. Must include protocol (http:// or https://). Example: http://client.example.com/example-webhook
Input must match the following regular expression pattern: ^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$
This field is optional.
": "{String}",ExclusivelyForCompany
Company this webhook belongs to
This field is optional.
": {CompanyId
Company identifier
Minimum value: 100
This field is optional.
": "{Integer}"RamBaseEventTypeId
Required/mandatory field
RamBase event type identifier
Minimum value: 100000
": "{Integer}"MessageAuthentication
This field is optional.
": {SecretToken
Secret token used to sign the webhook
This field is optional.
": "{String}",HashFunction
Hash function used to generate the signature used to sign the webhook
Applicable domain values can be found here
This field is optional.
": "{String}"The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
WebhookId
Webhook identifier
>{Integer}</WebhookId>Status
Status of the webhook. Webhooks in ST:4 is considered to be active.
>{Integer}</Status>Name
Name of webhook
>{String}</Name>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>Format
Format or response type for the webhook (XML / JSON).
Possible domain values can be found here
>{String}</Format>ParameterFilter
Filter for parameters. Contains one or more expressions. Expressions are in the syntax: parametername operator value. Parametername must be in brackets (ex [SalesOrderId]). Supported operators are '=' and '!='. Value must be inside single quotes.. Several expressions can be combined with AND or OR.
>{String}</ParameterFilter>TargetUrl
Target url for POSTing , to which to POST data to. Must include protocol (http:// or https://). Example: http://client.example.com/example-webhook
>{String}</TargetUrl>ExclusivelyForCompany
Company this webhook belongs to
>CompanyId
Company identifier
>{Integer}</CompanyId>Database
Abbreviation/code to identify the company
>{String}</Database>CompanyLink
Company reference
>{String}</CompanyLink>RamBaseEventTypeId
RamBase event type identifier
>{Integer}</RamBaseEventTypeId>Name
Key of the Event Type. This key will be used to identify which event to fire.
>{String}</Name>RamBaseEventTypeLink
RamBase event type reference
>{String}</RamBaseEventTypeLink>SecretToken
Secret token used to sign the webhook
>{String}</SecretToken>HashFunction
Hash function used to generate the signature used to sign the webhook
Possible domain values can be found here
>{String}</HashFunction>Scope
Scope of the Duty
>{String}</Scope>IsChanged
Tells whether this object has been changed locally and are ready to be committed to the Repository
>{Boolean}</IsChanged>ChangedBy
EmployeeId of the employee making the change
>UserId
User identifier
>{Integer}</UserId>UserLink
User reference
>{String}</UserLink>IsPendingDeployment
Tells whether this object has been changed locally and is ready to be deployed from the Repository
>{Boolean}</IsPendingDeployment>WebhookId
Webhook identifier
": "{Integer}",Status
Status of the webhook. Webhooks in ST:4 is considered to be active.
": "{Integer}",Name
Name of webhook
": "{String}",CreatedAt
Date and time of creation
": "{Datetime}",Format
Format or response type for the webhook (XML / JSON).
Possible domain values can be found here
": "{String}",ParameterFilter
Filter for parameters. Contains one or more expressions. Expressions are in the syntax: parametername operator value. Parametername must be in brackets (ex [SalesOrderId]). Supported operators are '=' and '!='. Value must be inside single quotes.. Several expressions can be combined with AND or OR.
": "{String}",TargetUrl
Target url for POSTing , to which to POST data to. Must include protocol (http:// or https://). Example: http://client.example.com/example-webhook
": "{String}",ExclusivelyForCompany
Company this webhook belongs to
": {CompanyId
Company identifier
": "{Integer}",Database
Abbreviation/code to identify the company
": "{String}",CompanyLink
Company reference
": "{String}"RamBaseEventTypeId
RamBase event type identifier
": "{Integer}",Name
Key of the Event Type. This key will be used to identify which event to fire.
": "{String}",RamBaseEventTypeLink
RamBase event type reference
": "{String}"SecretToken
Secret token used to sign the webhook
": "{String}",HashFunction
Hash function used to generate the signature used to sign the webhook
Possible domain values can be found here
": "{String}",Scope
Scope of the Duty
": "{String}",IsChanged
Tells whether this object has been changed locally and are ready to be committed to the Repository
": "{Boolean}",ChangedBy
EmployeeId of the employee making the change
": {UserId
User identifier
": "{Integer}",UserLink
User reference
": "{String}"IsPendingDeployment
Tells whether this object has been changed locally and is ready to be deployed from the Repository
": "{Boolean}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 101015 HTTP 404 | Permission not found |
Error 101420 HTTP 404 | Setting definition not found |