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

API to add/remove items from collections #1165

Closed
srosset81 opened this issue Sep 29, 2023 · 0 comments · Fixed by #1242
Closed

API to add/remove items from collections #1165

srosset81 opened this issue Sep 29, 2023 · 0 comments · Fixed by #1242

Comments

@srosset81
Copy link
Contributor

srosset81 commented Sep 29, 2023

Use a PATCH method similar to ldp.resource.patch, but only allow the modification of items. Using application/sparql-update for the Content-Type.

Example request:

PREFIX as: <https://www.w3.org/ns/activitystreams#>
INSERT DATA {
  <https://mypod.store/alice/followers> as:items <https://mypod.store/bob> .
};
DELETE DATA {
  <https://mypod.store/alice/followers> as:items <https://mypod.store/craig> .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant