All URIs are relative to https://swagger.asmprotocol.org/v1
Method | HTTP request | Description |
---|---|---|
rollback | POST /rollback | Rollback a specific change set |
\ASMP\Client\Model\ChangeResponse rollback($body)
Rollback a specific change set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new ASMP\Client\Api\RollbackApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ASMP\Client\Model\RollbackRequest(); // \ASMP\Client\Model\RollbackRequest | Define the changeset that should be rolled back
try {
$result = $apiInstance->rollback($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RollbackApi->rollback: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \ASMP\Client\Model\RollbackRequest | Define the changeset that should be rolled back |
\ASMP\Client\Model\ChangeResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]