---
title: "Update member status into a given organization"
method: PUT
path: "/organizations/{org}/member/{user}"
tags: ["organizations"]
---

# Update member status into a given organization

`PUT /organizations/{org}/member/{user}`

## Request

- Base URL: `https://data.public.lu/api/1`
- URL: `https://data.public.lu/api/1/organizations/{org}/member/{user}`
- Auth: none declared

## Headers

- `X-Fields` string, mask

## Request body

- Member
  - `role` 'admin' | 'editor', required: The member role in the organization
  - `since` string, date-time: The date the user joined the organization
  - `user` MemberUserWithEmail
    - `class` string, required: The object class
    - `id` string, required: The object unique identifier
    - `avatar` string: The user avatar URL
    - `avatar_thumbnail` string: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
    - `first_name` string: The user first name
    - `last_name` string: The user larst name
    - `page` string: The user profile page URL
    - `slug` string, required: The user permalink string
    - `uri` string, required: The user API URI
    - `email` object: The user email (only present on show organization endpoint if the current user is member of the organization: admin or editor)
    - `last_login_at` object: The user last connection date (only present on show organization endpoint if the current user is member of the organization: admin or editor)

## Response `200`

Success

- Member
  - `role` 'admin' | 'editor', required: The member role in the organization
  - `since` string, date-time: The date the user joined the organization
  - `user` MemberUserWithEmail
    - `class` string, required: The object class
    - `id` string, required: The object unique identifier
    - `avatar` string: The user avatar URL
    - `avatar_thumbnail` string: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
    - `first_name` string: The user first name
    - `last_name` string: The user larst name
    - `page` string: The user profile page URL
    - `slug` string, required: The user permalink string
    - `uri` string, required: The user API URI
    - `email` object: The user email (only present on show organization endpoint if the current user is member of the organization: admin or editor)
    - `last_login_at` object: The user last connection date (only present on show organization endpoint if the current user is member of the organization: admin or editor)

## Other responses

- `403`: Not Authorized

---

[API](https://skmtc.dev/public/apis/udata-api.md) - [All operations](https://skmtc.dev/public/apis/udata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/public/apis/udata-api/revisions/3f583ca74f7e?raw)
