curl --request PUT \
--url https://api.exowpee.com/v1/team/member-organizations/{member} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pseudo": "<string>",
"is_active": true
}
'import requests
url = "https://api.exowpee.com/v1/team/member-organizations/{member}"
payload = {
"pseudo": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pseudo: '<string>', is_active: true})
};
fetch('https://api.exowpee.com/v1/team/member-organizations/{member}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/team/member-organizations/{member}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'pseudo' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/team/member-organizations/{member}"
payload := strings.NewReader("{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.exowpee.com/v1/team/member-organizations/{member}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/team/member-organizations/{member}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"organization_id": "<string>",
"id": "<string>",
"user_id": "<string>",
"pseudo": "<string>",
"phone_number": "<string>",
"email": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}Edit an organization member
Changes a member’s display name or activates/deactivates their access to the organization.
curl --request PUT \
--url https://api.exowpee.com/v1/team/member-organizations/{member} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pseudo": "<string>",
"is_active": true
}
'import requests
url = "https://api.exowpee.com/v1/team/member-organizations/{member}"
payload = {
"pseudo": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pseudo: '<string>', is_active: true})
};
fetch('https://api.exowpee.com/v1/team/member-organizations/{member}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/team/member-organizations/{member}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'pseudo' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/team/member-organizations/{member}"
payload := strings.NewReader("{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.exowpee.com/v1/team/member-organizations/{member}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/team/member-organizations/{member}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pseudo\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"organization_id": "<string>",
"id": "<string>",
"user_id": "<string>",
"pseudo": "<string>",
"phone_number": "<string>",
"email": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}organization_members.update
Conditions
- pseudo, when sent, is trimmed and must not be empty, at most 250 characters, and unique in the organization, ignoring case and surrounding spaces, among the other members and the pending unexpired invitations; a concurrent clash is also reported as a pseudo error.
- Deactivating (is_active false) is refused with 403 for the organization owner and for the caller’s own membership. Sending is_active true is not restricted by this rule.
- When the member is deactivated, the member’s profile assignments in the organization are retired: public accounting export links they created are revoked and stay revoked after reactivation. The assignments themselves are not deleted.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the organization member, meaning the membership record of the person in the organization, not the user identifier (27-character KSUID string).
Body
New display name, trimmed, at most 250 characters, unique in the organization among members and pending invitations, ignoring case. Optional, but when the key is sent it cannot be empty or null.
250Whether the member is active. Optional; false is refused (403) for the organization owner and for the caller's own membership.
Response
OrganizationMemberResource
Identifier of the organization the record belongs to.
Identifier of the organization membership record (27-character KSUID string); this is what the {member} path parameters expect.
Identifier of the user account behind the member (27-character KSUID string).
Display name of the member in this space; unique within it, ignoring case. May be null when none was set.
Phone number of the underlying account; null when the account has none.
Email address of the underlying account; null when the account has none.
Whether the member can act in this space. Deactivated members keep their record.
Date and time the record was created (ISO 8601, UTC).
Date and time the record was last changed (ISO 8601, UTC).