Child pages
  • SaveScript

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added "result" object to the response, including "localSHA" and "metadataLocalSHA" values of the saved script

...

Code Block
languagehtml/xml
<response xmlns="http://www.apstrata.com/services/schemas/apstrata_database_response.xsd">
    <metadata>
        <requestId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</requestId>
        <status>success</status>      
    </metadata>
	<result>
		<localSHA>eb224e0951e68d0a2a227db556041c655c0e17ed</localSHA>
		<metadataLocalSHA>cebbbe640e8f1510069b2fc77494db6ef7b11a36</metadataLocalSHA>
	</result>
</response>

Failure XML:

Code Block
languagehtml/xml
<response xmlns="http://www.apstrata.com/services/schemas/apstrata_database_response.xsd">
    <metadata
        <requestId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</requestId>
        <status>failure</status>
        <errorCode>[errorCode]</errorCode>
        <errorDetail>[failMsg]</errorDetail>
    </metadata>
</response>

...

Code Block
languagejavascript
{
	"response": { 
		"metadata": { 
			"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
			"status": "success" 
		} 
	}
},
		"result":{
			"localSHA":"eb224e0951e68d0a2a227db556041c655c0e17ed",
			"metadataLocalSHA":"cebbbe640e8f1510069b2fc77494db6ef7b11a36"
		}
	}
}