Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set collection names #108

Open
AlexanderPico opened this issue Jan 19, 2021 · 2 comments
Open

How to set collection names #108

AlexanderPico opened this issue Jan 19, 2021 · 2 comments

Comments

@AlexanderPico
Copy link
Member

I attempted to useput /v1/collections/{networkId}/tables/{tableType}, but it did not work. Taking a look at the default table of the root for the Yeast Perturbation sample network, I see that "name" is immutable (screenshot).

Should "name" be immutable? You can rename collections in the GUI.

Should we add rename functions to CyREST for collections?

Related RCy3 request: cytoscape/RCy3#107

@AlexanderPico
Copy link
Member Author

Any updates on this issue?

@dotasek
Copy link
Contributor

dotasek commented Apr 13, 2021

How did you perform the PUT?

I got mine to rename the collection (the SUID of the root network was 83 in this case):

PUT 'http://localhost:1234/v1/collections/83/tables/default'

body:
{ "key": "SUID", "data": [{ "SUID":83, "name": "newname"}] }

Would this satisfy the need for renaming functionality?

The immutable property is of the column, not of row data. You can't delete 'name' columns.

I did find the example JSON and other Swagger documentation on the PUT endpoint confusing, and I wrote it in the first place. It very much needs improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants