Mock Manifest API

Describes how the Mock Manifest API differs from the Manifest API, including that changes are not saved, with example requests.

The Mock Manifest API has the same endpoints, request formats, and response structure as the Manifest API, but it uses fake data instead of Manifest groups and members. This page describes how the mock API behaves differently and gives example requests that use the mock data.

Purpose

Use the mock API to get a feel for the structure of the Manifest API before requesting access: what requests look like, what responses contain, and which errors are returned for invalid requests.

The mock API is not meant to be used in integration tests. Its data is generated and may change at any time, changes made through it are not saved, and it does not reproduce every behavior of the Manifest API, such as permission errors. Tests written against it can break without notice and can pass for requests that would fail against the Manifest API.

Getting Started

  • Subscribe an application to the Mock Manifest API in the UW Developer Portal. Approval is instantaneous; there is no need to request access.
  • Use https://mock.api.wisc.edu/manifest as the base URL of your requests.
  • Get an access token from https://api.wisc.edu/oauth/token with your application's credentials, and send it in the Authorization header of each request, the same as for the Manifest API.
  • A quota of 1000 requests per minute is enforced.

Mock Data

The mock API has six groups, all in the uw:org folder:

  • uw:org:my:group and uw:org:mock:group are always available. Use them in your requests.
  • Four more groups have randomly generated names. Each of the two groups above contains these four groups as members.

Every group has 20 members with randomly generated names, NetIDs, and email addresses. Member IDs are randomly generated and may change when the mock API is updated, so look them up instead of hard-coding them (see Find Member IDs). The data is the same from one request to the next.

Changes Are Not Saved

Requests that change data are validated and return the same responses as the Manifest API, but nothing is saved. The mock data is shared by every application that uses the mock API, so no application can change it. After a successful change, getting the data again returns it unchanged:

  • Creating a group with POST /groups returns 201 Created and the new group, but getting the group afterwards returns 404 Not Found.
  • Changing a group's description with PATCH /groups/{id} returns the group with the new description, but getting the group afterwards returns the original description.
  • Deleting a group with DELETE /groups/{id} returns 204 No Content, but the group is still returned afterwards.
  • Adding or removing members and groups with POST or DELETE /groups/{id}/membersAndGroups returns 204 No Content, but the group's members are unchanged afterwards.
  • Exports you create are accepted but never built. They remain Pending and are not stored permanently. See the mock data section of Manifest API Exports.

Differences from the Manifest API

The mock API checks requests against the mock data, so you can see its validation errors:

  • Invalid request bodies return 400 Bad Request, 409 Conflict, or 415 Unsupported Media Type, as described in the API specification.
  • Groups, members, and nested groups that aren't in the mock data return 404 Not Found.
  • Creating a group that already exists in the mock data returns 409 Conflict.
  • Adding a group as a member of itself returns 400 Bad Request.

Some behavior of the Manifest API depends on your application's permissions in Manifest or on how a group is set up, and is never returned by the mock API:

  • Your application can view, change, and delete every mock group. Permission errors (403 Forbidden) are never returned for missing Manifest permissions.
  • Groups can be created in any folder, and a folder that doesn't exist is not an error.
  • There are no composite groups, so the 409 Conflict for changing a composite group's members is never returned.
  • Changes never time out, so 504 Gateway Timeout is never returned.
  • The mock API allows 60 exports per hour instead of 20.

Examples

Each request needs the Authorization header. Requests with a body also need the Content-Type header shown.

Find Groups

The /groups endpoint requires a filter. Every mock group is in the uw:org folder, so this request returns all six groups, including the four with randomly generated names:

GET https://mock.api.wisc.edu/manifest/groups?filter=folder("uw:org")

Authorization: Bearer <your_access_token>

See Manifest API Query Parameters for the filter syntax.

Find Member IDs

Get the members of one of the groups that are always available, and use their id values in other requests:

GET https://mock.api.wisc.edu/manifest/groups/uw:org:mock:group/members?page[size]=3

Authorization: Bearer <your_access_token>

Add Members and Groups to a Group

Members are identified by member ID and groups by group path. This request adds a member found in the previous example and the group uw:org:mock:group to the group uw:org:my:group:

POST https://mock.api.wisc.edu/manifest/groups/uw:org:my:group/membersAndGroups

Content-Type: application/vnd.api+json

Authorization: Bearer <your_access_token>

{
"data":[
{
"type":"members",
"id":"<a member ID from Find Member IDs>"
},
{
"type":"groups",
"id":"uw:org:mock:group"
}
]
}

A 204 No Content response means the request was valid. The change is not saved, so the members of uw:org:my:group are unchanged afterwards. A member ID or group path that isn't in the mock data returns 404 Not Found, with an error for each one that points to its position in data.

Remove Members and Groups from a Group

Send the same body with DELETE to remove members and groups:

DELETE https://mock.api.wisc.edu/manifest/groups/uw:org:my:group/membersAndGroups

Content-Type: application/vnd.api+json

Authorization: Bearer <your_access_token>

{
"data":[
{
"type":"members",
"id":"<a member ID from Find Member IDs>"
}
]
}

A 204 No Content response means the request was valid. As in the Manifest API, removing a member or group that isn't a direct member of the group also returns 204 No Content.

Create a Group

Use a path that isn't one of the mock groups. Creating one of the existing mock groups returns 409 Conflict.

POST https://mock.api.wisc.edu/manifest/groups

Content-Type: application/vnd.api+json

Authorization: Bearer <your_access_token>

{
"data":{
"type":"groups",
"attributes":{
"path":"uw:org:my:new-group",
"description":"A new group"
}
}
}

A 201 Created response contains the new group, but it is not saved: getting uw:org:my:new-group afterwards returns 404 Not Found.



Keywords:
manifest-api 
Doc ID:
165964
Owned by:
Jared K. in DoIT Enterprise Integration - API Team
Created:
2026-12-03
Updated:
2026-12-03
Sites:
DoIT Enterprise Integration - API Team