Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • portal.desettisickroku.cz portal.desettisickroku.cz
  • Project information
    • Project information
    • Activity
    • Members
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • api-docs
  • portal.desettisickroku.czportal.desettisickroku.cz
  • Wiki
  • Auth User Favorites Edit

Auth User Favorites Edit · Changes

Page history
Create Auth User Favorites Edit authored Feb 01, 2024 by Jakub Valo's avatar Jakub Valo
Show whitespace changes
Inline Side-by-side
Auth-User-Favorites-Edit.md 0 → 100644
View page @ 3d6900b4
_Editace oblíbených (uživatelů / týmů / měst) přihlášeného uživatele_
**URL:** /api/v1/auth-user/favorites/edit
**Method:** POST
**Headers:**
- Accept: application/json
- Authorization: Auth User Bearer token
**Vstupní data:**
| Parametr | Typ | Povinný | Popis |
|----------|-----|---------|-------|
| type | string | A | Typ (users, teams, districts) |
| position | int | A | Pořadí viz níže |
| id | int | A | ID uživatele / týmu / města |
Povolené hodnoty pořadí:
- users: 2, 3 (1. je na Portálu vždy daný uživatel)
- teams: 1, 2, 3
- districts: 2, 3 (1. je na Portálu vždy město uživatele)
**Vrací JSON:**
**Úspěšné uložení:**
```json
{
"status": "success",
"message": "Uloženo."
}
```
**Chyba při validaci:**
```json
{
"status": "error",
"message": "Uživatel nebyl nalezen."
}
```
Více chyb je odděleno odřádkováním `\n`
\ No newline at end of file
Clone repository

Home

All Pages