Request Monitoring Enrollment
POST
Request enrollment for monitoring by orderId. Returns existing enrollment when already enrolled.
Behavior
- Reuse: if the order already has an enrollment for its package's monitoring configuration that is not DISENROLLED, that enrollment's ID is returned with message
Monitoring enrollment already exists for this orderIdand nothing new is created. Otherwise a new enrollment is created and the message isMonitoring enrollment created for this orderId. - The monitoring configuration is the one attached to the order's package (the most recently created package when several are attached).
Related: Request Monitoring Disenrollment · List Monitoring Reports by Order · Event Types
apiKeyheader
apikey<token>orderId*stringThe order ID, the enrollment ID, and a message saying whether the enrollment was created or already existed.
application/json- response
orderId*stringOrder ID used for enrollment request
enrollmentId*stringMonitoring enrollment ID returned for this order
message*stringResult message indicating whether enrollment was created or already existed
curl -X POST 'https://api.cerebrum.com/v1/monitoring/enrollments/string/enroll' \ -H 'apikey: CEREBRUM_API_KEY'Example Response
{ "orderId": "0bb0f6f8-459f-482a-952e-7caf029517f6", "enrollmentId": "9d3e5f7a-8b2c-4a1e-9f6d-7c8b5a4e3d2f", "message": "Monitoring enrollment already exists for this orderId"}