Skip to content

Review methods: publish, remove, withhold

The Review Verbs publish, remove, withhold as typed SDK methods, with inputs, result, refusals and an example.

Reference for Review, one group of Review methods.

Review.publish

Publish shows a Review on the Startup’s Pages with its rating counted, whatever the rating. Verb page.

TypeScript
interface ReviewVerbs {
  publish(input: ReviewPublishInput, options?: SB.CallOptions): SB.Call<Review>
}

Emits Review.published.

Inputs

InputTypeRequiredDescription
reviewReviewrequiredThe Review to show.

Returns

OutputTypeRequiredDescription
reviewReviewrequiredThe Review, now published.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const review = await $.Review.publish({ review: 'review_1XPL2xTlfx' })

Review.remove

Remove takes a Review down for good when its author or its venue asks; the record is kept. Verb page.

TypeScript
interface ReviewVerbs {
  remove(input: ReviewRemoveInput, options?: SB.CallOptions): SB.Call<Review>
}

Emits Review.removed.

Inputs

InputTypeRequiredDescription
reviewReviewrequiredThe Review to take down.
reasonstringrequiredWho asked.

Returns

OutputTypeRequiredDescription
reviewReviewrequiredThe Review, now removed.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const review = await $.Review.remove({ review: 'review_1XPL2xTlfx', reason: 'authorRequest' })

Review.withhold

Withhold keeps a Review off display for one of five reasons, none of them its rating or its tone. Verb page.

TypeScript
interface ReviewVerbs {
  withhold(input: ReviewWithholdInput, options?: SB.CallOptions): SB.Call<Review>
}

Emits Review.withheld.

Inputs

InputTypeRequiredDescription
reviewReviewrequiredThe Review to withhold.
reasonstringrequiredWhy it is not shown.

Returns

OutputTypeRequiredDescription
reviewReviewrequiredThe Review, now withheld.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const review = await $.Review.withhold({ review: 'review_1XPL2xTlfx', reason: 'fake' })