Skip to main content

Members API

Endpoints for inviting, creating, and querying organization members, updating their names and roles, and managing member statistics and quotas. Use an API key belonging to the target organization (Authorization: Bearer <api_key>). See Conventions for service endpoints and the common error format.

List members

GET /v1/organizations/{org_id}/members
Query parameters:
ParameterTypeDescription
userIdstringExact user UUID lookup; cannot be combined with email
emailstringExact match on email address
includeDeletedbooleanInclude deleted members; defaults to false
maxResultsintegerItems per page; default 20, max 100
nextTokenstringPagination cursor
userId must be a non-empty standard UUID. Exact lookup by userId or email returns at most one member and does not return a new nextToken. If no member matches, the API returns 200 OK with an empty members array. Request example:
curl -X GET "https://api.qoder.com.cn/v1/organizations/org_xxx/members?maxResults=10" \
  -H "Authorization: Bearer <api_key>"
Response example:
{
  "members": [
    {
      "id": "member_001",
      "userId": "550e8400-e29b-41d4-a716-446655440000",
      "email": "user@example.com",
      "name": "Alice Zhang",
      "role": "org_member",
      "status": "ENABLED",
      "joinedAt": "2025-01-10T08:00:00Z"
    }
  ],
  "maxResults": 10,
  "nextToken": "token_abc"
}

Member status values

StatusDescription
ENABLEDActive
DISABLEDDisabled
UNACTIVATEDNot yet activated
APPROVE_PENDINGPending approval
APPROVE_DECLINEDApproval declined
DELETEDDeleted

Get member details

GET /v1/organizations/{org_id}/members/{member_id}
Request example:
curl -X GET "https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_001" \
  -H "Authorization: Bearer <api_key>"
Response example:
{
  "id": "member_001",
  "userId": "550e8400-e29b-41d4-a716-446655440000",
  "email": "user@example.com",
  "name": "Alice Zhang",
  "role": "org_member",
  "status": "ENABLED",
  "joinedAt": "2025-01-10T08:00:00Z"
}

Create a member

POST /v1/organizations/{org_id}/members
Create a new user and add the user to the organization. If the email is not registered, a new account is created. If it is registered and the user has no current organization membership, the existing account is reused without changing its password. To let users register or sign in and accept an invitation, use Create email invitations. Request body:
{
  "email": "user@example.com",
  "name": "Alice Zhang",
  "password": "StrongPassword123!",
  "role": "org_member"
}
FieldTypeRequiredDescription
emailstringYesNew user email. Its domain must be verified and enabled for the organization
namestringYesUser and member display name
passwordstringYesInitial password. It must meet the password-strength requirements and is never returned
rolestringNoorg_member, org_admin, org_config_admin, or org_directory; defaults to org_member
Request example:
curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/members" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"email":"user@example.com","name":"Alice Zhang","password":"StrongPassword123!","role":"org_member"}'
Response example:
{
  "member": {
    "id": "member_001",
    "userId": "550e8400-e29b-41d4-a716-446655440000",
    "email": "user@example.com",
    "name": "Alice Zhang",
    "role": "org_member",
    "status": "ENABLED",
    "joinedAt": "2026-05-23T08:00:00Z"
  }
}
The endpoint may return InvalidParameter, InvalidPassword, InvalidRole, EmailDomainRequired, EmailDomainNotSupported, or InsufficientSeats (HTTP 400), or EmailAlreadyExists, OrgInvitationUserAlreadyInOrg, or OrgInvitationUserInOtherOrg (HTTP 409).

Create email invitations

POST /v1/organizations/{org_id}/members/emailInvitations
Invite users to join the organization. Invitations are currently sent by email; recipients follow the link to register or sign in and accept.

Path parameters

ParameterTypeRequiredDescription
org_idstringYesOrganization UUID.

Email invitation requirements

  • Creating, cancelling, resending, and deleting invitations are subject to organization plan restrictions. These writes are rejected if the plan is expired, suspended, cancelled, or an active Free plan. Listing invitations remains available.
  • Creating an invitation also requires an allocatable seat. Sending an invitation does not reserve a seat; availability is checked and a seat is allocated when it is accepted.
  • You cannot invite an address whose domain is managed by another organization. If verified-domain validation is enabled for the deployment (disabled by default), your organization must also have a verified, enabled email domain matching the recipient's address.
The request supports partial success. Individual failures appear in failedEmails; even a batch in which every address fails can return 200 OK. Invalid request parameters or unmet organization prerequisites fail the whole request.

Request body

FieldTypeRequiredDescription
emailsstring[]Yes1 to 3000 addresses per batch. Leading and trailing whitespace is removed, and addresses are lowercased. Empty strings are ignored; an empty resulting list is rejected.
rolestringNoorg_member or org_admin. Defaults to org_member.
inviterIdstringNoInviter's user UUID. Must identify an active administrator (org_admin or org_config_admin) in this organization. Use the member's userId. Defaults to the organization creator; provide it explicitly if creator information is missing or the creator is not an eligible administrator.
expiresInHoursint32NoValidity in hours, from 24 to 720. Omitted values or int32 values outside that range use 168 (7 days). Fractional values or values outside the int32 range fail request-body parsing.

Request example

curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/members/emailInvitations" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"emails":["zhangsan@example.com","invalid-email"],"role":"org_member"}'

Success response (200 OK)

{
  "invitations": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "organizationId": "550e8400-e29b-41d4-a716-446655440000",
      "email": "zhangsan@example.com",
      "role": "org_member",
      "status": "PENDING",
      "expiresAt": "2026-10-22T08:00:00Z",
      "batchId": "770e8400-e29b-41d4-a716-446655440002",
      "createdAt": "2026-10-15T08:00:00Z",
      "updatedAt": "2026-10-15T08:00:00Z"
    }
  ],
  "failedEmails": [
    {
      "email": "invalid-email",
      "reason": "invalid email format"
    }
  ],
  "totalSent": 1,
  "totalFailed": 1
}

Response fields

FieldTypeDescription
invitationsarrayCreated email invitation objects. Invitations from one batch share a batchId. Empty if none were created.
failedEmailsarrayFailed items, each with email and reason. Empty if none failed.
totalSentint32Number of invitations created. Email is sent asynchronously; this is not a delivery count.
totalFailedint32Number of failed items, including validation and write failures.

Per-address failure reasons

failedEmails[].reason can be a code or text. Preserve the original value for troubleshooting.
reasonDescription
invalid email formatInvalid address format.
duplicate email in batchDuplicate address after normalization.
pending invitation already exists for this emailA pending invitation already exists.
this email has already joined the organizationAn accepted invitation record already exists.
OrgEmailInvitationUserInAnotherOrgThe user already has an organization membership, possibly in the current organization.
OrgEmailInvitationDomainOwnedByAnotherOrgAnother organization manages the email domain.
OrgEmailInvitationDomainNotMatchedWith domain validation enabled, the address does not match a verified domain of this organization.
internal_error_batch_write_failedBatch write failure. Retain successful results and investigate or retry only failed items.
Resolve the cause in reason, then submit only the addresses that need retrying to the create endpoint. Do not resubmit successful items. Use resend for an existing pending invitation.

List email invitations

GET /v1/organizations/{org_id}/members/emailInvitations

Path parameters

ParameterTypeRequiredDescription
org_idstringYesOrganization UUID.

Query parameters

ParameterTypeRequiredDescription
statusstringNoPENDING, JOINED, EXPIRED, or CANCELLED. Omit to list all statuses.
batchIdstringNoFilter by the batch UUID from a create response.
maxResultsintegerNoDefaults to 20, maximum 100. Positive int32 values above 100 are capped at 100; nonpositive values or values that cannot be parsed as int32 use 20.
nextTokenstringNoPagination token from the previous response. Omit for the first page.
An unsupported status or a batchId that is not a valid UUID returns 400 BadRequest.

Request example

curl --get "https://api.qoder.com.cn/v1/organizations/org_xxx/members/emailInvitations" \
  -H "Authorization: Bearer <api_key>" \
  --data-urlencode "status=PENDING" \
  --data-urlencode "maxResults=20"

Success response (200 OK)

This example is the last page:
{
  "invitations": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "organizationId": "550e8400-e29b-41d4-a716-446655440000",
      "email": "zhangsan@example.com",
      "role": "org_member",
      "status": "PENDING",
      "expiresAt": "2026-10-22T08:00:00Z",
      "batchId": "770e8400-e29b-41d4-a716-446655440002",
      "createdAt": "2026-10-15T08:00:00Z",
      "updatedAt": "2026-10-15T08:00:00Z"
    }
  ],
  "maxResults": 20
}
invitations contains the invitation objects; maxResults is the effective page size. When another page exists, pass the returned nextToken unchanged in the next request. The last page omits nextToken. An empty list returns invitations: []. An invalid nextToken returns the first page.

Email invitation object

Create and list responses use this structure for invitations[]; resend uses it for invitation. Timestamps are RFC 3339 strings.
FieldTypeDescription
idstringInvitation UUID for cancel, resend, or delete operations.
organizationIdstringOrganization ID.
emailstringInvited email address.
rolestringAssigned role: org_member or org_admin.
statusstringPENDING (awaiting acceptance), JOINED (joined), EXPIRED (expired), or CANCELLED (cancelled).
expiresAtstringExpiration time.
joinedUserIdstringUser ID after joining; omitted when unset.
joinedAtstringJoin time; omitted when unset.
emailSentAtstringRecorded email send time; omitted when unset. The current sending flow does not guarantee updates to this field. Do not use it to determine delivery.
cancelledAtstringCancellation time; omitted when unset.
batchIdstringBatch ID; omitted when unset.
createdAtstringCreation time.
updatedAtstringLast update time.

Cancel an email invitation

POST /v1/organizations/{org_id}/members/emailInvitations/{invitation_id}/cancel

Path parameters

ParameterTypeRequiredDescription
org_idstringYesOrganization UUID.
invitation_idstringYesInvitation UUID from the id field.
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions. Only PENDING invitations can be cancelled. The invitation becomes invalid and its record remains with status CANCELLED. No request body is required.

Request example

curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/members/emailInvitations/660e8400-e29b-41d4-a716-446655440001/cancel" \
  -H "Authorization: Bearer <api_key>"

Success response (200 OK)

id identifies the cancelled invitation:
{
  "id": "660e8400-e29b-41d4-a716-446655440001"
}

Resend an email invitation

POST /v1/organizations/{org_id}/members/emailInvitations/{invitation_id}/resend

Path parameters

ParameterTypeRequiredDescription
org_idstringYesOrganization UUID.
invitation_idstringYesInvitation UUID from the id field.
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions. No request body is required. Only EXPIRED invitations can be resent.
  • EXPIRED: Creates a new invitation with the same email, role, and inviter, and rechecks creation prerequisites. The new invitation has a new ID, link, and batch ID, with the default 168-hour validity. The service attempts to delete the old record after creation; a deletion failure does not fail the response. Use the returned new ID for subsequent operations.
Resend behavior depends on the stored status, whose refresh can lag behind expiration. If expiresAt has passed but the status is still PENDING, the request is rejected. To obtain a new invitation, first list invitations and confirm the status is EXPIRED. Email sending failures are not returned as errors by this endpoint. 200 OK does not confirm delivery.

Request example

The examples are independent. Replace the invitation ID below with a real EXPIRED invitation; an invitation that has been cancelled cannot be resent.
curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/members/emailInvitations/660e8400-e29b-41d4-a716-446655440004/resend" \
  -H "Authorization: Bearer <api_key>"

Success response (200 OK)

invitation is the invitation used for this request:
{
  "invitation": {
    "id": "660e8400-e29b-41d4-a716-446655440004",
    "organizationId": "550e8400-e29b-41d4-a716-446655440000",
    "email": "zhangsan@example.com",
    "role": "org_member",
    "status": "PENDING",
    "expiresAt": "2026-10-22T08:00:00Z",
    "batchId": "770e8400-e29b-41d4-a716-446655440002",
    "createdAt": "2026-10-15T08:00:00Z",
    "updatedAt": "2026-10-15T08:00:00Z"
  }
}

Delete an email invitation

DELETE /v1/organizations/{org_id}/members/emailInvitations/{invitation_id}

Path parameters

ParameterTypeRequiredDescription
org_idstringYesOrganization UUID.
invitation_idstringYesInvitation UUID from the id field.
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions. No request body is required. You can delete a record in any status; a pending invitation also becomes invalid. Deleting a JOINED record does not remove the organization member. Use the Delete member to remove members.

Request example

curl -X DELETE "https://api.qoder.com.cn/v1/organizations/org_xxx/members/emailInvitations/660e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer <api_key>"

Success response (200 OK)

id identifies the deleted invitation:
{
  "id": "660e8400-e29b-41d4-a716-446655440001"
}

Email invitation error codes

Request-level errors contain requestId, code, and message. Handle them separately from failedEmails in a 200 OK response. For example, resending an expired invitation returns 400 if the original inviter no longer exists:
{
  "requestId": "req_abc123",
  "code": "OrgEmailInvitationInviterNotFound",
  "message": "Inviter user does not exist, please provide a valid user id as inviter"
}
HTTP statuscodeDescription
400InvalidParameterEmpty email list or invalid inviter / invitation ID. inviterId is required means creator information is missing or the creator is not an eligible administrator; provide the inviter explicitly.
400InvalidRoleRole is neither org_member nor org_admin.
400BadRequestInvalid request body, invalid status / batchId, or a missing organization subscription record.
400OrgEmailInvitationInviterNotFoundInviter user does not exist.
400OrgEmailInvitationBatchSizeExceededBatch exceeds 3000 invitations.
400OrgInvitationInsufficientSeatsNo seats available when creating invitations.
400OrgEmailInvitationNoVerifiedDomainDomain validation is enabled but no verified, enabled domain exists.
400OrgEmailInvitationDomainOwnedByAnotherOrgThe domain of the address being reinvited is managed by another organization.
400OrgEmailInvitationOrgMismatchInvitation does not belong to the specified organization.
400OrgEmailInvitationCannotCancelInvitation is not PENDING.
400OrgEmailInvitationStatusNotResendableInvitation is not EXPIRED.
400OrgEmailInvitationCannotResendRecreating an expired invitation produced no invitation. Request-level failures, such as subscription or seat checks, return their own codes.
401UnauthorizedValid authentication is missing.
403ForbiddenNo access to the specified organization, or inviterId does not identify an active administrator in that organization.
403OrganizationPlanExpiredThe organization plan is expired, suspended, cancelled, or an active Free plan. Creating, cancelling, resending, and deleting invitations are blocked.
404NotFoundInvitation does not exist or has been deleted.
500InternalErrorInternal service error.
Downstream business errors use standard messages that may omit the underlying cause. Preserve requestId for troubleshooting.

Member statistics

GET /v1/organizations/{org_id}/members/statistics
Request example:
curl -X GET "https://api.qoder.com.cn/v1/organizations/org_xxx/members/statistics" \
  -H "Authorization: Bearer <api_key>"
Response example:
{
  "totalMembers": 50,
  "billableMembers": 45,
  "adminMembers": 3,
  "purchasedSeats": 60,
  "remainingSeats": 15
}
FieldDescription
totalMembersTotal number of members
billableMembersNumber of billable members
adminMembersNumber of administrators
purchasedSeatsTotal purchased seats
remainingSeatsAvailable seats

Delete a member

DELETE /v1/organizations/{org_id}/members/{member_id}
Request example:
curl -X DELETE "https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_001" \
  -H "Authorization: Bearer <api_key>"
Returns HTTP 204 No Content on success.

Get member quota

GET /v1/organizations/{org_id}/members/{member_id}/quota
Request example:
curl -X GET "https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_001/quota" \
  -H "Authorization: Bearer <api_key>"
Response example:
{
  "planQuota": {
    "quotaSummary": {
      "usedValue": 0,
      "limitValue": 1000,
      "unit": "credits"
    }
  },
  "resourcePackageQuota": {
    "quotaSummary": {
      "usedValue": 0,
      "limitValue": 500,
      "unit": "credits"
    }
  },
  "totalQuota": {
    "quotaSummary": {
      "usedValue": 0,
      "limitValue": 1500,
      "unit": "credits"
    }
  },
  "sharedQuota": {
    "quotaSummary": {
      "usedValue": 0,
      "limitValue": 200,
      "unit": "credits"
    }
  }
}
FieldDescription
planQuotaQuota from the subscription plan
resourcePackageQuotaQuota from resource packages
totalQuotaTotal available quota
sharedQuotaShared quota
Each quota field is an object. In quotaSummary, usedValue, limitValue, and unit represent usage, limit, and unit, respectively.

Batch get member quotas

POST /v1/organizations/{org_id}/members/batchGetQuota
Request body:
{
  "memberIds": ["member_001", "member_002", "member_003"]
}
  • memberIds: Array of member IDs (1–100 items).
Request example:
curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/members/batchGetQuota" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"memberIds": ["member_001", "member_002"]}'
Response example:
{
  "quotas": [
    {
      "memberId": "member_001",
      "planQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 1000,
          "unit": "credits"
        }
      },
      "resourcePackageQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 500,
          "unit": "credits"
        }
      },
      "totalQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 1500,
          "unit": "credits"
        }
      },
      "sharedQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 200,
          "unit": "credits"
        }
      }
    },
    {
      "memberId": "member_002",
      "planQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 1000,
          "unit": "credits"
        }
      },
      "resourcePackageQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 0,
          "unit": "credits"
        }
      },
      "totalQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 1000,
          "unit": "credits"
        }
      },
      "sharedQuota": {
        "quotaSummary": {
          "usedValue": 0,
          "limitValue": 200,
          "unit": "credits"
        }
      }
    }
  ]
}

Update member Add-On Cap

PUT /v1/organizations/{org_id}/members/{member_id}/addon-cap
Request body:
{
  "addOnCap": 500
}
addOnCap is required and accepts a non-negative integer or null. null means unlimited; 0 disables the quota. Request example:
curl -X PUT "https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_001/addon-cap" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"addOnCap": 500}'
Response example:
{
  "memberId": "member_001",
  "email": "user@example.com",
  "addOnCap": 500
}

Batch update Add-On Cap

POST /v1/organizations/{org_id}/batchUpdateAddOnCap
Request body:
{
  "addOnCap": 500,
  "memberIds": ["member_001", "member_002"]
}
Each request accepts 1–100 non-empty member IDs and applies the same cap to every member. addOnCap is required and accepts a non-negative integer or null. null means unlimited. Request example:
curl -X POST "https://api.qoder.com.cn/v1/organizations/org_xxx/batchUpdateAddOnCap" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"addOnCap": 500, "memberIds": ["member_001", "member_002"]}'
Response example:
{
  "members": [
    { "memberId": "member_001", "previousAddOnCap": 300 },
    { "memberId": "member_002" }
  ]
}
previousAddOnCap is omitted when the member was previously unlimited. Request validation may return InvalidBatchAddOnCapRequest, EmptyMemberIDs, TooManyMemberIDs, EmptyMemberIDAtIndex, or InvalidAddOnCapFormat.

Update member role

PUT /v1/organizations/{organization_id}/members/{member_id}/role Set an organization member’s role to Organization Admin, Organization Member, Config Admin, or Directory. Available for CN / Global and Teams / Enterprise, using the same IAM role-change capability as the dashboard.

Authentication and permissions

Use the target organization’s API key: Authorization: Bearer <api_key>. The key must belong to the organization in the path. Service account credentials cannot call this endpoint. The member_id must belong to that organization.

Path parameters

ParameterTypeRequiredDescription
organization_idstringYesOrganization ID
member_idstringYesMember ID returned by a member query endpoint; this is not the user ID

Request body

{
  "role": "org_admin"
}
FieldTypeRequiredDescription
rolestringYesorg_admin: Organization Admin; org_member: Organization Member; org_config_admin: Config Admin; org_directory: Directory
role cannot be omitted, null, or an empty string. The deprecated org_free_member and other roles are not supported. Setting a non-billable role again still triggers IAM entitlement reclamation and can retry an incomplete reclamation.

Success response (200 OK)

Returns the updated member details directly, using the same fields as the get member details endpoint.
{
  "id": "member_abc123",
  "userId": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Alice",
  "email": "alice@example.com",
  "role": "org_admin",
  "status": "ENABLED",
  "joinedAt": "2026-09-01T08:00:00Z"
}

Business restrictions

  • At least one administrator (Organization Admin or Config Admin) must remain. Role transitions use the same IAM validation as the dashboard.
  • Removed members cannot change roles; IAM rejects other unavailable member states.
  • Role changes are prohibited while a Teams-to-Enterprise upgrade is pending activation.
  • New assignments of Config Admin or Directory require the DirectoryRole rollout to be enabled for the organization; otherwise, the endpoint returns 403. Both are non-billable roles. Switching to them uses the IAM flow to release seats, remove billing entitlements, and revoke sessions. Switching back to a billable role requires an available seat; failures use the IAM compensation flow. Special-account restrictions match the dashboard.

Error responses

Error codeHTTP statusDescription
BadRequest400Malformed request body, invalid member ID, or member state does not allow changes
InvalidRole400Role is missing or unsupported
OrgMemberAdminCountLacked400Cannot remove the last administrator role
OrganizationPendingUpgrade400Organization is awaiting activation of a Teams-to-Enterprise upgrade
Unauthorized401Missing or invalid credentials
Forbidden403Credentials lack permission, or the new role is not enabled for the organization
UserNotTeamMember404Member does not exist, was removed, or belongs to a different organization
InternalError500Internal service error
Other IAM business errors use the standard OpenAPI error response with requestId, code, and message.
{
  "requestId": "req_abc123",
  "code": "InvalidRole",
  "message": "role must be org_admin, org_member, org_config_admin or org_directory"
}

Request example

curl -X PUT 'https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_abc123/role' \
  -H 'Authorization: Bearer <api_key>' \
  -H 'Content-Type: application/json' \
  -d '{"role":"org_member"}'

Update member name

PUT /v1/organizations/{organization_id}/members/{member_id}/profile Update the current display name of an organization member.

Path parameters

ParameterTypeRequiredDescription
organization_idstringYesOrganization ID bound to the API key
member_idstringYesMember ID from the id field returned by a member query endpoint; this is not userId

Request body

{
  "name": "Alice"
}
FieldTypeRequiredDescription
namestringYesNew display name; up to 100 characters

Success response (200 OK)

Returns the updated member ID, associated user ID, and display name.
{
  "memberId": "member_abc123",
  "userId": "user_abc123",
  "name": "Alice"
}
FieldTypeDescription
memberIdstringOrganization member ID updated by this request
userIdstringUser ID associated with this member
namestringUpdated display name, with leading and trailing whitespace removed

Business restrictions

  • The target must be a member who has not been removed from this organization. Disabled members can still be renamed.
  • Display names do not have to be unique. Submitting the current name also returns 200 OK.
  • Only the associated account’s display name is changed. The avatar, email, sign-in method, role, and seat are unchanged.
  • When name content checks are enabled, names that explicitly violate the content policy are rejected.

Error responses

Error codeHTTP statusDescription
BadRequest400Malformed request body, unknown fields, request body over 16 KiB, invalid ID, invalid name, or a name that violates the content policy
Unauthorized401Missing, invalid, revoked, or expired credentials
Forbidden403The path organization does not match the API key’s organization, or the credential type is not supported
NotFound404Member does not exist, was removed, or belongs to a different organization
InternalError500Internal service error
Errors use the standard OpenAPI response with requestId, code, and message.
{
  "requestId": "req_abc123",
  "code": "BadRequest",
  "message": "name must contain 1 to 100 characters"
}

Request example

curl -X PUT 'https://api.qoder.com.cn/v1/organizations/org_xxx/members/member_abc123/profile' \
  -H 'Authorization: Bearer <api_key>' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Alice"}'

Reset a member password

POST /v1/organizations/{organization_id}/members/resetPassword Reset a member's password and revoke old sessions and tokens. Use the target organization's API key; service account credentials are not supported.

Request body

FieldTypeRequiredDescription
emailstringYesMember's actual login email; exact match
newPasswordstringYes8–72 ASCII characters; include uppercase, lowercase, a digit, and a special character. Only ! through ~ are allowed; spaces are not allowed.

Request example

curl -X POST 'https://api.qoder.com.cn/v1/organizations/org_xxx/members/resetPassword' \
  -H 'Authorization: Bearer <api_key>' \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@example.com","newPassword":"NewStrongPass1!"}'

Success response (200 OK)

{"requestId":"req_abc123"}
The member must be active and not removed. The login email domain must be verified, enabled, and owned by the organization. The account must have a local password and allow password login. No password email is sent.

Error responses

Error codeHTTP statusDescription
BadRequest400Invalid request or weak password
OrgEmailDomainNotVerified403Email domain is not verified, enabled, or owned by this organization
PasswordLoginUnsupported403Local password login is not available
MemberNotFound404Member is missing, removed, or belongs to another organization
SessionRevocationIncomplete409Password changed, but session revocation is incomplete
PasswordResetResultUnknown503Final reset result is unknown
Do not automatically retry 409, 503, or timeouts. Record requestId and contact support to verify the result.