Creates a new collection or updates an existing one.

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The collection model containing the name and optional ID. If ID is null, a new collection is created; otherwise the existing collection is updated.

Represents a content collection with its identifier and display name.

uuid | null

Gets or sets the unique identifier of the collection, or null when creating a new collection.

string | null

Gets or sets the display name of the collection.

Headers
string
enum
Defaults to application/json-patch+json

Generated from available request content types

Allowed:
Responses

401

Unauthorized. The caller must provide a valid Bearer token.

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json