Update a listing

Request Information
URL PATCH {{basepath}}/domaincheckListing/:domainname
CategoryDomain Check Listing

Description

To update a listing.

the request body should contain a DomaincheckListingUpdateRequest object.

Returns a DomaincheckListingListResponse object.

Url variables
:domainnameexample.com
JSON
{
    "price": 133.7,
    "currency": "EUR",
    "whereToBuy": "https:\/\/www.metaregistrar.com\/buy\/example.com",
    "status": "available"
}

Example responses

Update a listing
Request Method & URL
PATCH {{basepath}}/domaincheckListing/:domainname
Request Body:
{
    "price": 133.7,
    "currency": "EUR",
    "whereToBuy": "https:\/\/www.metaregistrar.com\/buy\/example.com",
    "status": "new"
}
Url variables
:domainnameexample.com
Response Code:
200 OK
Response Body:
{
    "responseId": "1_6969420d7bbdd4752ecaa5af7032aaa9d83241d2",
    "listing": {
        "id": 1,
        "domainname": "example.com",
        "status": "new",
        "currency": "EUR",
        "price": 133.7,
        "whereToBuy": "https:\/\/www.metaregistrar.com\/buy\/example.com",
        "created": 1533828863,
        "modified": 1648043976
    }
}
Bad update
Request Method & URL
PATCH {{basepath}}/domaincheckListing/:domainname
Request Body:
{
    "status": "blorp"
}
Url variables
:domainnameexample.com
Response Code:
400 Bad Request
Response Body:
{
    "responseId": "1_6af8356302829384732ff3fbd4b33e3dfbfbc0a0",
    "status": "error",
    "errorCode": "invalid_input",
    "errorMessage": "Status blorp is not supported. Only new,available,unavailable is allowed"
}