Enrolment Locales
Resource directories returned.
Resource directory returned by the list endpoint.
Directory name under locales/, e.g. fields for locales/fields/.
Enrolment forms whose internationalization.resources reference this directory.
Cultures that have a stored file directly inside the directory.
GET /api/{tenantId}/admin/enrolmentForms/locales HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
Resource directories returned.
[
{
"resourceDir": "text",
"formNames": [
"text"
],
"cultures": [
"text"
]
}
]Get an enrolment locale resource file
Resource file returned.
One culture's stored content, returned by the get and built by the save endpoint.
Directory name, as in Neo.Web.Api.Admin.Controllers.Enrolment.EnrolmentLocalesController.EnrolmentLocaleResourceListItem.ResourceDir.
Culture the content is stored under, e.g. en.
Enrolment forms whose internationalization.resources reference this directory.
The stored tree: nested objects of string leaves.
Resource or culture is invalid.
No file stored for this resource and culture.
The stored file cannot be parsed.
GET /api/{tenantId}/admin/enrolmentForms/locales/{culture}/{resourceDir} HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"resourceDir": "text",
"culture": "text",
"formNames": [
"text"
],
"values": null
}Save an enrolment locale resource file
Merges the request into the culture's stored tree: only the keys present in the request are touched, and every key already stored elsewhere in the tree is preserved. A key set to null, or to a blank string, is removed — M:Neo.Web.Api.Admin.Controllers.Wallet.ILocaleResourceRepository.Write(System.String,System.String,System.String,System.Collections.Generic.IReadOnlyList{System.ValueTuple{System.String[],System.String}},System.Threading.CancellationToken) applies that rule to every locale file, not just this one. An empty object leaves the tree exactly as it is stored.
Authorization
Requires tenant.configuration.enrolmentFormLocale:write scope.
Resource file saved.
No content
Resource, culture or the request body is invalid.
The stored file cannot be parsed, so the request cannot be merged into it.
PUT /api/{tenantId}/admin/enrolmentForms/locales/{culture}/{resourceDir} HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
No content
Last updated

