For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bind client

Establishes or updates a relationship between a user and a client/customer account. This endpoint links a user to a specific customer, defining their access level and permissions within that client ac

Endpoint

PUT/v2/user/{uuid}/relate-client

Link

Request

Authentication

An API key is required for authentication. Include it in the Authorization header.

  • Header: Authorization

  • Value: Your API key token

HTTP Method & URL

  • Method: PUT

  • URL: https://stagep.tst-apidmndelss.com/v2/user/{uuid}/relate-client

Path Parameters

Parameter
Type
Description
Required
Example

uuid

string

Unique identifier of the user.

Yes

user_abc123def

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Accept

application/json

Yes

Content-Type

application/json

Yes

Request Body (JSON)

Field
Type
Description
Required
Example

relation

object

Client relationship object.

Yes

cuid

string

Customer/client identifier.

Yes

cust_789xyz

isOwner

boolean

Ownership permission. true = full admin access, false = standard user.

Yes

true

Example Request Body:


Response (200 OK)

Returns the updated user object confirming the operation was successful.

Response Fields

User Object (item)

Field
Type
Description
Example

uuid

string

Unique user identifier.

user_abc123def

username

string

User's login name.

john.smith

status

string

Current user status.

ACCEPT

is2fa

boolean

2FA enabled status.

true

createAt

string

Account creation timestamp.

2024-01-15T10:30:00Z

updateAt

string

Last update timestamp.

2024-03-20T14:22:00Z

name

string

User's full name.

John Smith

comment

string

Administrative comments.

VIP customer

Example Response:

Note: The response shows basic user details. To verify the client relationship was successfully added, use the Get User endpoint which will include the clients array with all relationships.


Examples

Grant Owner Access to Client (cURL)

Grant Standard User Access


Error Responses

  1. User Not Found:

  2. Customer Not Found:

  3. Unauthorized:

  4. Relationship Already Exists:


Notes

Permission Levels

  • isOwner: true: User has full administrative rights over the customer account

  • isOwner: false: User has standard access with limited permissions

Key Features

  • Idempotent: Calling multiple times with same parameters has the same effect

  • Overwrites: Updates existing relationships if already present

  • Multiple Relationships: Users can be linked to multiple customers

Best Practices

  • Verify both user and customer exist before creating relationship

  • Use Get User endpoint to confirm relationship was established

  • Consider user's role and responsibilities when setting ownership

  • Document relationship purposes in user comments if needed

Common Use Cases:

  • Onboarding new users to customer accounts

  • Promoting users to administrator roles

  • Managing access across multiple client accounts

  • Temporary access grants for support purposes

Ownership Implications:

  • Owners can typically manage other users on the account

  • Owners may have billing and configuration privileges

  • Ownership often includes audit and reporting access

Verification: After binding a client, use the Get User endpoint to confirm the relationship:

Look for the clients array in the response:


Request sample

Response sample

Last updated