<turbo-stream action="update" target="wiki_card"><template>

<h1>REST API Data Errors - Change Resolved status</h1>
<div class="trix-content"><p>Below is an example about how to switch several unresolved data error entries (1,2,3 and 5) to a resolved state (They will be marked as resolved on the current date and time, and as having been resolved by the API user). Examples both in JSON and JSONAPI are provided.<br><br>For both JSON formats, the response will be a list of the changed data error entries, showing their new status.<br><br></p><p>NOTE: Remember to substitute the token (after Bearer) and the service id (the "69" below) to your own token and service id.<br><br><br><strong>JSON:</strong></p><pre>curl -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDE2ODg3NTMsInN1YiI6MX0.oLh_7lsktvX4NP-6Dh4ptGKZe6JEfzeMIgzDjRpMyHM"<br>-H "Content-Type: application/json"&nbsp;<br>-H "Accept: application/json"<br>-X POST<br><br>https://api.myrapidi.com/api/v2/service/69/data_errors/change_resolved?ids=1,2,3,5&amp;resolve=resolved</pre><p><br></p><p><strong>JSONAPI:</strong></p><pre>curl -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDE2ODg3NTMsInN1YiI6MX0.oLh_7lsktvX4NP-6Dh4ptGKZe6JEfzeMIgzDjRpMyHM"<br>-H "Content-Type: application/vnd.api+json"&nbsp;<br>-H "Accept: application/vnd.api+json"<br>-X POST<br><br>https://api.myrapidi.com/api/v2/service/69/data_errors/change_resolved?ids=1,2,3,5&amp;resolve=resolved</pre><p><br></p></div>
</template></turbo-stream>

