Skip to main content
curl --request POST 'https://api.mayar.id/hl/v2/products/webinar/3f4fc3fd-10dc-4a97-b54c-7632881858cb/update' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data-raw '{
        "id": "3f4fc3fd-10dc-4a97-b54c-7632881858cb",
        "name": "Webinar Belajar Crypto Untuk Pemula Batch 2",
        "description": "Belajar dulu",
        "amount": 120000,
        "eventUrl": "https://zoom.us/j/123456",
        "redirectUrl": "https://example.com/webinar-thanks",
        "expiredAt": "2026-06-15T12:00:00.000Z"
    }'
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "id": "3f4fc3fd-10dc-4a97-b54c-7632881858cb",
        "link": "https://testingmayar.myr.id/pl/Webinar-Belajar-Crypto-Untuk-Pemula"
    }
}
Endpoint:
https://api.mayar.id/hl/v2/products/webinar/{id}/update
The product to edit is identified by the id field in the request body, not by the {id} segment in the URL path.

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Request Body

id
string
required
Unique identifier of the webinar product to edit. This is read from the request body.
name
string
Webinar product name.
description
string
Webinar product description.
amount
integer
Webinar price amount.
crossoutPrice
integer
Crossed-out price displayed as the original price.
eventUrl
string
Webinar URL, such as Zoom or meeting link.
redirectUrl
string
URL where the customer will be redirected after completing payment.
expiredAt
string | datetime
Webinar product expiration date in ISO 8601 format.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code from API.
messages
string
Status message that describes the status code.
data
object
The updated webinar product data.

data Structure (Object)

data.id
string
Unique identifier of the webinar product.
Public URL of the updated webinar product.

Errors

200 OK (validation failed)
object
When the request body fails validation, this endpoint still responds with HTTP 200 but sets messages to failed and returns the validator errors in data: { "statusCode": 200, "messages": "failed", "data": { ... } }.
401 Unauthorized
object
Returned when the product does not belong to the authenticated account: { "statusCode": 401, "messages": "Unauthorized" }.
404 Not Found
object
Returned when the product does not exist: { "statusCode": 404, "messages": "Product not found" }.