Check for next deployment (v2)
Deprecated
POST
/api/devices/v2/deployments/device/deployments/next
const url = 'https://example.com/api/devices/v2/deployments/device/deployments/next';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/devices/v2/deployments/device/deployments/next \ --header 'Authorization: Bearer <token>'Device API v2 — check for the next deployment.
POST body (from the device agent): { “device_provides”: { “artifact_name”: “current-artifact”, “device_type”: “hardware-type” }, “update_control_map”: true }
Returns the deployment response, or 204 No Content.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
example