Report a command's result
POST
/api/v1/sensor/outbox/{id}/result
const url = 'http://localhost:11044/api/v1/sensor/outbox/example/result';const options = { method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/sensor/outbox/example/result \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{}'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The id of the command being answered, as GET /sensor/outbox delivered it (a UUID); an id whose request has already timed out, or is unknown, is dropped and still answers 202
Request Bodyrequired
Section titled “Request Bodyrequired”The verb’s result, passed unread and verbatim to the request waiting on this command; its shape is the verb’s own
Media typeapplication/json
The verb’s own result, verbatim. The shape belongs to the verb, not to this endpoint, which stores it and never reads it.
object
key
additional properties
any
Example generated
{}Responses
Section titled “Responses”OK

