đ Base endpoint: /mockoon-admin/environment
This endpoint allows you to partially update the environment definition, such as updating the responses or adding headers without restarting the mock server or the application.
â ď¸ Note: several configuration options cannot be updated during runtime (see below).
To update the environment configuration, call the /mockoon-admin/environment
endpoint with the following parameters:
PUT
/mockoon-admin/environment
Example request:
CopyPUT /mockoon-admin/environment Content-Type: application/json { "uuid": "7417c190-8547-442d-aab0-b61f2c3ee381", "name": "API mock", "routes": [ { "uuid": "ba616755-e6cb-4aec-9b59-2643c347552b", "type": "http", "method": "get", "endpoint": "test", "responses": [ { "uuid": "a9ec0e58-94f9-405a-b802-60005c020dd0", "body": "hello123", ... } ], ... } ] }
â ď¸ This endpoint only allows you to partially update the environment configuration without restarting the mock.
What will be updated:
What cannot be updated: