Loading

How to pass application properties via REST API to hybrid on-premise

Veröffentlichungsdatum: Aug 5, 2025
Aufgabe

GOAL

Deploy an app to hybrid on-premise via API with application properties specified in API.
Schritte
In the API call to deploy the application add a form parameter "configuration" with element "mule.agent.application.properties.service" having all the properties as a JSON content as below
 
configuration={"mule.agent.application.properties.service": {"applicationName":"<App_Name>", "properties": { 
“api.id”: 15467175} } }

For reference, here is a test cURL command that used to deploy an application with properties. 
curl -X POST \
  https://anypoint.mulesoft.com/hybrid/api/v1/applications \
  -H 'Authorization: Bearer xxxxxxxx' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: multipart/form-data' \
  -H 'X-ANYPNT-ENV-ID: c7895e44-650d-45ad-abc7-2ff6a9c84def' \
  -H 'X-ANYPNT-ORG-ID: d581a7bc-e6c4-475c-8711-a2653959a2f4' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F file=@/Users/randalltom/Downloads/test_issue-1_0-1_0_15474615/test_issue-1_0-1_0_15474615.jar \
  -F artifactName=new-test-app38 \
  -F "file\; filename"="test_issue-1_0-1_0_15474615.jar" \
  -F targetId=512160 \
  -F 'configuration={"mule.agent.application.properties.service": {"applicationName":"new-test-app38", "properties": {"remove_payments": "true", "test": "330"}}}'

Docs:
Hybrid API
 
Nummer des Knowledge-Artikels

001114875

 
Laden
Salesforce Help | Article