This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Returns the Enrollment associated with the current User's primary organization.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-read.
objectstringstringstringThe time at which the resource was created.
1
2
3
curl \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/admin/enrollments/getCurrent?preview=true"1
2
3
4
5
{
"name": "Example Enrollment",
"createdTime": "2003-05-06T12:34:56.789Z",
"rid": "ri.control-panel.main.customer.466f812b-f974-4478-9d4f-90402cd3def6"
}| Error Name | ||
|---|---|---|
Get | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not getCurrent the Enrollment. | |
| Parameters | | |
Enrollment | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The given Enrollment could not be found. | |
| Parameters | enrollmentRid | |
See Errors for a general overview of errors in the platform.