Delete auto publish

This endpoint deletes auto publish.

URL : /config/auto-publish/{id}

Method : DELETE

X-HMAC required : YES

Request URL Parameters : {id}

Response

The response will be a JSON object containing deleted auto publish.

interface AutoPublish {
    id: number;
    type: ALL | CUSTOMER;
    period: DAILY | MONTHLY | WEEKLY;
    time: number;
    customerId: string;
    createdAt: Date;
    lastExec: Date;
    error?: boolean;
}

Status Codes

The endpoint will return the following status codes based on the operation outcome:

  • 200OK: The request was successful.
  • 400Bad Request: No data are published.
  • 500Internal Server Error: An error occurred on the server while processing the request.

Example Request

GET /config/auto-publish/1 HTTP/1.1
Content-Type: application/json
Host: localhost:3000
X-HMAC: 5d41402abc4b2a76b9719d911017c592

Example Response

{
    "id": 1,
    "type": "ALL",
    "period": "MONTHLY",
    "time": 4,
    "customerId": 2,
    "createdAt": "2024-01-28 16:00:00",
}