Renew device certificate (disabled)
const url = 'http://localhost:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000/certificates/550e8400-e29b-41d4-a716-446655440001/renew';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"validityDays":365}'};
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:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000/certificates/550e8400-e29b-41d4-a716-446655440001/renew \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "validityDays": 365 }'Device certificate renewal is currently disabled and always fails with 409 Conflict. A renewed certificate has to reach the device, and Margo v1.0.0-rc2 defines no mechanism to deliver one (tracked as FM-1318). The device keeps presenting the certificate it onboarded with; the stored validity always reflects that certificate.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
550e8400-e29b-41d4-a716-446655440000Device UUID
Example
550e8400-e29b-41d4-a716-446655440001Certificate UUID
Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Ignored. Device certificate renewal is disabled and always fails with 409 (FM-1318).
Example
365Responses
Section titled “Responses”Bad Request - Invalid path parameter or request body
Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions (operator or admin)
Conflict - Device certificate renewal is disabled: Margo v1.0.0-rc2 defines no mechanism to deliver a renewed certificate to the device (FM-1318).