---
title: "Make someone an admin or a member [write, owner]"
method: PATCH
path: "/universes/{slug}/members/{userId}"
---

# Make someone an admin or a member \[write, owner\]

`PATCH /universes/{slug}/members/{userId}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/universes/{slug}/members/{userId}`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required
- `userId` string, required

## Request body

- object
  - `role` 'admin' | 'member', required

## Response `200`

OK

- Ok
  - `ok` true, required

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 4 info
  - added the optional property `error/request_id` to the response with the `default` status
  - the response property `error` became required for the status `default`
  - the response property `error/code` became required for the status `default`
  - the response property `error/message` became required for the status `default`

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/universes/:slug/members/:userId/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
