---
title: "Update the user information associated with a space"
method: POST
path: "/spaces/{id}/updateUsers"
tags: ["spaces"]
---

# Update the user information associated with a space

`POST /spaces/{id}/updateUsers`

Spaces are groupings of collections and datasets.

## Path parameters

- `id` string, required

## Request body

- object
  - `rolesandusers` object — A map that contains a role level as a key and a comma separated String of user IDs as the value

## Response `200`

OK

## Other responses

- `400` — rolesandusers data is missing from the updateUsers call.
- `404` — The requested resource was not found

## Changes

> 50 revisions in range; 20 could not be searched.

- **2020-09-29** `8bd7fd33f496` — 1 info
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/clowder-framework/apis/clowder/changes/spaces/:id/updateUsers/post.md)

---

[API](https://skmtc.dev/clowder-framework/apis/clowder.md) · [All operations](https://skmtc.dev/clowder-framework/apis/clowder/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clowder-framework/clowder/revisions/bcd187478e0d/schema)
