1. Knowledge base
  2. Gamfi API Docs
  3. Process and workflow management

Completing and adding actions to a process

In this article, you will discover how to score or add an action to a process in the Gamfi application using the API.

Completing action

To complete a single action in the process use the method and endpoint:

POST + /api/app_api_admin.php/v2/workflows/integration/process/{proces_id}/workflowAction/{action_id}/done

Example cURL:

curl --location --request POST 'https://{app_name}.gamfi.io/api/app_api_admin.php/v2/workflows/integration/process/{proces_id}/workflowAction/{action_id}/done' \
--header 'X-Samus-Authorization-Api-Key: {apiKey}' \
--header 'X-Samus-Authorization-Api-Secret: {apiSecret}' \
--header 'Content-Type: application/json'

In place:

  • {app_name} - insert the name of your application
  • {proces_id} - - insert process ID from Gamfi application
  • {action_id} - insert the ID of the action from the workflow on the basis of which the process started
  • {apiKey} - insert API key
  • {apiSecret} - insert API secret

If the answer is correct, you will receive a status (204).

⚠️ Completing an action is changing its status to „Completed".

Adding action

To add a single action in the process use the method and endpoint:

POST + /api/app_api_admin.php/v2/workflows/integration/process//workflowAction/

Example cURL:

curl --location --globoff --request POST 'https://{app_name}.gamfi.io/api/app_api_admin.php/v2/workflows/integration/process//workflowAction/' \
--header 'X-Samus-Authorization-Api-Key: {apiKey}' \
--header 'X-Samus-Authorization-Api-Secret: {apiSecret}' \
--header 'Content-Type: application/json'

In place:

  • {app_name} - insert the name of your application
  • {proces_id} - - insert process ID from Gamfi application
  • {action_id} - insert the ID of the action from the workflow on the basis of which the process started
  • {apiKey} - insert API key
  • {apiSecret} - insert API secret

If the answer is correct, you will receive a status (204).

⚠️ You can add an action to the process that exists in the workflow.