Skip to content

Kubo RPC API - Pin ls response is not as described #2181

@simonfoilen

Description

@simonfoilen

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-pin-ls
says the response is:

{
  "PinLsList": {
    "Keys": {
      "<string>": {
        "Name": "<string>",
        "Type": "<string>"
      }
    }
  },
  "PinLsObject": {
    "Cid": "<string>",
    "Name": "<string>",
    "Type": "<string>"
  }
}

But an actual response is:

{
  "Keys" : {
    "QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn" : {
      "Type" : "recursive"
    },
    "bafybeibpimca4f75fxe7mcetxs3ajuwrrc3ss3np4pvhamqtj3icxsuppa" : {
      "Type" : "recursive"
    }
  }
}

So, there is no "PinLsList" and "PinLsObject" root fields; it is directly "PinLsList.Keys".

Kubo version v0.38.1 desktop ; UI: c14b38a

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions