post
https://localhost:44395/api/admin/collection
Behavior: If the input model has no ID, creates a new collection with the provided name. If an ID is present, updates the existing collection. This design intentionally avoids the need for a separate PUT operation.
Authorization: Requires an authenticated user via the class-level [Authorize] attribute.
Side Effects: Creates a new collection record in the database or updates an existing one.
Error Scenarios: Returns 400 if the input is null or the name is null.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401Unauthorized. The caller must provide a valid Bearer token.
