API ReferenceView as MarkdownOpenAPI

Spergelov Sale

View as Markdown

Endpoints that need a token: the site owner creates it in their admin (Developers > API reference). AI assistants: how to ask the user for one.

5 endpoints.

Retrieve the spergelov sale

Returns the spergelov sale.

User token

Needs the token of a signed-in user.

Query parameters
dependability_filterstring

Only spergelov sales with this dependability filter.

no_populatestring

Only spergelov sales with this no populate.

Status codes

200 401 500

GET/spergelov-sale
curl -X GET 'http://djotex.max-media.io/spergelov-sale?ionic=true&dependability_filter=...&no_populate=...' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "make": "6543210fedcba98765432100",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Create a spergelov sale

Creates a spergelov sale from the fields sent.

User token

Needs the token of a signed-in user.

Status codes

201 400 401 500

POST/spergelov-sale
curl -X POST 'http://djotex.max-media.io/spergelov-sale?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "make": "6543210fedcba98765432100",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve a spergelov sale

Returns one spergelov sale, found by its ID.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the spergelov sale.

Query parameters
no_populatestring

Only spergelov sales with this no populate.

Status codes

200 401 404 500

GET/spergelov-sale/:id
curl -X GET 'http://djotex.max-media.io/spergelov-sale/{id}?ionic=true&no_populate=...' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "make": "6543210fedcba98765432100",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Update a spergelov sale

Changes the fields sent; the others stay as they are.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the spergelov sale.

Status codes

200 400 401 404 500

PATCH/spergelov-sale/:id
curl -X PATCH 'http://djotex.max-media.io/spergelov-sale/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "make": "6543210fedcba98765432100",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Delete a spergelov sale

Deletes the spergelov sale. This cannot be undone.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the spergelov sale.

Returns

Returns an empty answer on success.

Status codes

200 401 404 500

DELETE/spergelov-sale/:id
curl -X DELETE 'http://djotex.max-media.io/spergelov-sale/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
↑↓ Navigate↵ GoEsc Close