Skip to content

Latest commit

 

History

History
165 lines (91 loc) · 4.66 KB

GatewayApi.md

File metadata and controls

165 lines (91 loc) · 4.66 KB

\GatewayApi

All URIs are relative to https://CHANGEME.api.processmaker.io/api/v1

Method HTTP request Description
AddGateway Post /processes/{process_id}/gateways
DeleteGateway Delete /processes/{process_id}/gateways/{gateway_id}
FindGatewayById Get /processes/{process_id}/gateways/{gateway_id}
FindGateways Get /processes/{process_id}/gateways
UpdateGateway Put /processes/{process_id}/gateways/{gateway_id}

AddGateway

GatewayItem AddGateway($processId, $gatewayCreateItem)

This method creates a new gateway.

Parameters

Name Type Description Notes
processId string ID of the process related to the gateway
gatewayCreateItem GatewayCreateItem JSON API response with the gateway object to add

Return type

GatewayItem

Authorization

PasswordGrant

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteGateway

ResultSuccess DeleteGateway($processId, $gatewayId)

This method deletes a single item using the gateway ID and the process ID.

Parameters

Name Type Description Notes
processId string Process ID
gatewayId string ID of the process to delete

Return type

ResultSuccess

Authorization

PasswordGrant

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindGatewayById

GatewayItem FindGatewayById($processId, $gatewayId)

This method retrieves a gateway based on its ID.

Parameters

Name Type Description Notes
processId string ID of the process to return
gatewayId string ID of gateway to return

Return type

GatewayItem

Authorization

PasswordGrant

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindGateways

GatewayCollection FindGateways($processId, $page, $perPage)

This method retrieves all existing gateways.

Parameters

Name Type Description Notes
processId string ID of the process related to the gateway
page int32 Page number to fetch [optional] [default to 1]
perPage int32 Amount of items per page [optional] [default to 15]

Return type

GatewayCollection

Authorization

PasswordGrant

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateGateway

GatewayItem UpdateGateway($processId, $gatewayId, $gatewayUpdateItem)

This method updates an existing gateway.

Parameters

Name Type Description Notes
processId string ID of the process to retrieve
gatewayId string ID of the gateway to retrieve
gatewayUpdateItem GatewayUpdateItem Gateway object to edit

Return type

GatewayItem

Authorization

PasswordGrant

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]