Domain Names: Update
This documentation entry provides a clear and detailed guide on how to update an existing domain name monitor using the API, including the necessary parameters, headers, and expected response.
Endpoint
POST /api/domain-names/{domain_name_id}
/api/domain-names/{domain_name_id}Update an existing domain name monitor by specifying its unique identifier.
Request
HTTP Request
POST https://uptimekeep.com/api/domain-names/{domain_name_id}Replace {domain_name_id} with the ID of the domain name monitor you wish to update.
Headers
Authorization
String
Bearer token for API authentication.
Content-Type
String
Must be set to multipart/form-data for file uploads.
Parameters
name
String
No
Name of the domain name monitor.
target
String
No
The domain name or URL to be monitored.
project_id
Integer
No
ID of the associated project (if applicable).
whois_notifications
Array
No
Array of notification handler IDs for WHOIS changes.
whois_notifications_timing
Integer
No
Timing for WHOIS notifications. Allowed values: 1, 2, 3, 7, 14, 30, 60 (days).
ssl_notifications
Array
No
Array of notification handler IDs for SSL certificate changes.
ssl_notifications_timing
Integer
No
Timing for SSL notifications. Allowed values: 1, 2, 3, 7, 14, 30, 60 (days).
is_enabled
Boolean
No
Enable or disable the domain name monitor.
Example of a request:
Response
A successful response returns a JSON object containing the unique identifier of the updated domain name monitor.
Response Example
Fields
Data Object
id
Integer
Unique identifier for the updated domain name monitor.
Errors
If the request fails, the API will return an error message with an appropriate HTTP status code, such as 400 Bad Request if required parameters are missing or invalid, or 404 Not Found if the domain name monitor ID does not exist.
Last updated