{"id":73811,"date":"2019-01-04T16:45:30","date_gmt":"2019-01-04T07:45:30","guid":{"rendered":"https:\/\/support.questetra.com\/addons\/message-start-event-http-curl\/"},"modified":"2026-06-23T12:06:26","modified_gmt":"2026-06-23T03:06:26","slug":"message-start-event-http-curl","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-curl\/","title":{"rendered":"Starting a Case from Outside of Questetra BPM Suite (curl Chapter)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113212\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-browser\/attachment\/professional-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"professional-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113212\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-browser\/\">Starting a Case from Outside of Questetra BPM Suite (Preparatory Chapter)<\/a><\/li>\n\n\n\n<li><strong>Starting a Case from Outside of Questetra BPM Suite (curl Chapter)<\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-python\/\">Starting a Case from Outside of Questetra BPM Suite (Python Chapter)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-error\/\">Starting a Case from Outside of Questetra BPM Suite (Error Chapter)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/debug-http-start\/\" data-type=\"link\" data-id=\"https:\/\/support.questetra.com\/developer-blog\/debug-http-start\/\">Starting a Cases from Outside of Questetra BPM Suite (Debug Chapter)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Starting a Case by Curl Command<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s try accessing Questetra BPM Suite and starting a Case using curl, which is a command capable of data transmission. Curl command can be used on Mac and Linux terminals without installation.On Windows, curl is installed as standard on Windows 10 and later. This article will proceed assuming that you are using the curl command in the Windows command prompt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, let\u2019s try starting a new Case by accessing a particular URL by executing a curl command. Leave the Message Start Event (HTTP) Detail screen open since you will need the endpoint URL of the Message Start Event (HTTP) that you placed on the created App in the Preparatory Chapter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A request to a Message Start Event (HTTP) must be sent using the POST method. Use the <code><em>-X <\/em><\/code>option to specify the request method as POST.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this trial, we are going to send content to be input to the Title Data Item when starting the Case. By appending parameters to the end of the endpoint URL you can pass the data you want to send to the App. For example, when you want to set the title to \u201ctest\u201d it will be in the following form.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl -X POST &#34;https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start?key={API key}&#38;title=test&#34;\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the Message Start Event (HTTP) details and replace the&nbsp;<span style=\"color: #00a000;\">endpoint URL<\/span>&nbsp;and API key. The API key and the endpoint URL are written in the list of Reception Parameters on the Message Start Event (HTTP) details screen. Copy them from there and paste into the command code. Reception Parameter Names are also listed in the same list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you run the command, the number part of the Case ID of the started Case will be returned. When you log in to Questetra BPM Suite with your account (Operator of the Swimlane) you will see that a Case has been started and the Check Task has been allocated to you. Also, confirm whether its title is the same one you passed to the parameter.<\/p>\n\n\n\n<h2 id=\"app_settings\" class=\"wp-block-heading\">Sending a variety of data<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, how do you send data other than the Title? There are many types of Data Item, such as String or User and you can send most of them in the same way as the Title. Let\u2019s see how it works by adding Data Items to the App.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">App Setting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add Data Items as follows; checking the \u201cRequired\u201d box is not necessary for any of them. Regarding Data editing permissions, set all items as \u201cEditable\u201d on the Message Start Event (HTTP) and \u201cOnly display\u201d on the Check Task.<\/p>\n\n\n<div class=\"su-table su-table-alternate\">\n<table>\n<tbody>\n<tr>\n<th>Item name<\/th>\n<th>Data type<\/th>\n<th>Field nmae<\/th>\n<th>Optional setting<\/th>\n<\/tr>\n<tr>\n<td>String0<\/td>\n<td>String type single-line<\/td>\n<td>q_str<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Numeric1<\/td>\n<td>Numeric<\/td>\n<td>q_float<\/td>\n<td>\n<ul>\n<li><strong>Range of decimal digits: 2<\/strong><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>Select2<\/td>\n<td>Select (Select box)<\/td>\n<td>q_selects<\/td>\n<td>\n<ul>\n<li>Leave choices as default\n<ul>\n<li>Choice ID of the first one: true<\/li>\n<li>Choice ID of the second one: false<\/li>\n<li>Initial: true<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>Date3<\/td>\n<td>Date (Y\/M\/D)<\/td>\n<td>q_date<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Datetime4<\/td>\n<td>Datetime<\/td>\n<td>q_datetime<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>File5<\/td>\n<td>File<\/td>\n<td>q_file<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>User6<\/td>\n<td>User (Search select box)<\/td>\n<td>q_email<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Organization7<\/td>\n<td>Organization<\/td>\n&lt;td&lt;q_group<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Sending non-File-types by curl<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let\u2019s try sending the added Data Items with curl as well. Since the method for File-type Data Items is somewhat different I will cover that in another section.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the previous command, we added data in the format of ? and name=content, but this time we will use the <code><em>--data-urlencode<\/em><\/code> option. We will add each item, including the API key and title=test, one by one using the <code><em>--data-urlencode<\/em><\/code> option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you specify the <code><em>--data-urlencode<\/em><\/code> option, the POST method will automatically be used for sending, so you can omit <code><em>-X POST<\/em><\/code> in the command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To send to multiple Data Items you can write the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start ^\n--data-urlencode &#34;key={API key}&#34; ^\n--data-urlencode &#34;name1=content1&#34; ^\n--data-urlencode  &#34;name2=content2&#34; ^\n ...\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With the following command, for example, you can start a Case where \u201ctest\u201d is the Title and \u201c1.23\u201d has been entered in the Numeric data (q_float).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start ^\n--data-urlencode &#34;key={API key}&#34; ^\n--data-urlencode &#34;title=test&#34; ^\n--data-urlencode &#34;q_float=1.23&#34;\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Please refer to the following table for concrete input examples for each Data type.<\/p>\n\n\n<div class=\"su-table su-table-alternate\">\n<table>\n<caption>list of input method for each Data type<\/caption>\n<tbody>\n<tr>\n<th style=\"width: 10% !important\">Data Item<\/th>\n<th style=\"width: 15% !important\">Subtype<\/th>\n<th style=\"width: 20% !important\">Format<\/th>\n<th style=\"width: 20% !important\">Example<\/th>\n<th>Remark<\/th>\n<\/tr>\n<tr>\n<td>API key<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>key={API key}<\/td>\n<td>API key is written in Event detail.<\/td>\n<\/tr>\n<tr>\n<td>Title<\/td>\n<td>&#8211;<\/td>\n<td>Any character string\/td&gt;<\/p>\n<td>title=test<\/td>\n<td>Character number limit and others depend on Data Item settings.<br \/>\n(256 characters or less by default)<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">String<\/td>\n<td>single-line<\/td>\n<td rowspan=\"2\">Any character string<\/td>\n<td rowspan=\"2\">q_str=aiueo<\/td>\n<td rowspan=\"2\">Character number limit and others depend on Data Item settings.<\/td>\n<\/tr>\n<tr>\n<td>multiple-line<\/td>\n<\/tr>\n<tr>\n<td>Numeric<\/td>\n<td>&#8211;<\/td>\n<td>Any numeric value<\/td>\n<td>q_float=1.23<\/td>\n<td>Range limit of input value, Number of the decimal place, etc. depends on the Data Item settings.<br \/>\n(Error if the number of decimal place of the input value is larger than the limit.)<br \/>\nThe decimal point is \u201c.\u201d (Period)<br \/>\nNo delimiter<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\u9078Select<\/td>\n<td>radio button<\/td>\n<td rowspan=\"3\">Choice ID<\/td>\n<td rowspan=\"3\">q_selects=true<\/td>\n<td rowspan=\"3\">The Choice ID corresponding to each option depends on the Data Item settings.<\/td>\n<\/tr>\n<tr>\n<td>selct box<\/td>\n<\/tr>\n<tr>\n<td>search select box<\/td>\n<\/tr>\n<tr>\n<td>check box<\/td>\n<td>Choice ID<br \/>\n(Multiple transmission possible)<\/td>\n<td>q_selects=Monday<\/td>\n<td>The Choice ID corresponding to each option depends on the Data Item settings.<br \/>\nTo select multiple options, send multiple times with the same parameter name.<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">Date<\/td>\n<td>Y\/M\/D<\/td>\n<td>yyyy-mm-dd<\/td>\n<td>q_date=2018-11-01<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Y\/M<\/td>\n<td>yyyy-mm<\/td>\n<td>q_date=2018-11<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>M\/D<\/td>\n<td>mm-dd<\/td>\n<td>q_date=11-01<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Y<\/td>\n<td>yyyy<\/td>\n<td>q_date=2018<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Datetime<\/td>\n<td>&#8211;<\/td>\n<td>yyyy-mm-dd HH:MM<\/td>\n<td>q_datetime=2018-11-01 10:00<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>File<\/td>\n<td>&#8211;<\/td>\n<td>File path<\/td>\n<td>q_file=@ques-kun.png<\/td>\n<td>For file uploading, the -F option is required. (described later)<br \/>\nTo upload multiple files, send multiple times with the same parameter name<\/td>\n<\/tr>\n<tr>\n<td>User<\/td>\n<td>&#8211;<\/td>\n<td>Email address of the User<\/td>\n<td>q_email=example@email.com<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Organization<\/td>\n<td>&#8211;<\/td>\n<td>Organization name<\/td>\n<td>q_group=10 Management<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Sending Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As noted above, if you do not send data to File-type Data Items, POST with the option <code><em>--data-urlencode<\/em><\/code> is recommended. However, the <code><em>--data-urlencode<\/em><\/code> option, which sends data in application\/x-www-form-urlencoded format, is not capable of dealing with files. Therefore, when dealing with File-type Data Items you need to use the <code><em>-F<\/em><\/code> option to send data in the multipart\/form-data format. And you cannot use the <code><em>--data-urlencode <\/em><\/code>option and the <code><em>-F<\/em><\/code> option at the same time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start ^\n-F &#34;key={API key}&#34; ^\n-F &#34;{PARAMETER of File type Data Item}=@{FILE PATH}}&#34; ^\n-F &#34;name1=content1&#34; ^\n ...\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you use the following format you can start a Case while uploading ques-kun.png and setting the Title as \u201cTEST\u201d.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start ^\n-F &#34;key={API key}&#34; ^\n-F &#34;title=test&#34; ^\n-F &#34;q_file=@ques-kun.png&#34;\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To summarize the contents so far, you can also write the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ncurl https:\/\/example.questetra.net\/System\/Event\/MessageStart\/{processModelInfoId}\/{nodeNumber}\/start ^\n-F &#34;key={API key}&#34; ^\n-F &#34;title=TEST&#34; ^\n-F &#34;q_str=This is testing for Case Start.&#34; ^\n-F &#34;q_float=1.23&#34; ^\n-F &#34;q_selects=false&#34; ^\n-F &#34;q_date=2018-04-01&#34; ^\n-F &#34;q_datetime=2018-04-01 12:34&#34; ^\n-F &#34;q_file=@ques-kun-01.png&#34; ^\n-F &#34;q_file=@ques-kun-02.png&#34; ^\n-F &#34;q_email=questetra+Canarias@gmail.com&#34; ^\n-F &#34;q_group=10 Management Department&#34;\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Before you execute the example command, please replace the values to be passed to the File-type\/User-type Data Items respectively.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For ques-kun-01.png\/ques-kun-02.png, replace with an appropriate file name<\/li>\n\n\n\n<li>For questetra+Canarias@gmail.com, replace with an email address which has been registered to the Questetra system you are using, e.g. your email address.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">When this command is executed a Case will be started that looks like the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-attachment-id=\"73814\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-curl\/attachment\/capture-messagestartevent-curlresult-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?fit=921%2C1226&amp;ssl=1\" data-orig-size=\"921,1226\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"capture-messagestartevent-curlresult-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?fit=473%2C630&amp;ssl=1\" src=\"src=\" alt=\"\" class=\"wp-image-73814\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?ssl=1\" target=\"_blank\" rel=\" noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"630\" data-attachment-id=\"73814\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-curl\/attachment\/capture-messagestartevent-curlresult-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?fit=921%2C1226&amp;ssl=1\" data-orig-size=\"921,1226\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"capture-messagestartevent-curlresult-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?fit=473%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en-473x630.png?resize=473%2C630&#038;ssl=1\" alt=\"\" class=\"has-border-color has-ast-global-color-6-border-color wp-image-73814\" style=\"border-width:3px\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?resize=473%2C630&amp;ssl=1 473w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?resize=237%2C315&amp;ssl=1 237w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?resize=768%2C1022&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/capture-messagestartevent-curlresult-en.png?w=921&amp;ssl=1 921w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/a><\/figure>\n\n\n<div class=\"su-note\"  style=\"border-color:#dbdbdb;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#f5f5f5;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\nIn this case, there is a file to upload so I used the <code><em>-F<\/em><\/code> option. As I mentioned before, it is better to use the <code><em>--data-urlencode <\/code><\/em>option if not dealing with files.<br \/>\n<\/div><\/div>\n\n\n<div class=\"su-note\"  style=\"border-color:#dbdbdb;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#f5f5f5;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\nWhen sending a character string including non-ASCII characters such as Japanese to the Message Start Event (HTTP), the character code must be UTF-8. If you encounter problems such as garbled texts, please check the character code setting of your terminal.<br \/>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In this way you can use the curl command to start a Case. The use of \u201cshell scripts\u201d or \u201ccron\u201d, etc. will widen the range of automation. Please be creative and take advantage of the the Message Start Event (HTTP). Next time, I will show you code examples for sending HTTP requests from Python.<\/p>\n\n\n\n<p class=\"has-text-align-right wp-block-paragraph\"><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-python\/\">Next: Starting a Case from Outside of Questetra BPM Suite (Python Chapter)<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introducing how to access the Message Start Event (HTTP) API from the curl command. This allows Starting a Case from the command shell.<\/p>\n","protected":false},"author":3,"featured_media":102641,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[296],"tags":[419],"class_list":["post-73811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-blog","tag-questetra-workflow-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-curl-1200x675-1.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Hirotaka NISHI","author_link":"https:\/\/support.questetra.com\/en\/author\/nishiquestetra\/"},"uagb_comment_info":5,"uagb_excerpt":"Introducing how to access the Message Start Event (HTTP) API from the curl command. This allows Starting a Case from the command shell.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-jcv","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":74618,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-python\/","url_meta":{"origin":73811,"position":0},"title":"Starting a Case from Outside of Questetra BPM Suite (Python Chapter)","author":"Hirotaka NISHI","date":"2019-01-28","format":false,"excerpt":"Introducing how to access Message Start Event (HTTP) API from Python script.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-python-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-python-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-python-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-python-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/01\/message-start-event-http-with-python-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":75058,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-error\/","url_meta":{"origin":73811,"position":1},"title":"Starting a Case from Outside of Questetra BPM Suite (Error-handling Chapter)","author":"Hirotaka NISHI","date":"2019-02-21","format":false,"excerpt":"Describing how to read and handle the error returned by Message start event (HTTP) API.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/02\/message-start-event-http-error-handling-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/02\/message-start-event-http-error-handling-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/02\/message-start-event-http-error-handling-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/02\/message-start-event-http-error-handling-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/02\/message-start-event-http-error-handling-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":73584,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-browser\/","url_meta":{"origin":73811,"position":2},"title":"Starting a Process from Outside of Questetra BPM Suite (Preparatory Chapter)","author":"Hirotaka NISHI","date":"2018-12-13","format":false,"excerpt":"Questetra BPM Suite has a feature to Start a Process by an HTTP request from external systems. I will show you how to use this \"Message Start Event (HTTP)\" which is useful for advancing intersystem cooperation. In this post, I will focus mainly on setting on the Workflow App side.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/message-start-event-http-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/message-start-event-http-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/message-start-event-http-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/message-start-event-http-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/message-start-event-http-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":77067,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/download-process-data\/","url_meta":{"origin":73811,"position":3},"title":"Downloading Case and Task Lists Using Workflow API (reportId)","author":"Hirotaka NISHI","date":"2022-01-18","format":false,"excerpt":"Download Case and Task data from Questetra BPM Suite. Introducing examples of scripts using curl command.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/download-process-task-workflow-api-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/download-process-task-workflow-api-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/download-process-task-workflow-api-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/download-process-task-workflow-api-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/download-process-task-workflow-api-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":76239,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/synchronize-users-chapter2\/","url_meta":{"origin":73811,"position":4},"title":"Synchronizing User Information with Local Data (User Information Chapter)","author":"Hirotaka NISHI","date":"2021-01-18","format":false,"excerpt":"Synchronize user information on Questetra BPM Suite with local data. The User information chapter introduces a Java program that synchronizes registration information required to login to Questetra BPM Suite.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":76060,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/synchronize-users-chapter1\/","url_meta":{"origin":73811,"position":5},"title":"Synchronizing User Information with Local Data (Preparatory Chapter)","author":"Hirotaka NISHI","date":"2021-01-18","format":false,"excerpt":"Synchronize user information on Questetra BPM Suite with local data. In this Preparatory Chapter, introducing a Java program that retrieves for information of users on QBPMS.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/sync-with-local-data-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/73811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=73811"}],"version-history":[{"count":17,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/73811\/revisions"}],"predecessor-version":[{"id":187707,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/73811\/revisions\/187707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/102641"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=73811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=73811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=73811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}