Create a listing (alternative path)
POST
/listings/add
const url = 'https://acme.mykreezalid.com/front_api/v1/listings/add';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Blue city bike"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The listing, as for POST /listings.
Media typeapplication/json
object
title
required
string
Example
Blue city bikeResponses
Section titled “Responses”Outcome of the creation, as for POST /listings.
Media typeapplication/json
object
id
integer
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"}