Sharetribe icon

Sharetribe

Allows interaction with the Sharetribe Integration API

Listing → Approve

AI-generated

Summary

Approve a Sharetribe listing

Inputs

  • listingId (required) — ID of the listing to approve
  • simplify — Whether to return a simplified version of the response
  • fieldsToReturn — Fields to include in the response; can be selected from a list or specified via expression
  • authorFields — User fields to include in the response; can be selected from a list or specified via expression

Output shape

a single listing object

If simplify is true the response contains only default fields; set simplify to false to include additional fields via fieldsToReturn and authorFields; the response is a full listing record.

Examples

Example 1: Approve a listing and get a simplified response

listingId = "550e8400-u29b-41d4-a716-446655440000", simplify = true

Example 2: Approve a listing and retrieve selected fields

listingId = "550e8400-u29b-41d4-a716-446655440000", fieldsToReturn = ["price","state"], simplify = false, authorFields = ["firstName","email"]

Links

Discussion