PUT /resources/
Completely replaces a resource with new data. All fields must be provided.Authentication
This endpoint requires authentication.Path Parameters
The unique identifier of the resource to update (MongoDB ObjectId format)
Request Body
ID of the wrapper to associate with this resource
Name of the resource
Type of the resource
Response
Returns the updated resource object.Unique identifier for the resource (MongoDB ObjectId)
ID of the wrapper associated with this resource
Name of the resource
Type of the resource
Start period timestamp for the resource
End period timestamp for the resource
Example Request
Example Response
PATCH /resources/
Partially updates a resource. Only the fields provided in the request body will be updated.Authentication
This endpoint requires authentication.Path Parameters
The unique identifier of the resource to update (MongoDB ObjectId format)
Request Body
Name of the resource
Type of the resource
Response
Returns the updated resource object.Unique identifier for the resource (MongoDB ObjectId)
ID of the wrapper associated with this resource
Name of the resource
Type of the resource
Start period timestamp for the resource
End period timestamp for the resource
Example Request
Example Response
Error Responses (Both PUT and PATCH)
Invalid resource ID format
Resource not found or has been deleted
Invalid request body (missing required fields for PUT or incorrect types)
Database operation failed