# “Organizations” Endpoint - PUT Changes a single organization-user

**URL:** <https://community.toggl.com/t/organizations-endpoint-put-changes-a-single-organization-user/321>\
**Category:** API References\
**Tags:** user, organization, api, endpoints, put\
**Created:** [December 2, 2024, 11:54am UTC](https://community.toggl.com/t/organizations-endpoint-put-changes-a-single-organization-user/321 "2024-12-02T11:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 11:54am UTC](https://community.toggl.com/t/organizations-endpoint-put-changes-a-single-organization-user/321/1 "2024-12-02T11:54:49Z")

</div>

```auto
https://api.track.toggl.com/api/v9/organizations/{organization_id}/users/{organization_user_id}

```

Changes a single organization-user. Can affect the following values:

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::PUT, "https://api.track.toggl.com/api/v9/organizations/{organization_id}/users/{organization_user_id}".to_string()).json(&serde_json::json!(\{"admin":"boolean","inactive":"boolean","labor_cost":"number","labor_cost_change_mode":"string","postedFields":[\{\}],"rate":"number","rate_change_mode":"string","role":"string","role_id":"integer","view_edit_billable_rates":"boolean","view_edit_labor_costs":"boolean","working_hours_in_minutes":"integer"\})) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/organizations/#parameters-6)

#### Path[​](https://engineering.toggl.com/docs/api/organizations/#path-5)

| name | type | required | description |
| --- | --- | --- | --- |
| organization\_id | integer | true | Numeric ID of the organization |

#### Body[​](https://engineering.toggl.com/docs/api/organizations/#body-3)

| Name | Type | Description |
| --- | --- | --- |
| admin | boolean | deprecated |
| inactive | boolean | - |
| labor\_cost | number | Custom labor cost for project user |
| labor\_cost\_change\_mode | string | - |
| postedFields | Array of string | for explicit NULL-s, add field name here |
| rate | number | Paid feature |
| rate\_change\_mode | string | Paid feature |
| role | string | Allowed inputs: “admin”, “user”, “projectlead” and “teamlead” |
| role\_id | integer | - |
| view\_edit\_billable\_rates | boolean | - |
| view\_edit\_labor\_costs | boolean | - |
| working\_hours\_in\_minutes | integer | Paid feature |

### Response[​](https://engineering.toggl.com/docs/api/organizations/#response-6)

#### 200[​](https://engineering.toggl.com/docs/api/organizations/#200-6)

OK

#### 400[​](https://engineering.toggl.com/docs/api/organizations/#400-5)

Possible error messages:

- Missing or invalid organization\_id.
- Invalid role\_id.
- Cannot use both admin flags and role\_id.
- User does not exist in the organization.
- At least one field is required.
- Field ‘name’ cannot be empty.
- Missing e-mail.
- Invalid e-mail: ‘…’
- Email already exists.
- Group ‘…’ is not in Organization ‘…’.
- Workspace ‘…’ is not in Organization ‘…’.
- Cannot remove admin privileges from owner.
- Cannot deactivate owner.
- Cannot remove admin privileges from paying user.
- Cannot deactivate paying user.
- User has multiple organizations.
- Invalid organization role.
- Invalid role ID: 1234.
- Invalid workspace role with ID: 1234.

#### 403[​](https://engineering.toggl.com/docs/api/organizations/#403-5)

User is not authorized to update the organization user

#### 404[​](https://engineering.toggl.com/docs/api/organizations/#404-1)

Possible error messages:

- Invalid organization user ID.
- Failed to load user data.
