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

Implement API endpoint for updating a location's information #15

Open
specious opened this issue Jun 10, 2022 · 0 comments
Open

Implement API endpoint for updating a location's information #15

specious opened this issue Jun 10, 2022 · 0 comments

Comments

@specious
Copy link
Member

specious commented Jun 10, 2022

There exist endpoints to add a location or retrieve a location's details.

Add an API endpoint that will update an existing location's details:

PUT /id/{id}

{
  "description": "Edited description",
  "level": 99,
  "images": [
    "f1d73d68af0bc0aa4d9576c5",
    "e5e40b90f78cd4959d1808db",
    "e8a88bb6f4d420a8517965d2"
  ]
}

To successfully update a location one must be a logged in owner of that location or an admin with proper permissions.

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

No branches or pull requests

1 participant