Skip to content

Create a listing (alternative path)

POST
/listings/add
curl --request POST \
--url https://acme.mykreezalid.com/front_api/v1/listings/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "Blue city bike" }'

Same operation as POST /listings: same request body, same responses.

The listing, as for POST /listings.

Media typeapplication/json
object
title
required
string

Example

Blue city bike

Outcome of the creation, as for POST /listings.

Media typeapplication/json
object
id
integer
nullable
message
string
success
boolean

Example

{
"id": 4242,
"message": "Listing created",
"success": true
}

No valid access token was sent.

Media typeapplication/json

Error body returned by the Front API when it refuses a request.

object
code

HTTP status code, repeated in the body.

integer
status
string
message

Human-readable reason.

string

Example

{
"code": 403,
"status": "error",
"message": "Token not found in request"
}