Skip to main content
PUT
Change a product
Needs products:update, and a role in the workspace that can edit products: owners, managers, content managers and content creators can. See Permissions.
This replaces the product, as the app’s form does. Send name, and a description, a url or both:
  • A description or url left out is cleared.
  • hooks replaces the product’s hooks, each 5 to 300 characters. Left out, they stay as they are.
  • name must stay unique in the workspace.
Posts already written about the product keep their text. Products are on paid plans: on Free the answer is 403 with error: plan_limit_reached and limit: products, and nothing changes.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The product's id.

Body

application/json
name
string
required

Unique in the workspace.

Maximum string length: 255
description
string | null

What it is. Needed when there is no url.

Required string length: 50 - 500
url
string | null

Its page. Needed when there is no description.

hooks
string[] | null

Opening lines for posts about it. Left out, they stay.

Required string length: 5 - 300

Response

The product.

A product the workspace's posts can promote.

id
integer
required
name
string
required

Unique in its workspace.

description
string | null
required

What it is, 50 to 500 characters.

url
string | null
required

Its page.

hooks
string[] | null
required

Opening lines for posts about it.

workspace_id
integer
required