The Unity UpMan REST API may be exposed (or disabled) as a regular Unity endpoint. See the main Unity documentation for endpoints configuration details.

All paths must be naturally prefixed with the server’s base URL, endpoint deployment’s path (as configured) and API version (currently there is only one). Example query path can be similar to:

https://unity.example.com/rest-upman/v1/projects/PROJECT-ID

1. Authorization

The API supports two authentication methods. All project access is limited to the endpoint’s configured projects root.

1.1. Direct authentication

  • Required permission: the authenticated Unity entity must have sys:ProjectManagementRESTAPIRole set to manager in the endpoint’s configured authorization group.

  • This role permits creating projects and managing every project under the configured projects root.

  • The authenticated entity does not need membership or a project-local management role in those projects.

1.2. OAuth bearer token

Send the access token in the Authorization: Bearer ACCESS_TOKEN header. A valid token authenticates the API request.

UpMan authorizes API operations using only the token’s granted scopes. It does not check the REST API role, project membership or project-local management roles of either the client entity or the resource owner entity.

The scopes grant the following permissions:

  • sys:upman-api: permits creating projects and managing every project under the configured projects root.

  • sys:upman-api:PROJECT-ID: permits managing exactly the specified project. Project listings show only projects matched by the token’s scopes. This scope does not permit creating projects.

Project IDs are paths relative to the configured projects root. For example:

  • sys:upman-api:A permits managing project A, including removing its subprojects and changing their delegation configuration through A.

  • To access A/child as a project in its own right, the token needs sys:upman-api:A/child or the global sys:upman-api scope. The scope for A alone does not grant this access.

A token without a matching UpMan scope is denied access. The authorization server’s client and scope configuration controls which clients can obtain tokens with these permissions, even when the resource owner has no management role in the affected projects.

An already issued bearer token remains usable while the token itself is valid, even if the OAuth client’s password is subsequently marked outdated.

1.3. Rules for both methods

  • Authentication must succeed using the selected method. Direct password authentication with an outdated password is rejected. With bearer authentication, the selected credential is the access token; the client’s password being outdated does not by itself reject an otherwise valid token.

  • The REST API manager role or a matching OAuth scope permits granting projectsAdmin to project members, deleting subprojects and changing subproject delegation settings. The caller does not need a separate projectsAdmin role to perform these operations.

  • These operations require delegation to be enabled on the project. Deleting a subproject or changing its delegation settings also requires enableSubprojects to be enabled on the parent project. The REST API role and OAuth scopes do not override these project settings.

2. Projects

Each project returned by GET has a projectId containing its path relative to the configured projects root and a urlId suitable for one URL path segment. Use urlId as {project-id} in every project route. A slash is percent-encoded, so a/b has URL ID a%2Fb. Names containing a literal percent sign use an opaque URL ID, since the server rejects percent-encoded percent signs in URL paths. Always use the returned urlId instead of constructing it yourself. Project-specific OAuth scopes use projectId, not urlId.

The create response uses id for the new project’s ID. Retrieve the project listing to obtain its projectId and urlId before constructing subsequent request URLs.

2.1. Visibility prerequisites

A public project or subgroup requires all of its ancestor groups to be public, including groups above the endpoint’s configured projects root. Make the ancestors public first when public visibility is required. The REST manager role and OAuth scopes do not override this constraint.

A request to make a subgroup public under a private parent returns 409 with an empty body. The equivalent project update currently returns 500 with an empty body instead of 409; this is a known defect tracked in UY-1626. These responses currently do not identify the conflicting parent, so check the ancestor groups' visibility when diagnosing the failure.

2.2. Create project

@Path("/projects")
@POST

Adds a new project. Returns 200 with the new project’s ID.

If projectId is null or skipped, it will be auto generated.

Example input:

{
    "projectId": "my-project-id",
    "public": false,
    "displayedName": {
        "en": "displayedName"
    },
    "description": {
        "en": "description"
    },
    "logoUrl": "https://www.myservice.org/logo",
    "enableSubprojects": true,
    "readOnlyAttributes": []
}

Example output:

{
    "id": "my-project-id"
}

2.3. Update project

@Path("/projects/{project-id}")
@PUT

Updates the project.

Example input:

{
    "public": false,
    "displayedName": {
        "en": "displayedName"
    },
    "description": {
        "en": "description"
    },
    "logoUrl": "https://www.myservice.org/logo",
    "enableSubprojects": true,
    "readOnlyAttributes": []
}

2.4. Remove project

@Path("/projects/{project-id}")
@DELETE

Removes the given project.

2.5. Get project

@Path("/projects/{project-id}")
@GET

Retrieves the given project.

Example output:

{
    "projectId": "my-project-id",
    "urlId": "my-project-id",
    "public": false,
    "displayedName": {
        "en": "displayedName"
    },
    "description": {
        "en": "description"
    },
    "logoUrl": "https://www.myservice.org/logo",
    "enableSubprojects": true,
    "readOnlyAttributes": [],
    "registrationForm": "registrationFormName",
    "signUpEnquiry": "signUpEnquiryName",
    "membershipUpdateEnquiry": "membershipUpdateEnquiryName"
}

2.6. Get projects

@Path("/projects")
@GET

Retrieves all projects.

Example output:

[
	{
	    "projectId": "my-project-id",
	    "urlId": "my-project-id",
	    "public": false,
	    "displayedName": {
	        "en": "displayedName"
	    },
	    "description": {
	        "en": "description"
	    },
	    "logoUrl": "https://www.myservice.org/logo",
	    "enableSubprojects": true,
	    "readOnlyAttributes": [],
	    "registrationForm": "registrationFormName",
	    "signUpEnquiry": "signUpEnquiryName",
	    "membershipUpdateEnquiry": "membershipUpdateEnquiryName"
	}
]

3. Policy documents

3.1. Add policy document

@Path("/projects/{project-id}/policyDocuments")
@POST

Adds a new project policy document. Returns 200 with {"id":1} for the created document. ContentType can be one of "LINK" or "EMBEDDED"

Example input:

{
    "name": "Policy1",
    "displayedName": {
        "en": "Policy1"
    },
    "mandatory": false,
    "contentType": "EMBEDDED",
    "content": {
        "en": "Policy1"
    }
}

3.2. Update policy document

@Path("/projects/{project-id}/policyDocuments")
@QueryParam("incrementRevision")
@PUT

Updates the given policy document. Set incrementRevision=true to increment its revision and require re-acceptance. With incrementRevision=false, the revision stays unchanged. The revision field is returned by GET but is not accepted in the update body. contentType can be LINK or EMBEDDED. The document must belong to the project and must not be used outside the project.

Example input:

{
    "id": 1,
    "name": "Policy1",
    "displayedName": {
        "en": "Policy1"
    },
    "mandatory": false,
    "contentType": "EMBEDDED",
    "content": {
        "en": "Policy1"
    }
}

3.3. Remove policy document

@Path("/projects/{project-id}/policyDocuments/{policy-id}")
@DELETE

Removes the policy document from the project and synchronizes its registration and signup enquiry forms. If the document is also used by another project, an external form, or an identity provider endpoint, the document is only unlinked from the project. Otherwise, the document is deleted.

3.4. Get policy document

@Path("/projects/{project-id}/policyDocuments/{policy-id}")
@GET

Returns the given policy document.

Example output:

{
    "id": 1,
    "name": "Policy1",
    "displayedName": {
        "en": "Policy1"
    },
    "mandatory": false,
    "contentType": "EMBEDDED",
    "revision": 1,
    "content": {
        "en": "Policy1"
    }
}

3.5. Get policy documents

@Path("/projects/{project-id}/policyDocuments")
@GET

Returns all project policy documents.

Example output:

[
    {
        "id": 1,
        "name": "Policy1",
        "displayedName": {
            "en": "Policy1"
        },
        "mandatory": false,
        "contentType": "EMBEDDED",
        "revision": 1,
        "content": {
            "en": "Policy1"
        }
    },
    {
        "id": 2,
        "name": "Policy2",
        "displayedName": {
            "en": "Policy2"
        },
        "mandatory": false,
        "contentType": "EMBEDDED",
        "revision": 1,
        "content": {
            "en": "Policy2"
        }
    }
]

4. Forms

Each form’s /link route returns its public URL. It returns 404 when the form is absent, invitation-only, or has no public link.

4.1. Form JSON and editing

These routes reuse Unity’s registration and enquiry form JSON, also exposed through the Admin REST registration forms and Admin REST enquiry forms routes. See the main manual’s registration forms and enquiry forms sections for the form settings. To obtain a complete JSON definition, generate a project form or configure one in Admin UI, then retrieve it through REST.

Form property names are case-sensitive and mix conventions. For example, the form’s identifier is Name, its displayed name uses "DisplayedName":{"Map":{"en":"Join project"},"DefaultValue":null}, and enquiry forms also have properties such as type and targetGroups. Project and subgroup displayedName values instead use plain language maps such as {"en":"Project"}; do not copy that representation into a form.

Edit and PUT the complete retrieved form, preserving its Name and other settings. For example, after creating the registration form, change only its English displayed name using jq:

UPMAN_URL='https://unity.example.com/rest-upman/v1'
UPMAN_TOKEN='ACCESS_TOKEN'
curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $UPMAN_TOKEN" \
  "$UPMAN_URL/projects/my-project-id/registrationForm" \
  -o registration-form.json
jq '.DisplayedName.Map.en = "Join my project"' registration-form.json > registration-form-updated.json
curl --fail-with-body --silent --show-error -X PUT \
  -H "Authorization: Bearer $UPMAN_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary @registration-form-updated.json \
  "$UPMAN_URL/projects/my-project-id/registrationForm"

Attributes collected in Unity’s root group / must be allowed in the UpMan REST endpoint configuration. This is separate from the endpoint’s projects root. For the name attribute used by autogenerated registration forms, configure:

unity.upman.rest.rootGroupAttributes.1=name

Use further numbered entries for other permitted root-group attributes. Without the matching entry, even a GET followed by an unchanged PUT can return 400 with a message such as Attribute registration parameter name is not permited in root group.

4.2. Create registration form

@Path("/projects/{project-id}/registrationForm")
@QueryParam("autogenerate")
@POST
@Consumes(MediaType.APPLICATION_JSON)

Creates a new project registration form from the JSON request body, or generates one when autogenerate=true. Autogeneration accepts an empty body but still requires Content-Type: application/json; omitting this header returns 415. Success returns 204 with no body. For example:

UPMAN_URL='https://unity.example.com/rest-upman/v1'
UPMAN_TOKEN='ACCESS_TOKEN'
curl --fail-with-body --silent --show-error -i -X POST \
  -H "Authorization: Bearer $UPMAN_TOKEN" \
  -H 'Content-Type: application/json' \
  "$UPMAN_URL/projects/my-project-id/registrationForm?autogenerate=true"

Use the same headers and empty-body request for signUpEnquiry and membershipUpdateEnquiry. See Form JSON and editing for the root-attribute allowlist required when editing generated forms.

4.3. Update registration form

@Path("/projects/{project-id}/registrationForm")
@QueryParam("ignoreRequests")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Updates an existing project registration form. The body of the request should include a JSON description of a form, as during form creation. The only difference is that this method expects existing form id. The optional boolean ignoreRequests query parameter can be used to force form update even if it has attached pending requests. Beware, however, that those requests can easily become invalid.

4.4. Remove registration form

@Path("/projects/{project-id}/registrationForm")
@QueryParam("dropRequests")
@DELETE

Removes project registration form. An optional query parameter dropRequests can be provided with a boolean value, to control whether the form should be removed also if it has pending requests (the requests will be removed with the form).

4.5. Get registration form

@Path("/projects/{project-id}/registrationForm")
@GET

Returns the complete project registration form in Unity’s form JSON format; see Form JSON and editing.

@Path("/projects/{project-id}/registrationForm/link")
@GET

Returns the public registration form link, for example {"link":"https://example.org/register"}.

4.7. Create signup enquiry form

@Path("/projects/{project-id}/signUpEnquiry")
@QueryParam("autogenerate")
@POST
@Consumes(MediaType.APPLICATION_JSON)

Creates a new signup enquiry form from the JSON request body, or generates one when autogenerate=true. Autogeneration requires Content-Type: application/json even with an empty body and returns 204. See the registration form creation example for the headers and Form JSON and editing for the shared JSON format.

4.8. Update signup enquiry form

@Path("/projects/{project-id}/signUpEnquiry")
@QueryParam("ignoreRequests")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Updates an existing signup enquiry form. The body of the request should include a JSON description of a form, as during form creation. The only difference is that this method expects existing form id. The optional boolean ignoreRequests query parameter can be used to force form update even if it has attached pending requests. Beware, however, that those requests can easily become invalid.

4.9. Remove signup enquiry form

@Path("/projects/{project-id}/signUpEnquiry")
@QueryParam("dropRequests")
@DELETE

Removes project signup enquiry form. An optional query parameter dropRequests can be provided with a boolean value, to control whether the form should be removed also if it has pending requests (the requests will be removed with the form).

4.10. Get signup enquiry form

@Path("/projects/{project-id}/signUpEnquiry")
@GET

Returns the complete project signup enquiry form in Unity’s form JSON format; see Form JSON and editing.

@Path("/projects/{project-id}/signUpEnquiry/link")
@GET

Returns the public signup enquiry form link as {"link":"https://example.org/signup"}.

4.12. Create membership update enquiry form

@Path("/projects/{project-id}/membershipUpdateEnquiry")
@QueryParam("autogenerate")
@POST
@Consumes(MediaType.APPLICATION_JSON)

Creates a new membership update enquiry form from the JSON request body, or generates one when autogenerate=true. Autogeneration requires Content-Type: application/json even with an empty body and returns 204. See the registration form creation example for the headers and Form JSON and editing for the shared JSON format.

4.13. Update membership update enquiry form

@Path("/projects/{project-id}/membershipUpdateEnquiry")
@QueryParam("ignoreRequests")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Updates an existing membership update enquiry form. The body of the request should include a JSON description of a form, as during form creation. The only difference is that this method expects existing form id. The optional boolean ignoreRequests query parameter can be used to force form update even if it has attached pending requests. Beware, however, that those requests can easily become invalid.

4.14. Remove membership update enquiry form

@Path("/projects/{project-id}/membershipUpdateEnquiry")
@QueryParam("dropRequests")
@DELETE

Removes project membership update enquiry form. An optional query parameter dropRequests can be provided with a boolean value, to control whether the form should be removed also if it has pending requests (the requests will be removed with the form).

4.15. Get membership update enquiry form

@Path("/projects/{project-id}/membershipUpdateEnquiry")
@GET

Returns the complete project membership update enquiry form in Unity’s form JSON format; see Form JSON and editing.

@Path("/projects/{project-id}/membershipUpdateEnquiry/link")
@GET

Returns the public membership update enquiry form link as {"link":"https://example.org/update"}.

5. Members

5.1. Add member

@Path("/projects/{project-id}/members/{userId}")
@POST

Adds a user to the specified project.

Property userId should be provided as user’s email.

5.2. Remove member

@Path("/projects/{project-id}/members/{userId}")
@DELETE

Removes a user from the specified project.

5.3. Get member

@Path("/projects/{project-id}/members/{userId}")
@GET

Returns the specified user. Example output:

{
    "email": "[email protected]",
    "role": "manager",
    "attributes": [{
        "name": "attribute-name",
        "values": ["val1", "val2"]
    }]
}

5.4. Get members

@Path("/projects/{project-id}/members")
@GET

Returns all project users. When groupPath is omitted, this route returns the legacy response below, without entityId or name. Use an explicit empty query parameter, ?groupPath=, for the response with stable entity IDs and support for members without email. Example output:

[
	{
	    "email": "[email protected]",
	    "role": "manager",
	    "attributes": [{
	        "name": "attribute-name",
	        "values": ["val1", "val2"]
	    }]
	}
]

5.5. Get member authorization role

@Path("/projects/{project-id}/members/{userId}/role")
@GET

Returns user’s project authorization role. Property role can be one of (manager, projectsAdmin, regular) Example output:

{
    "role": "manager"
}

5.6. Set member authorization role

@Path("/projects/{project-id}/members/{userId}/role")
@PUT

Updates user’s authorization role. Property role can be one of (manager, projectsAdmin, regular).

Example output:

{
    "role": "manager"
}

6. Invitations, subgroups, and requests

The routes below require an authenticated user with the manager value of sys:ProjectManagementRESTAPIRole in the endpoint’s configured authorization group, or an OAuth bearer token with a scope covering the selected project. The project must exist under the configured root and have delegation enabled. Use the project’s returned urlId as {project-id}, as described under Projects.

Group paths in JSON and query parameters are relative to the selected project. An empty path selects the project root. Absolute paths, empty path segments, and traversal segments are rejected. All new routes return JSON where a body is shown. Created resources return 201, completed changes return 204, malformed inputs return 400, denied access returns 403, missing or out-of-project resources return 404, and state conflicts return 409.

6.1. Invitations

6.1.1. Send invitations

@Path("/projects/{project-id}/invitations")
@POST
@Consumes(MediaType.APPLICATION_JSON)

Sends invitations to the specified addresses. Example input:

{
  "emails": ["[email protected]"],
  "groups": ["team", "team/workshop"],
  "allowModifyGroups": false,
  "expiration": "2026-10-01T12:00:00Z"
}

A project registration form and signup enquiry form must both be configured before sending. Example output, with one result for each distinct address:

[{"email":"[email protected]","status":"sent","message":null}]

Statuses are sent, alreadyMember, and failed. A failed result includes an error message; sending to other addresses continues. A send failure can leave a saved invitation. Choose an expiration in the future when reusing the example. The input is an ISO-8601 UTC timestamp; the invitation GET responses use numeric timestamps as described below.

6.1.2. Get invitations

@Path("/projects/{project-id}/invitations")
@GET

Returns invitations with code, email, relative groups, allowModifyGroups, expiration, lastSentTime, numberOfSends, and link.

In responses, expiration and lastSentTime are JSON numbers counting seconds since 1970-01-01T00:00:00Z, with optional fractional seconds. They are not milliseconds or ISO-8601 strings. For example, an invitation can include "expiration":1796126400.0 and "lastSentTime":1794426027.43.

6.1.3. Get invitation

@Path("/projects/{project-id}/invitations/{code}")
@GET

Returns one invitation. An invitation belonging to another project is reported as missing.

6.1.4. Remove invitation

@Path("/projects/{project-id}/invitations/{code}")
@DELETE

Removes the invitation. An invitation belonging to another project is reported as missing.

6.1.5. Resend invitation

@Path("/projects/{project-id}/invitations/{code}/resend")
@POST

Sends the same code again. The invitation must have at least eight hours of remaining validity and a usable contact address and message template.

6.1.6. Reinvite

@Path("/projects/{project-id}/invitations/{code}/reinvite")
@POST

Creates and sends a replacement invitation, then removes the old code. Clients should refresh the invitation list after reinviting.

6.2. Subgroups

6.2.1. Get subgroups

@Path("/projects/{project-id}/groups")
@GET

Returns the project root and its descendants as a flat array. Each item has a relative path, localized displayedName, public, delegated, enableSubprojects, logoUrl, and relative subGroups paths.

6.2.2. Create subgroup

@Path("/projects/{project-id}/groups")
@POST
@Consumes(MediaType.APPLICATION_JSON)

Creates a subgroup and returns its generated path.

Example input:

{"parentPath":"team","displayedName":{"en":"Workshop"},"public":false}

Example output:

{"path":"team/Ab123"}

6.2.3. Get subgroup by path

@Path("/projects/{project-id}/groups/by-path")
@QueryParam("path")
@GET

Returns one group. For example, use path=team/Ab123 to select a nested subgroup.

6.2.4. Remove subgroup by path

@Path("/projects/{project-id}/groups/by-path")
@QueryParam("path")
@DELETE

Recursively removes a regular group or a delegated subproject. Deleting a delegated subproject also removes its related forms. The project root cannot be deleted through this route.

6.2.5. Update subgroup

@Path("/projects/{project-id}/groups")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Updates the subgroup’s displayed name and visibility together. All fields are required. Use the relative path returned when the subgroup was created. Public visibility requires public ancestors; see Visibility prerequisites. The project root is updated through the project route. Example input:

{"path":"team/Ab123","displayedName":{"en":"New name"},"public":false}

6.2.6. Set subgroup delegation

@Path("/projects/{project-id}/groups/by-path/delegation")
@QueryParam("path")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Accepts {"enabled":true,"enableSubprojects":false,"logoUrl":null}. Delegation follows the engine’s subproject rules, including inherited forms.

6.3. Subgroup members

Use groupPath=team/Ab123 to select a nested subgroup. An omitted groupPath selects the project root. The by-id routes support users without email; the existing email-based routes remain available.

6.3.1. Get subgroup members

@Path("/projects/{project-id}/members")
@QueryParam("groupPath")
@GET

Lists members with stable entityId, name, email (which may be null), role, and attributes. Omitting groupPath preserves the existing project-root response.

For the project root, explicitly request GET /projects/{project-id}/members?groupPath= to select this response instead of the legacy listing. Example output:

[
    {
        "entityId": 42,
        "name": "Example User",
        "email": "[email protected]",
        "role": "manager",
        "attributes": [{"name":"name","values":["Example User"]}]
    },
    {
        "entityId": 43,
        "name": null,
        "email": null,
        "role": "regular",
        "attributes": []
    }
]

6.3.2. Get subgroup member by ID

@Path("/projects/{project-id}/members/by-id/{entityId}")
@QueryParam("groupPath")
@GET

Returns one member from the selected group.

6.3.3. Add subgroup member by ID

@Path("/projects/{project-id}/members/by-id/{entityId}")
@QueryParam("groupPath")
@PUT

Adds the entity to the selected group.

6.3.4. Remove subgroup member by ID

@Path("/projects/{project-id}/members/by-id/{entityId}")
@QueryParam("groupPath")
@DELETE

Removes the entity from the selected group and its descendants.

6.3.5. Get subgroup member role

@Path("/projects/{project-id}/members/by-id/{entityId}/role")
@QueryParam("groupPath")
@GET

Returns a role such as {"role":"regular"}.

6.3.6. Set subgroup member role

@Path("/projects/{project-id}/members/by-id/{entityId}/role")
@QueryParam("groupPath")
@PUT
@Consumes(MediaType.APPLICATION_JSON)

Accepts a role of regular, manager, or projectsAdmin. Role changes require delegation on the selected group and retain the engine’s rule that a project must have a manager.

6.4. Requests

6.4.1. Get requests

@Path("/projects/{project-id}/requests")
@GET

Lists pending registration, signup enquiry, and membership update requests. Each response item includes id, operation (SignUp or Update), type (Registration or Enquiry), name, email, emailVerified, relative groups, and requestedTime.

requestedTime is a JSON number counting seconds since 1970-01-01T00:00:00Z, with optional fractional seconds. This representation applies to registration, signup enquiry, and membership update requests. It is not an ISO-8601 string or a count of milliseconds.

{"id":"request-1","operation":"SignUp","type":"Registration",
 "name":"Example User","email":"[email protected]","emailVerified":true,
 "groups":["team"],"requestedTime":1794426125.618}

6.4.2. Get request

@Path("/projects/{project-id}/requests/{requestId}")
@GET

Returns one pending request with the fields shown above.

6.4.3. Decide request

@Path("/projects/{project-id}/requests/{requestId}/state")
@QueryParam("decision")
@POST

Set decision to accept or decline (for example, ?decision=accept). The request type and operation are resolved from the stored pending request. No body is required. A missing, completed, or foreign-project request is not available for a decision.