Skip to content

device owner endpoint returns 404 #19

@0xble

Description

@0xble

Summary

eightctl device owner fails because /devices/<deviceId>/owner is unavailable for current API/account behavior.

Repro

eightctl device owner -v

Actual

Request:

GET /devices/<deviceId>/owner

Returns 404 on both app-api and client-api for this account.

Expected

device owner should return owner metadata (or at least ownerId) without hard failure.

Suggested Fix

  1. Try /devices/<deviceId>/owner.
  2. If endpoint unavailable (404/route missing), fallback to /devices/<deviceId> and extract:
    • result.ownerId
  3. Return { "ownerId": "..." }.

I have implemented and use this fix on a local fork, feel free to reference my implementation diff: https://gist.github.com/0xble/7303266320adf012ac552f149ee1084e

Environment

  • macOS (Apple Silicon)
  • eightctl 0.1.0-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions