Skip to main content
PATCH

Path Parameters

string
required
The numeric ID of the server.
string
required
The numeric ID of the resource to update.

Body Parameters

All fields are optional. Omitted fields are left unchanged.
string
New URI for the resource. Any URI scheme is valid (e.g. docs://, file:///, custom schemes).
string
New display name.
string
New description.
string
New MIME type (e.g. text/plain, text/markdown, application/json).
string
New data source type. One of: static, url, wp_query, callback. When changing this, always send an updated data_source_config matching the new type.
object
New configuration for the data source. Send as a JSON object. Shape depends on data_source_type:static
url
wp_query
callback
string
New URI template for parameterized resources (e.g. file:///data/{id}.json).