Repository navigation
Org Units
lsambridge edited this page May 14, 2025
·
6 revisions
Gets the Org Units and their levels that are configured
200 - Successful call of the api
400 - Invalid query string parameters
[GET] /v2/meta/orgunitlevels
A successful response looks like:
HTTP/1.1 200 Ok
Location: https://api.myezrewards.com/v2/meta/orgunitlevels
[
{
"Name": "Locations",
"Children": [
{
"Name": "Leamington",
"Children": []
},
{
"Name": "Leicester",
"Children": []
}
]
}
][GET] /v2/meta/OrgUnitLevels
200 - Successful retrieval of organizational unit levels
404 - Not Found
[PATCH] /v2/meta/OrgUnitLevels?useIds=false
[
{
"OrgUnitId": "string",
"Name": "string"
}
]-
useIds: Boolean indicating whether to use IDs for updating. By supplying anOrgUnitIdand the query string parameteruseIds, this will create organizational unit levels attached to the parent associated with that ID, even if the organizational unit level name already exists.
200 - Successful update of organizational unit levels
400 - Incorrect or missing org units
[POST] /v2/meta/OrgUnitLevels
[
{
"OrgUnitId": "string",
"Name": "string"
}
] 200 - Successful save of organizational unit levels
400 - Incorrect or missing org units
- Description: Retrieves metadata for a specified date range.
-
Parameters:
-
HttpContext httpContext: The HTTP context. -
IMemberServices memberServices: The AccountsUser services. -
ICountryServices countryServices: The country services. -
ITelemetryTracker telemetryTracker: The telemetry tracker. -
IAuditService auditService: The audit service. -
DateTime fromDate: The start date of the range. -
DateTime toDate: The end date of the range.
-
- Description: Retrieves organizational unit levels for a partner.
-
Parameters:
-
HttpContext httpContext: The HTTP context. -
IAuditService auditService: The audit service. -
IMemberServices memberServices: The AccountsUser services.
-
- Description: Updates organizational unit levels for a partner.
-
Parameters:
-
HttpContext httpContext: The HTTP context. -
IAuditService auditService: The audit service. -
IMemberServices memberServices: The AccountsUser services. -
ITelemetryTracker telemetryTracker: The telemetry tracker. -
List<OrgUnits> orgUnits: The list of organizational units to update. -
bool useIds: Whether to use IDs for updating.
-
- Description: Saves organizational unit levels for a partner.
-
Parameters:
-
HttpContext httpContext: The HTTP context. -
IAuditService auditService: The audit service. -
IMemberServices memberServices: The AccountsUser services. -
ITelemetryTracker telemetryTracker: The telemetry tracker. -
List<OrgUnits> orgUnits: The list of organizational units to save.
-
The MetaData class serves as a controller for managing metadata and organizational unit levels, providing various endpoints for retrieval, updating, and saving organizational units in the system.
- Frequently Asked Questions
-
EZ Loyalty Points Api
- Authorization
- Summary
- End Points
- Branding End Points
- Buckets End Points
- Competition End Points
- Country End Points
- Leader Boards End Points
- Machine Learning End Points
- Partner Activities End Points
- Partner End Points
- Partner FAQs End Points
- Partner Level Points End Points
- Reward Points End Points
- Subscriptions End Points
- Users End Points
- User Points End Points
- EZ Loyalty Admin Api