Jicoo Developer Potal
  1. User
Jicoo Developer Potal
  • Create powerful apps with Jicoo's API
  • Quick start
  • Authentication
  • Errors
  • Versioning
  • Types
  • API Reference Overview
  • Guide
    • How to use webhook
    • How to use Account integration
  • Guide(Japanese)
    • アカウント連携の使い方
    • Webhookの使い方
    • ホストの優先度を更新する方法
  • API Reference
    • Jicoo API
    • Webhook Schema
      • Webhook schema
      • event property
      • createdAt property
      • object property
      • contact property
      • answers property
      • answers items property
      • tracking property
    • Booking
      • List Bookings
      • Get Booking
      • Cancel Booking
      • Reschedule Booking
      • Create Booking
      • Update Booking
      • Get Booking Contacts
    • Schedule
      • Update Schedule
      • Create Schedule
      • List Schedules
      • Delete Schedule
    • Availability
      • List User Availability Calendars
      • Get User Availability Calendar
    • Oraganization
      • User
        • List Organization Users
          GET
        • Delete Organization User
          DELETE
        • Get Organization User
          GET
        • Update Organization User
          PATCH
      • Invitation
        • Create Organiztion Invitation
        • List Organization Invitations
        • Get Organization Invitation
        • Delete Organiztion Invitation
      • Get Organization Team
        GET
    • Event Types
      • Get Event Type
      • List Event Types
      • List Event Type Hosts
      • Get Event Type Available Schedules
      • Account Integration
      • Update Event Type Host
      • Delete Event Type Host
      • Create Event Type Host
  1. User

Update Organization User

PATCH
/v1/organization_users/{userId}
The Update Organization User Role API allows you to modify the role of a specific user within an organization, identified by userId. This API is used to update the user’s permissions and responsibilities by changing their role, ensuring that their access level aligns with their current position and duties within the organization.

Request

Authorization
Add parameter in header
X-Jicoo-Api-Key
Example:
X-Jicoo-Api-Key: ********************
Path Params
userId
string 
required
Body Params application/json
role
enum<string> 
optional
Allowed values:
owneradminmemberrestricted
Example
{
  "role": "owner"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v1/organization_users/' \
--header 'Content-Type: application/json' \
--header 'X-Jicoo-Api-Key;' \
--data-raw '{
    "role": "owner"
}'

Responses

🟢200OK
application/json
Body
data
object (OrganizationUser) 
required
userId
string 
required
Unique ID of the user
name
string 
required
Name of the user
profileImage
string  | null 
required
Profile image URL of the user
email
required
Email of the user
color
string 
required
Color preference of the user
slug
string 
required
Slug for the user profile
role
enum<string> 
required
Role of the user in the organization
Allowed values:
owneradminmemberrestricted
createdAt
string <date-time>
required
Creation time of the user profile
updatedAt
string <date-time>
required
Last update time of the user profile
Example
{
  "data": {
    "userId": "string",
    "name": "string",
    "profileImage": "string",
    "email": "user@example.com",
    "color": "string",
    "slug": "string",
    "role": "owner",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
Previous
Get Organization User
Next
Create Organiztion Invitation
Built with