POST /resources
Creates a new resource associated with an existing wrapper. The resource will be initialized withstartPeriod and endPeriod set to null.
Authentication
This endpoint requires authentication.Request Body
ID of the wrapper to associate with this resource. The wrapper must already exist in the system.
Name of the resource
Type of the resource
Response
Returns the created resource object.Unique identifier for the created 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 (null on creation)
End period timestamp for the resource (null on creation)
Example Request
Example Response
Error Responses
Failed to create resource. This can occur if:
- The wrapper_id does not exist
- A resource with the same identifier already exists
- The request is malformed
Invalid request body (missing required fields or incorrect types)
Database operation failed