Sharetribe icon

Sharetribe

Allows interaction with the Sharetribe Integration API

User → Approve

AI-generated

Summary

Approve a pending user by setting its state to active, optionally simplifying the response and selecting returned fields.

Inputs

  • userId (required) — Command for approving a user that is currently in pendingApproval state. The user's state is set to active.
  • simplify — Whether to return a simplified version of the response
  • userFields — Choose from the list, or specify IDs using an expression.

Output shape

a user record (full or simplified depending on simplify)

If simplify is true, only selected fields specified by userFields are returned; otherwise the full user object is returned. The operation succeeds without a body on success.

Examples

Example 1: Approve a user by ID and receive full user data

userId: 550e8400-e29b-41d4-a716-446655440000

Example 2: Approve a user with simplified response containing only email and state

userId: 123, simplify: true, userFields: ["email","state"]

Example 3: Approve a user without specifying userFields, returning all fields

userId: 456, simplify: false

Links

Discussion