POST
/
v2
/
collections
/
{collectionId}
/
markets
Create a market
curl --request POST \
  --url https://rest.forestreet.com/v2/collections/{collectionId}/markets \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "subtitle": "<string>",
  "description": "<string>",
  "thumbnailSrc": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "marketId": 123
}

Authorizations

x-api-key
string
header
required

Pass a static API key for every request, provided by your customer support.

Path Parameters

collectionId
integer
required

ID of the collection where the new market will be created.

Required range: x > 0

Body

application/json

Response

200 - application/json

Create a market in collection response

The response is of type object.