<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-ietf-rpp-json-01" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true" tocDepth="4">

<front>
<title abbrev="JSON for RPP">JSON for RESTful Provisioning Protocol (RPP)</title><seriesInfo value="draft-ietf-rpp-json-01" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="M." surname="Wullink" fullname="Maarten Wullink"><organization>SIDN Labs</organization><address><postal><street></street>
</postal><email>maarten.wullink@sidn.nl</email>
<uri>https://sidn.nl/</uri>
</address></author><author initials="P." surname="Kowalik" fullname="Pawel Kowalik"><organization>DENIC</organization><address><postal><street></street>
</postal><email>pawel.kowalik@denic.de</email>
<uri>https://denic.de/</uri>
</address></author><date year="2026" month="November" day="2"></date>
<area>Applications and Real-Time</area>
<workgroup>RESTful Provisioning Protocol</workgroup>
<keyword>RPP</keyword>
<keyword>JSON</keyword>
<keyword>JSON Schema</keyword>
<keyword>provisioning</keyword>
<keyword>registry</keyword>

<abstract>
<t>This document defines the rules for representing the RESTful Provisioning Protocol (RPP) data objects using the JavaScript Object Notation (JSON) Data Interchange Format. It specifies how RPP primitive types, common data types, Component Objects, Data Objects, and associations are mapped to JSON and JSON Schema, and provides normative JSON Schema definitions and examples for the RPP Data Objects, the representation of update requests, and an extension framework.</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>The RESTful Provisioning Protocol (RPP) defines a set of data objects for managing registry resources, such as domain names, contacts, hosts, organisations, and users. The data model is defined in <xref target="I-D.ietf-rpp-data-objects"></xref> independently of any particular representation format. This document defines the JSON <xref target="RFC8259"></xref> representation of those data objects.</t>
<t>JSON has emerged as the de facto standard data format for modern RESTful APIs. Its widespread adoption across tools, libraries, and developer communities makes it well suited as the primary representation format for RPP. This document provides the normative rules and JSON Schema definitions required for implementations to produce and consume RPP messages in JSON.</t>
<t>The separation between the abstract data model and its concrete JSON representation ensures that the protocol's semantic foundation remains stable while enabling the adoption of JSON across diverse deployment environments.</t>

<section anchor="motivation"><name>Motivation</name>
<t>The RESTful Provisioning Protocol (RPP) introduces a new provisioning mechanism that aligns more closely with modern cloud infrastructure, enhancing the scalability of server deployments. While RESTful protocols do not mandate a specific media type for resource description, the widespread adoption of JSON in web services has established it as the de facto standard for modern APIs. The increasing availability of tools, software libraries, and a skilled workforce has led several registries to adopt JSON for data exchange within their API ecosystems. Registries supporting JSON can offer a unified API ecosystem that extends beyond domain name and IP address provisioning, maintaining a consistent technology stack, data formats, and developer experience.</t>
<t>JSON's syntax, known for its straightforwardness and minimal verbosity, significantly eases the tasks of writing, reading, and maintaining code. This simplicity is especially advantageous for the rapid comprehension and integration of provisioning APIs.</t>
<t>The lightweight nature of JSON can result in faster processing and data transfers, a critical aspect in high-volume transaction environments such as domain registration. Enhanced API response times can lead to more efficient domain lookups, registrations, and updates. JSON parsing is typically fast and well-supported by standard libraries, contributing to improved system performance amid frequent interactions between RPP clients and servers.</t>
<t>However, the absence of a standardised JSON format for domain provisioning has led to the emergence of TLD-specific implementations that lack interoperability, increasing the development effort required for integration. Similarly, at the registrar level, the absence of standards has resulted in numerous incompatible API implementations provided to clients and resellers. Standardising a JSON format for domain provisioning within the RPP framework could mitigate these challenges, reducing fragmentation and simplifying integration efforts across the domain registration industry.</t>
</section>
</section>

<section anchor="terminology"><name>Terminology</name>
<t>In this document, the following terminology is used.</t>
<t>Terms of the RPP data model, such as Data Object, Component Object, Process Object, Common Data Type, data element, cardinality, mutability, Identifier, Unique Identifier, Input Data Element, Parameter, Visibility, Direct Access, Input, Output, Reference, Owner Data Object, and This Object, are used as defined in <xref target="I-D.ietf-rpp-data-objects"></xref>.</t>
<t>RPP Data Objects - The abstract data model definitions of the objects provisioned and exchanged with RPP, as specified in <xref target="I-D.ietf-rpp-data-objects"></xref>.</t>
<t>RESTful Provisioning Protocol - A RESTful protocol for provisioning heterogeneous database objects.</t>
<t>JSON Schema - A vocabulary that allows annotation and validation of JSON documents, as described in <xref target="I-D.ietf-jsonschema-json-schema"></xref>.</t>
<t>EPP Compatibility Profile - A set of additional constraints defined in <xref target="I-D.ietf-rpp-data-objects"></xref> that a server MUST adhere to when supporting both RPP and EPP concurrently.</t>
</section>

<section anchor="conventions-used-in-this-document"><name>Conventions Used in This Document</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;,
&quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;MAY&quot;, and &quot;OPTIONAL&quot; in this
document are to be interpreted as described in <xref target="RFC2119"></xref>.</t>
<t>JSON is case sensitive. Unless stated otherwise, JSON specifications and examples provided in this document MUST be interpreted in the character case presented. The examples in this document assume that request and response messages are properly formatted JSON documents. Indentation and white space in examples are provided only to illustrate element relationships and for improving readability, and are not REQUIRED features of the protocol.</t>
<t>All JSON Schema definitions in this document use JSON Schema draft 2020-12 <xref target="I-D.ietf-jsonschema-json-schema"></xref>, and where not provided with a <tt>$schema</tt> keyword, the following default applies:</t>

<artwork><![CDATA[  "$schema": "https://json-schema.org/draft/2020-12/schema"
]]></artwork>
</section>

<section anchor="json-representation-rules"><name>JSON Representation Rules</name>
<t>This section defines the normative rules for representing the RPP data model in JSON. The data model defines all primitive types, common data types, component objects, resource objects, and associations independently of any concrete representation format. The rules in this section specify how those abstract definitions map to JSON and JSON Schema version 2020-12.</t>

<section anchor="primitive-type-mappings"><name>Primitive Type Mappings</name>
<t>RPP primitive types MUST be represented in JSON as follows:</t>
<table>
<thead>
<tr>
<th>RPP Primitive Type</th>
<th>JSON Type</th>
<th>Notes</th>
</tr>
</thead>

<tbody>
<tr>
<td>String</td>
<td><tt>string</tt></td>
<td>Unicode character sequence</td>
</tr>

<tr>
<td>Integer</td>
<td><tt>number</tt></td>
<td>Whole number, positive or negative</td>
</tr>

<tr>
<td>Boolean</td>
<td><tt>boolean</tt></td>
<td><tt>true</tt> or <tt>false</tt></td>
</tr>

<tr>
<td>Decimal</td>
<td><tt>string</tt></td>
<td>Base-10 fractional value with exact representation within a defined precision. Number is encoded into string same as <tt>&quot;number&quot;</tt> in <xref target="RFC8259"></xref> without exponent part <tt>&quot;ext&quot;</tt>.</td>
</tr>

<tr>
<td>Date</td>
<td><tt>string</tt></td>
<td>Full-date as per <xref target="RFC3339"></xref>, e.g. <tt>&quot;2025-10-27&quot;</tt></td>
</tr>

<tr>
<td>Timestamp</td>
<td><tt>string</tt></td>
<td>Date-time in UTC as per <xref target="RFC3339"></xref>, e.g. <tt>&quot;2025-10-27T09:42:51Z&quot;</tt></td>
</tr>

<tr>
<td>URL</td>
<td><tt>string</tt></td>
<td>Uniform Resource Locator as per <xref target="RFC1738"></xref></td>
</tr>

<tr>
<td>Binary</td>
<td><tt>string</tt></td>
<td>Base64-encoded binary data</td>
</tr>
</tbody>
</table></section>

<section anchor="undefined-values"><name>Undefined Values</name>
<t>A data element can have no defined value, for example when the value is NULL in the server's database or has never been set. The JSON <tt>null</tt> value must not be used to represent an undefined value, a JSON Schema type such as <tt>&quot;type&quot;: &quot;string&quot;</tt> does not allow <tt>null</tt>.</t>
<t>An undefined value of a primitive type data element must not be rendered, the property must be omitted from the JSON object. An array data element with cardinality <tt>0+</tt> that has no values may be rendered as an empty array (<tt>[]</tt>) or may be omitted from the JSON object. Consumers must treat both representations as equivalent.</t>
<t>Example: a domain name for which the primitive type data element <tt>expiryDate</tt> is undefined and not rendered, the array data element <tt>nameservers</tt> has no values, with <tt>nameservers</tt> rendered as an empty array:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "spClientId": "ClientX"
    },
    "nameservers": []
}
]]></sourcecode>
<t>The same domain name with the <tt>nameservers</tt> array omitted is equivalent:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "spClientId": "ClientX"
    }
}
]]></sourcecode>
</section>

<section anchor="cardinality-rules"><name>Cardinality Rules</name>
<t>The cardinality of each data element in the RPP data model MUST be represented as follows in JSON:</t>
<t>A data element with cardinality <tt>1</tt> (exactly one) MUST be represented as a JSON property and MUST be present in the containing JSON object. The element MUST be listed under <tt>required</tt> in the corresponding JSON Schema.</t>

<sourcecode type="json"><![CDATA[{
  "type": "object",
  "properties": {
    "name": { "type": "string" }
  },
  "required": ["name"]
}
]]></sourcecode>
<t>A data element with cardinality <tt>0-1</tt> (zero or one) MUST be represented as an optional JSON property. The element MUST NOT be listed under <tt>required</tt> in the corresponding JSON Schema. When absent, the element MUST be omitted from the JSON object (not represented as <tt>null</tt>).</t>

<sourcecode type="json"><![CDATA[{
  "type": "object",
  "properties": {
    "expiryDate": { "type": "string", "format": "date-time" }
  }
}
]]></sourcecode>
<t>A data element with cardinality <tt>0+</tt> (zero or more) MUST be represented as an optional JSON array. When no values are present, the property MUST be omitted or represented as an empty array.</t>

<sourcecode type="json"><![CDATA[{
  "type": "object",
  "properties": {
    "status": {
      "type": "array",
      "items": { "$ref": "#/$defs/domainStatus.read" }
    }
  }
}
]]></sourcecode>
<t>A data element with cardinality <tt>1+</tt> (one or more) MUST be represented as a required JSON array with <tt>&quot;minItems&quot;: 1</tt> and the element MUST be listed under <tt>required</tt> in the corresponding JSON Schema.</t>

<sourcecode type="json"><![CDATA[{
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": { "$ref": "#/$defs/dnsRecord.read" },
      "minItems": 1
    }
  },
  "required": ["records"]
}
]]></sourcecode>
</section>

<section anchor="mutability-rules"><name>Mutability Rules</name>
<t>Data elements in the RPP data model carry a mutability attribute: <tt>create-only</tt>, <tt>read-write</tt>, or <tt>read-only</tt>. Which of them an object representation contains follows from the Input and Output of the operation:</t>

<ul spacing="compact">
<li>Response content contains data elements of every mutability. A data element is left out only when it is not present on the object, when its Visibility is <tt>onDemand</tt> and the client did not request it, or when authorisation or server policy withholds it.</li>
<li>Request content for an object being created contains its <tt>create-only</tt> and <tt>read-write</tt> data elements. For a Component Object or an Aggregation object creation can take place in create or update operation on the containing object, when a value is set or added.</li>
<li>Request content for an existing object being modified, i.e. when both the Reference and the Object of the Input are This Object, contains its <tt>read-write</tt> data elements.</li>
</ul>
<t>Input Data Elements and Parameters are not data elements of the object, have no mutability, and are not subject to the following rules.</t>
<t>Data elements with mutability <tt>read-only</tt> MUST be annotated with <tt>&quot;readOnly&quot;: true</tt> in the JSON Schema and MUST NOT be part of any request view.</t>

<sourcecode type="json"><![CDATA[{
  "repositoryId": {
    "type": "string",
    "readOnly": true
  }
}
]]></sourcecode>
<t>Data elements with mutability <tt>create-only</tt> MUST be annotated with <tt>&quot;writeOnly&quot;: true</tt> in request schemas and MUST NOT be part of the <tt>update</tt> view.</t>
<t>Data elements with mutability <tt>read-write</tt> have no additional annotation.</t>
<t>A server MUST reject a request whose content contains a data element that is not allowed in that request, such as a <tt>read-only</tt> data element or a <tt>create-only</tt> data element of an existing object. With the enrichment required by <xref target="undeclared-properties" format="title"></xref>, such a request fails JSON Schema validation.</t>
</section>

<section anchor="association-rules"><name>Association Rules</name>
<t>The RPP data model defines several association types between objects, the following rules specify their JSON representations.
An Aggregation represents a relationship between two independent objects, where one object references another. A Composition represents a parent-child relationship where the child object is embedded within the parent object and cannot exist independently.</t>

<section anchor="labelled-associations"><name>Labelled Associations</name>
<t>Some associations between objects carry a string label that provides additional context for the relationship. The label is not an identifier of the target object, but rather a descriptor of the association itself. Labelled associations can occur in both aggregations and compositions. When representing labelled associations in JSON, the property <tt>label</tt> MUST be included alongside the reference to the target object. A property with the name <tt>object</tt> MUST be used to contain the reference to the target object, which can be either a limited representation containing at minimum the Unique Identifier of the target object for aggregations or an embedded object for compositions.</t>
</section>

<section anchor="aggregation"><name>Aggregation</name>
<t>An <tt>Aggregation[Type]</tt> represents a relationship between two independent objects. The referenced object is identified by its Unique Identifier. When the cardinality allows more than one target, it MUST be represented as a JSON array. Each element of the array is a limited representation of the referenced object, as specified below.</t>
<t><tt>Aggregation[Type]</tt> with cardinality <tt>0+</tt> or <tt>1+</tt> MUST be represented as a JSON array of embedded objects. Each object in the array MUST include the data elements of the referenced object type that are relevant to the context (at minimum the Unique Identifier). Other data elements of the referenced object type MAY be included as needed to provide additional context for the client, but are not required. The JSON Schema MUST allow for the presence of these additional fields.</t>
<t>Example: domain nameservers (Aggregation[Host Data Object]) in a read response, returning a limited object representation containing only the Unique Identifier <tt>hostName</tt>:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "name.example",
    "nameservers": [
        { "@type": "host", "hostName": "ns1.name.example" },
        { "@type": "host", "hostName": "ns2.name.example" }
    ]
}
]]></sourcecode>
</section>

<section anchor="composition"><name>Composition</name>
<t>A <tt>Type</tt> represents a parent-child relationship where the child's lifecycle is bound to the parent and the child cannot exist independently of the parent. In JSON, the child object MUST be fully embedded within the parent object.</t>

<sourcecode type="json"><![CDATA[{ 
        "@type": "domainName",
        "name": "name.example",
        "nameservers": [
            {
                "@type": "host",
                "hostName": "ns1.name.example",
                "provMetadata": {
                    "@type": "provMetadata",
                    "repositoryId": "NS1-REP",
                    "spClientId": "ClientX"
                },
                "status": [ { "@type": "hostStatus", "label": "ok" } ],
                "dns": {
                    "@type": "dnsData",
                    "records": [
                        {
                            "@type": "dnsRecord",
                            "name": "@",
                            "type": "ns",
                            "rdata": { "nsdname": "ns1.name.example." }
                        },
                        {
                            "@type": "dnsRecord",
                            "name": "ns1.name.example.",
                            "type": "a",
                            "rdata": { "address": "192.0.2.1" }
                        }
                    ]
                }
            }
        ]
}
]]></sourcecode>
</section>

<section anchor="labelled-aggregation"><name>Labelled Aggregation</name>
<t>A <tt>LabelledAggregation[Type]</tt> is a relationship between two independent objects where each association carries a string label. Multiple associations with the same label are allowed.</t>
<t><tt>LabelledAggregation[Type]</tt> with cardinality <tt>0+</tt> MUST be represented as a JSON array of objects. Each object in the array MUST contain a <tt>label</tt> property (string) alongside the identifier of the referenced object. The object MUST include at least the Unique Identifier of the referenced object type. Other data elements of the referenced object type MAY be included as needed to provide additional context for the client, but are not required. The JSON Schema MUST allow for the presence of these additional fields.</t>
<t>Example: domain contacts (LabelledAggregation[Contact Object]):</t>

<sourcecode type="json"><![CDATA["contacts": [
    { 
        "label": "admin",
        "object": { 
            "@type": "contact",
            "id": "ABC-8013" 
        }
    },
    { 
        "label": "tech",
        "object": { 
            "@type": "contact",
            "id": "ABC-8014" 
        }
     }
]
]]></sourcecode>
</section>

<section anchor="dictionary-aggregation"><name>Dictionary Aggregation</name>
<t>A <tt>DictionaryAggregation[Type]</tt> is a relationship between two independent objects where each association carries a unique string label that serves as a dictionary key.</t>
<t><tt>DictionaryAggregation[Type]</tt> MUST be represented as a JSON object where each key is the unique label and the corresponding value is the referenced object, the object MUST include at least the Unique Identifier of the referenced object type. Other data elements of the referenced object type MAY be included as needed to provide additional context for the client, but are not required. The JSON Schema MUST allow for the presence of these additional fields.</t>
<t>Example: domain contacts keyed by unique role (DictionaryAggregation[Contact Object]):</t>

<sourcecode type="json"><![CDATA["contacts": {
    "admin": {
        "@type": "contact",
        "id": "ABC-8013"
    },
    "tech": {
        "@type": "contact",
        "id": "ABC-8014"  
    }
}
]]></sourcecode>
</section>

<section anchor="labelled-composition"><name>Labelled Composition</name>
<t>A <tt>LabelledComposition[Type]</tt> is a parent-child relationship where each embedded child carries a string label. Multiple instances with the same label are allowed.</t>
<t><tt>LabelledComposition[Type]</tt> with cardinality <tt>0+</tt> MUST be represented as a JSON array of embedded objects. Each object in the array MUST contain a <tt>label</tt> property alongside the data elements of the composed type.</t>
<t>Example: remarks (LabelledComposition[Remark Object]):</t>

<sourcecode type="json"><![CDATA["remarks": [
    {
        "label": "public",
        "object": {
            "@type": "remark",
            "description": "This domain is used for test purposes."
        }
    },
    {
        "label": "private",
        "object": {
            "@type": "remark",
            "description": "Internal note for the sponsoring client."
        }
    }
]
]]></sourcecode>
</section>

<section anchor="dictionary-composition"><name>Dictionary Composition</name>
<t>A <tt>DictionaryComposition[Type]</tt> is a parent-child relationship where each embedded child carries a unique string label used as a dictionary key.</t>
<t><tt>DictionaryComposition[Type]</tt> MUST be represented as a JSON object where each key is the unique label and the corresponding value is the fully embedded child object.</t>
<t>Example: remarks keyed by scope (DictionaryComposition[Remark Object]):</t>

<sourcecode type="json"><![CDATA["remarks": {
    "public": {
        "@type": "remark",
        "description": "This domain is used for test purposes."
    },
    "private": {
        "@type": "remark",
        "description": "Internal note for the sponsoring client."
    }
}
]]></sourcecode>
</section>
</section>

<section anchor="object-identifier-rules"><name>Object Identifier Rules</name>
<t>When a resource or component object is referenced by identifier (for example in an aggregation), the identifier MUST be represented as a JSON string using the value of the object's primary identifier data element.</t>
<t>When a resource or component object is embedded (as in a composition), all data elements of the object MUST be represented as properties of a JSON object according to the rules of this section.</t>
</section>

<section anchor="external-type-embedding-rules"><name>External Type Embedding Rules</name>
<t>RPP data objects may include data elements whose types are defined by external specifications (e.g., JSContact in <xref target="RFC9553"></xref>). When embedding a value of an externally defined type into a JSON representation, the following rules apply, in order of preference:</t>
<t>If the external type has a native JSON representation (i.e., the external specification defines how the type is represented using the JSON format), the value MUST be embedded as a valid JSON element using the native JSON representation defined by that specification.</t>
<t>If the external type does not have a native JSON representation but has a native UTF-8 encoded text representation, the value MUST be embedded as a JSON <tt>string</tt> using the UTF-8 encoding.</t>
<t>If the external type has neither a native JSON nor a native UTF-8 text representation, the binary representation of the value MUST be Base64-encoded (<xref target="RFC4648"></xref>, Section 4) and embedded as a JSON <tt>string</tt>.</t>
</section>

<section anchor="process-data-embedding-rules"><name>Process Data Embedding Rules</name>
<t>As defined in <xref target="I-D.ietf-rpp-core"></xref>, a uniform interface operation MAY require process data in addition to the object representation data. This section defines how such process data MUST be represented in JSON when transmitted together with the object representation in a single request body.</t>
<t>Process data accompanying a uniform interface operation MUST be represented using the <tt>processes</tt> data element of the owning resource object (see Processes Object), following the Aggregation rules for the corresponding process type (for example <tt>createProcess</tt> for creation-specific inputs). Each embedded process object MUST be a valid JSON representation of the process object. This applies uniformly regardless of whether the resource object already exists.</t>
<t>Example: a domain create request body carrying a two-year registration period as process data embedded in a <tt>createProcess</tt> process object under <tt>processes</tt>:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "nameservers": [
        { "@type": "host", "hostName": "ns1.example.example" },
        { "@type": "host", "hostName": "ns2.example.example" }
    ],
    "processes": {
        "@type": "processes",
        "createProcess": [
            {
                "@type": "createProcess",
                "period": {
                    "@type": "period",
                    "value": 2,
                    "unit": "y"
                }
            }
        ]
    }
}
]]></sourcecode>
</section>

<section anchor="json-schema-definition-rules"><name>JSON Schema Definition Rules</name>
<t>Each RPP component object and resource object MUST have a corresponding JSON Schema definition. Object definitions MUST be placed in the <tt>$defs</tt> keyword of the JSON Schema document.</t>
<t>Identifier fields MUST use <tt>&quot;type&quot;: &quot;string&quot;</tt> in JSON Schema.</t>
<t>Enumeration constraints on string fields MUST be expressed using the <tt>&quot;enum&quot;</tt> keyword in JSON Schema.</t>
<t>Example (Transfer Status enum):</t>

<sourcecode type="json"><![CDATA["trStatus": {
    "type": "string",
    "enum": ["pending", "clientApproved", "clientCancelled",
             "clientRejected", "serverApproved", "serverCancelled"]
}
]]></sourcecode>
<t>Each JSON Schema definition for an RPP object MUST include a <tt>&quot;required&quot;</tt> array listing all data elements with cardinality <tt>1</tt> or <tt>1+</tt>.</t>

<section anchor="undeclared-properties"><name>Undeclared Properties</name>
<t>JSON Schema definitions for extendible RPP objects MUST NOT use <tt>&quot;additionalProperties&quot;: false</tt> or <tt>&quot;unevaluatedProperties&quot;: false</tt>. However, before validation, schemas on every property level MUST be enriched with <tt>&quot;unevaluatedProperties&quot;: false</tt> property to prevent the presence of undeclared properties in JSON instances. JSON Schemas for Object type MAY use <tt>&quot;additionalProperties&quot;: true</tt> to allow for free key definition.</t>
</section>

<section anchor="type-property"><name>Type Property</name>
<t>Every RPP object representation MUST include a <tt>&quot;@type&quot;</tt> property whose value is the object's identifier as registered in the IANA RPP Data Object Registry. This property enables identification and allows clients and servers to unambiguously determine the type of an object. The <tt>&quot;@type&quot;</tt> property MUST be included in the JSON Schema <tt>&quot;properties&quot;</tt> object for each RPP object definition with a <tt>&quot;const&quot;</tt> constraint fixing the value to the object's registered identifier. The <tt>&quot;@type&quot;</tt> property MUST be listed in the <tt>&quot;required&quot;</tt> array of the corresponding JSON Schema definition.</t>
<t>Example (Domain Name Data Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example"
}
]]></sourcecode>
</section>

<section anchor="authorization-information-rules"><name>Authorisation Information in Requests</name>
<t>When a transfer request or other operation requires authorisation information (e.g., EPP-style authinfo), the client MUST NOT include the <tt>authInfo</tt> object in the JSON request body. Instead, the client MUST convey the authorisation information using the <tt>RPP-Authorization</tt> HTTP request header as defined in <xref target="I-D.ietf-rpp-core"></xref>. Servers MUST reject any request that includes an <tt>authInfo</tt> object in the JSON body with an appropriate error response.</t>
</section>
</section>

<section anchor="json-schema-composition-rules"><name>JSON Schema Composition Rules</name>
<t>The JSON Schema definitions of all RPP objects MUST be located in a single shared <tt>$defs</tt> object at the top level of the RPP schema document. A schema that refers to another definition MUST use the <tt>$ref</tt> keyword with a JSON Pointer fragment to the definition in the shared <tt>$defs</tt> object.</t>
<t>The key of a definition in the shared <tt>$defs</tt> object MUST be formed as follows, using the Identifiers of the data model unchanged:</t>

<ul spacing="compact">
<li>Data Object, Process Object, or Component Object: its Identifier, followed by a <tt>.</tt> and the name of the view. An object that extends another object uses its own Identifier, not the Identifier of the object it extends.</li>
</ul>
<t>The view names are:</t>

<ul spacing="compact">
<li><tt>create</tt>: the request content of the Create operation.</li>
<li><tt>read</tt>: the object representation returned in responses.</li>
<li><tt>update</tt>: the request content of the Update operation.</li>
<li><tt>reference</tt>: the limited representation of an aggregated object (see Aggregation), containing <tt>@type</tt> and the object's Unique Identifier.</li>
<li><tt>query</tt>: the response content of the Query operation, typically an array of <tt>read</tt> views.</li>
<li>The Identifier of the operation: the request content of any other operation.</li>
<li>The Identifier of the operation followed by <tt>.output</tt>: the response content of an operation, other than Read and Query, whose output is not an existing view of the object.</li>
</ul>
<t>A Component Object has a <tt>read</tt> view. A Component Object that has at least one data element with mutability <tt>create-only</tt> or <tt>read-write</tt> also has a <tt>create</tt> view. A Component Object has no other views.</t>
<t>A view that holds request content MUST reference the <tt>create</tt> view of an embedded Component Object. A view that holds response content MUST reference the <tt>read</tt> view of an embedded Component Object.</t>
<t>Each key MUST be unique within the shared <tt>$defs</tt> object. Common Data Types and types defined by an external specification are not subject to this rule. They MAY use a key that is not derived from an RPP Identifier.</t>
<t>A schema that refers to another component object or data object MUST use the <tt>$ref</tt> keyword with a JSON Pointer fragment to the definition in the shared <tt>$defs</tt> object, for example <tt>{ &quot;$ref&quot;: &quot;#/$defs/period.create&quot; }</tt>.</t>
<t>The final RPP schema document, containing the shared <tt>$defs</tt> object with all sub-schemas, MUST have an <tt>$id</tt> keyword whose value is an absolute URI without a fragment, serving as the stable identifier of the complete RPP schema document.</t>
<t>Example (structure of the final RPP schema document):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:ietf:params:rpp:schema:json-1.0",
  "$defs": {
    "period.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "period" },
        "value": { "type": "integer" },
        "unit":  { "type": "string", "enum": ["y", "m"] }
      },
      "required": ["@type", "value", "unit"]
    },
    "domainCreateProcess.create": {
      "type": "object",
      "properties": {
        "@type":     { "type": "string", "const": "domainCreateProcess" },
        "period":    { "$ref": "#/$defs/period.create" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>

<section anchor="status-object-rules"><name>Status Objects</name>
<t>Each status object has a status values table whose &quot;Set By&quot; column identifies the entity that adds and removes each status value: <tt>client</tt>, <tt>server</tt>, or <tt>client, server</tt>. In this section, a client-settable status value is a value whose &quot;Set By&quot; column contains <tt>client</tt>.</t>
<t>The <tt>read</tt> view of a status object lists all of its status values in the <tt>&quot;enum&quot;</tt> of <tt>&quot;label&quot;</tt>. Its <tt>create</tt> view lists only the client-settable status values in the <tt>&quot;enum&quot;</tt> of <tt>&quot;label&quot;</tt>.</t>
<t>When a status object has no client-settable status value, the <tt>create</tt> and <tt>update</tt> views of the Data Object MUST NOT contain the status data element.</t>
<t>When the status values of a status object state that a client is not required to provide a status value when creating or updating the object, the status data element MUST NOT be listed under <tt>&quot;required&quot;</tt> and MUST NOT carry <tt>&quot;minItems&quot;</tt> in the <tt>create</tt> and <tt>update</tt> views, notwithstanding <xref target="cardinality-rules" format="title"></xref> and <xref target="json-schema-definition-rules" format="title"></xref>.</t>
<t>When the status values of a status object state that a server MUST assign at least one status value to the object, the status data element MUST be listed under <tt>&quot;required&quot;</tt> in the <tt>read</tt> view, with <tt>&quot;minItems&quot;: 1</tt> when it is an array.</t>
</section>

<section anchor="inheritance"><name>Inheritance</name>
<t>RPP Data Objects and Component Objects MAY inherit the data elements and operations of another object. The JSON Schema for an object must include all the inherited data elements and constraints from its base object, using a flat structure where all properties are defined at the top level of the schema, rather than nested under an <tt>&quot;allOf&quot;</tt> or <tt>&quot;anyOf&quot;</tt> construct.</t>
<t>Example: a Shape Object with the data elements <tt>name</tt> (cardinality <tt>1</tt>) and <tt>colour</tt> (cardinality <tt>0-1</tt>), and a Circle Object that extends it with the additional data element <tt>radius</tt> (cardinality <tt>1</tt>).</t>
<t>JSON Schema of the base Shape Object:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "shape": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "shape" },
        "name":   { "type": "string" },
        "colour": { "type": "string" }
      },
      "required": ["@type", "name"]
    }
  }
}
]]></sourcecode>
<t>JSON Schema of the Circle Object, which defines the inherited <tt>name</tt> and <tt>colour</tt> properties at the top level alongside its own <tt>radius</tt> property, without referencing the Shape Object schema using <tt>&quot;allOf&quot;</tt>:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "circle": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "circle" },
        "name":   { "type": "string" },
        "colour": { "type": "string" },
        "radius": { "type": "integer" }
      },
      "required": ["@type", "name", "radius"]
    }
  }
}
]]></sourcecode>
<t>Example Circle Object instance:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "circle",
    "name": "my-circle",
    "colour": "red",
    "radius": 10
}
]]></sourcecode>
</section>

<section anchor="rpp-profiles-and-validation"><name>RPP Profiles and Validation</name>
<t>RPP profiles, such as the EPP Compatibility Profile, may impose additional constraints on top of the base RPP data model. These additional constraints MUST be enforced by implementations through validation rules that go beyond what can be expressed in JSON Schema. Such validation rules MUST be clearly documented in the profile specification and implemented by both clients and servers when operating under that profile. For example, the EPP Compatibility Profile requires that certain fields be present in specific object types, and that certain identifier fields conform to EPP syntax rules. These constraints cannot be fully captured in JSON Schema and therefore require additional validation logic in implementations.</t>
</section>
</section>
</section>

<section anchor="update-rules"><name>Update Rules</name>
<t>JSON representations for update operations follow specific rules to ensure consistency and correctness. There are two types of update operations: full updates and partial updates.</t>

<section anchor="full"><name>Full</name>
<t>A full update operation replaces the entire state of a resource object with the new representation provided in the request, all required properties MUST be included in the new representation.</t>
</section>

<section anchor="partial"><name>Partial</name>
<t>A partial update operation allows clients to update specific properties of a resource object, while leaving other properties unchanged.
A partial update MUST use JSON Patch <xref target="RFC6902"></xref>, extended with a <tt>match</tt> property for matching array elements. The <tt>match</tt> property is not part of <xref target="RFC6902"></xref>; it is introduced and defined in this document (see <xref target="partial-matching"></xref>).</t>
<t>The request body of a partial update is a JSON array of patch operations, see <xref target="partial-schema"></xref>. Each patch operation consists of an <tt>op</tt> (the operation), a <tt>path</tt> (a JSON Pointer to the property the operation targets), a <tt>value</tt> (the new value, for <tt>add</tt> and <tt>replace</tt>), and optionally a <tt>match</tt> (to select array elements). When the <tt>path</tt> points to an existing primitive type property, the <tt>add</tt> operation has the same semantics as <tt>replace</tt> and will overwrite the existing value.</t>

<section anchor="partial-matching"><name>Matching</name>
<t>The <tt>match</tt> property is used to identify elements in an array of objects. It is a JSON object that contains key-value pairs corresponding to the properties of the array elements. The server uses the <tt>match</tt> property to locate the elements in the array that should be removed or replaced. The <tt>match</tt> property MUST NOT be used when the <tt>path</tt> does not point to an array, and MUST NOT be used for an array of primitive types. An array of primitive types is changed by replacing the array as a whole, or by adding a value without <tt>match</tt>.</t>
<t>The following rules apply to matching and depend on the type of the property in the <tt>match</tt> object:</t>

<ul spacing="compact">
<li>A primitive type property (e.g. string, number or boolean) matches if the target object property has the same type and the same value.</li>
<li>An array of primitive type property (e.g. array of string, number or boolean) matches if the target array contains elements of the same type and both sets of values are identical. The ordering of elements does not affect matching.</li>
<li>An object type is considered a match when the value of every property in the <tt>match</tt> object matches the value of the property with the same name in the target object. Properties of the target object that are not named in the <tt>match</tt> object are not compared.</li>
<li>The server MUST NOT match nested data structures. The <tt>match</tt> property is only used for matching elements in the immediate array specified by the <tt>path</tt> property of the JSON Patch operation.</li>
<li>The server MUST reject a <tt>match</tt> that is not a JSON object, or that contains a value that cannot be compared using the rules above.</li>
</ul>
<t>Example domain object for matching an array element with a specific key-value pair:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "REG-100" } },
        { "label": "tech", "object": { "@type": "contact", "id": "REG-200" } },
        { "label": "tech", "object": { "@type": "contact", "id": "REG-300" } }
    ]
}
]]></sourcecode>
<t>Example <tt>match</tt> object for matching the array element with the &quot;tech&quot; label and the contact ID &quot;REG-200&quot; in the <tt>contacts</tt> array of the domain object above:</t>

<sourcecode type="json"><![CDATA[{
"match": {
      "label": "tech",
      "object": { "@type": "contact", "id": "REG-200" }
    }
}
]]></sourcecode>
<t>Example object for matching an array element that has a property containing an array of primitive types, here the <tt>tld</tt> property of the elements of the <tt>idnLgr</tt> array:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "discovery",
    "idnLgr": [
        {
            "@type": "discoveryIdnLgr",
            "tld": ["example", "org"],
            "name": "example-latn-1.0"
        },
        {
            "@type": "discoveryIdnLgr",
            "tld": ["example"],
            "name": "example-cyrl-1.0"
        }
    ]
}
]]></sourcecode>
<t>Example <tt>match</tt> object for matching the elements of the <tt>idnLgr</tt> array above for which the <tt>tld</tt> array contains the value &quot;org&quot; and &quot;example&quot;. The order of the values in <tt>tld</tt> is ignored and only the first element matches, because the second element does not contain &quot;org&quot;:</t>

<sourcecode type="json"><![CDATA[{
"match": {
      "tld": ["org", "example"]
    }
}
]]></sourcecode>
</section>

<section anchor="partial-steps"><name>Processing Steps</name>
<t>The server MUST process the patch operations in the order in which they appear in the request body. A partial update is atomic, meaning that if any of the operations fails or is rejected, the server MUST reject the complete request with an appropriate error response that identifies the patch operation that failed.</t>
<t>For each patch operation the server MUST perform the following steps. <xref target="fig-partial-update-operation"></xref> shows the steps for a single patch operation, <xref target="fig-partial-update-simple"></xref> shows the handling of a primitive type value or an object, and <xref target="fig-partial-update-array"></xref> shows the handling of an array.</t>

<ol spacing="compact">
<li>Check the operation: the <tt>op</tt> must be one of &quot;add&quot;, &quot;remove&quot; or &quot;replace&quot;. JSON Patch operations other than these are not allowed.</li>
<li>Resolve the path: the <tt>path</tt> must point to an existing property in the JSON object or a non-existing but allowed property defined in the JSON Schema of the object.</li>
<li><t>Determine the type of the target that the <tt>path</tt> points to:</t>

<ul spacing="compact">
<li>A primitive type value (for example a string, number or boolean), or an object: continue with step 4.</li>
<li>An array: continue with step 5.</li>
</ul></li>
<li><t>Apply the operation to a primitive type value or an object:</t>

<ul spacing="compact">
<li>For &quot;remove&quot;, the field is removed.</li>
<li><t>For &quot;add&quot; and &quot;replace&quot;, the <tt>value</tt> property must be present.</t>

<ul spacing="compact">
<li>If the target is a primitive type value, the type of <tt>value</tt> must match the type of the target field.</li>
<li>If the target is an object, <tt>value</tt> must be a valid object, the <tt>@type</tt> property of <tt>value</tt> must match the <tt>@type</tt> property of the target object or be a supertype of the target object's <tt>@type</tt>.</li>
<li>The field is then set to <tt>value</tt>.</li>
</ul></li>
</ul></li>
<li><t>Apply the operation to an array:</t>

<ul spacing="compact">
<li><t>If <tt>match</tt> is present, the operation targets the elements identified by <tt>match</tt>:</t>

<ul spacing="compact">
<li>The &quot;add&quot; operation is not allowed to be used together with <tt>match</tt>.</li>
<li>If no element matches, the operation fails.</li>
<li>For &quot;remove&quot;, all matching elements are removed from the array.</li>
<li>For &quot;replace&quot;, if more than one element matches, the operation is ambiguous and fails. If exactly one element matches, it is replaced by <tt>value</tt>.</li>
</ul></li>
<li><t>If <tt>match</tt> is absent, the operation targets the array property as a whole:</t>

<ul spacing="compact">
<li>For &quot;add&quot;, <tt>value</tt> is appended to the array as a new element.</li>
<li>For &quot;replace&quot;, the entire array is replaced with the array provided in <tt>value</tt>.</li>
<li>For &quot;remove&quot;, the array property is removed entirely.</li>
</ul></li>
</ul></li>
<li>After the last operation has been applied, the resulting resource object must satisfy the JSON Schema and the constraints of the resource object that cannot be enforced by the JSON Schema.</li>
</ol>
<t>If a step fails because no element matches, the server MUST return an error response indicating that the specified element could not be found.</t>
<figure anchor="fig-partial-update-operation"><name>Partial update, steps for each patch operation </name>
<sourcecode type="ascii"><![CDATA[   +-------------------------------+
   | Take next patch operation     |<-------------------+
   +---------------+---------------+                    |
                   |                                    |
                   v                                    |
   +-------------------------------+                    |
   | Is op "add", "remove" or      |--- no --> REJECT   |
   | "replace"?                    |                    |
   +---------------+---------------+                    |
                   | yes                                |
                   v                                    |
   +-------------------------------+                    |
   | Does path point to an         |--- no --> REJECT   |
   | existing field or element?    |                    |
   +---------------+---------------+                    |
                   | yes                                |
                   v                                    |
   +-------------------------------+                    |
   | Does path point to an array?  |                    |
   +-------+---------------+-------+                    |
           | no            | yes                        |
           v               v                            |
   +---------------+ +---------------+                  |
   | Simple value  | | Array         |                  |
   | or object     | | (figure 3)    |                  |
   | (figure 2)    | |               |                  |
   +-------+-------+ +-------+-------+                  |
           |                 |                          |
           +--------+--------+                          |
                    |                                   |
                    v                                   |
   +-------------------------------+                    |
   | Another patch operation?      |--- yes ------------+
   +---------------+---------------+
                   | no
                   v
   +-------------------------------+
   | Is the resulting object valid |--- no --> REJECT
   | for the JSON Schema and the   |
   | constraints?                  |
   +---------------+---------------+
                   | yes
                   v
          Apply all changes
]]></sourcecode>
</figure>
<figure anchor="fig-partial-update-simple"><name>Partial update, primitive type value or object </name>
<sourcecode type="ascii"><![CDATA[   +-------------------------------+
   | Is match present?             |--- yes -> REJECT
   +---------------+---------------+
                   | no
                   v
   +-------------------------------+
   | Is op "remove"?               |--- yes --> Remove the field
   +---------------+---------------+
                   | no ("add" or "replace")
                   v
   +-------------------------------+
   | Is value present?             |--- no ---> REJECT
   +---------------+---------------+
                   | yes
                   |
                   v
            +---------------+    
            | Simple value  | 
            | and same type | --- yes ---> Set the field to value
            |               |
            +-------+-------+ 
                   | no
                   |
                   v
            +---------------+    
            | Object and    | 
            | @type matches | --- yes ---> Set the field to value
            |               |
            +-------+-------+ 
                    |        
                    | no
                    v
                  REJECT
]]></sourcecode>
</figure>
<figure anchor="fig-partial-update-array"><name>Partial update, array </name>
<sourcecode type="ascii"><![CDATA[   +-------------------------------+
   | Is match present?             |--- yes --> continue at (B)
   +---------------+---------------+
                   | no
                   v
   +-------------------------------+
   | Is op "add"?                  |--- yes --> Append value as
   +---------------+---------------+            a new element
                   | no
                   v
   +-------------------------------+
   | Is op "remove"?               |--- yes --> Remove the property
   +---------------+---------------+            (REJECT if the property
                                                has cardinality 1+)
                   | no ("replace")
                   v
   +-------------------------------+
   | Does value violate the schema |
   | of the array elements?        |--- yes --> REJECT
   +---------------+---------------+
                   | no
                   v
          Replace the array with value

   (B) Match present: the matching elements are targeted

   +-------------------------------+
   | Is op "add"?                  |--- yes --> REJECT
   +---------------+---------------+
                   | no
                   v
   +-------------------------------+
   | Is match a JSON object whose  |
   | values can be compared?       |--- no ---> REJECT
   +---------------+---------------+
                   | yes
                   v
   +-------------------------------+
   | Does any element match?       |--- no ---> REJECT
   +---------------+---------------+
                   | yes
                   v
   +-------------------------------+
   | Is op "remove"?               |--- yes --> Remove all
   +---------------+---------------+            matching elements
                   | no ("replace")
                   v
   +-------------------------------+
   | Does more than one element    |
   | match?                        |--- yes --> REJECT (ambiguous)
   +---------------+---------------+
                   | no
                   v
   +-------------------------------+
   | Is value valid for the        |
   | element type?                 |--- no ---> REJECT
   +---------------+---------------+
                   | yes
                   v
          Replace the element with value
]]></sourcecode>
</figure>
</section>
</section>

<section anchor="partial-schema"><name>Schema</name>
<t>A partial update request body MUST be a JSON array of patch operation objects. Each operation MUST include an <tt>op</tt> and a <tt>path</tt> property. The <tt>value</tt> property MUST be present for <tt>add</tt> and <tt>replace</tt> operations. The <tt>match</tt> property MAY be present when the <tt>path</tt> points to an array property, to identify the array elements to operate on. When <tt>match</tt> is absent, the operation targets the array property as a whole (see step 5 in <xref target="partial-steps"></xref>).</t>
<t>The <tt>value</tt> property is intentionally left unconstrained (<tt>{}</tt>) in the JSON Schema below, since the JSON type it MUST hold depends on the target <tt>path</tt>: it can be a JSON object (e.g. when replacing a single object property or a single matched array element), a JSON array (e.g. when replacing an array property as a whole), or a primitive type such as a string, number, or boolean.</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/partialUpdate",
  "$defs": {
    "partialUpdate": {
      "type": "array",
      "items": { "$ref": "#/$defs/patchOperation" },
      "minItems": 1
    },
    "patchOperation": {
      "oneOf": [
        { "$ref": "#/$defs/patchAdd" },
        { "$ref": "#/$defs/patchRemove" },
        { "$ref": "#/$defs/patchReplace" }
      ]
    },
    "patchAdd": {
      "type": "object",
      "properties": {
        "op":    { "type": "string", "const": "add" },
        "path":  { "type": "string" },
        "value": {}
      },
      "required": ["op", "path", "value"],
      "additionalProperties": false
    },
    "patchRemove": {
      "type": "object",
      "properties": {
        "op":    { "type": "string", "const": "remove" },
        "path":  { "type": "string" },
        "match": { "type": "object" }
      },
      "required": ["op", "path"],
      "additionalProperties": false
    },
    "patchReplace": {
      "type": "object",
      "properties": {
        "op":    { "type": "string", "const": "replace" },
        "path":  { "type": "string" },
        "match": { "type": "object" },
        "value": {}
      },
      "required": ["op", "path", "value"],
      "additionalProperties": false
    }
  }
}
]]></sourcecode>

<section anchor="examples"><name>Examples</name>
<t>Example JSON document used by partial update examples below:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "EXAMPLE1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "nameservers": [
        { "@type": "host", "hostName": "ns1.example.example" },
        { "@type": "host", "hostName": "ns2.example.example" }
    ],
    "registrant": { "@type": "contact", "id": "JD-1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "SH-8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "SH-8013" } }
    ],
    "status": [
        { "@type": "domainStatus", "label": "ok" }
    ],
    "expiryDate": "2027-01-01T00:00:00.0Z"
}
]]></sourcecode>
<t>Example of a partial update request to change the registrant of a domain name from &quot;JD-1234&quot; to &quot;JD-1235&quot;:</t>

<sourcecode type="json"><![CDATA[[
  {
    "op": "replace",
    "path": "/registrant",
    "value": {
      "@type": "contact",
      "id": "JD-1235"
    }
  }
]
]]></sourcecode>
<t>Example of a partial update request to change the status of a domain name from &quot;ok&quot; to &quot;clientUpdateProhibited&quot;:</t>

<sourcecode type="json"><![CDATA[[
  {
    "op": "replace",
    "path": "/status",
    "match": {
      "label": "ok"
    },
    "value": {
      "@type": "domainStatus",
      "label": "clientUpdateProhibited"
    }
  }
]
]]></sourcecode>
<t>Example of a partial update request for adding an additional tech contact to a domain name:</t>

<sourcecode type="json"><![CDATA[[
  {
    "op": "add",
    "path": "/contacts",
    "value": {
      "label": "tech",
      "object": {
        "@type": "contact",
        "id": "SH-8014"
      }
    }
  }
]
]]></sourcecode>
<t>Example of a partial update request replacing the entire <tt>nameservers</tt> array of a domain name in a single operation, with no &quot;match&quot; property present:</t>

<sourcecode type="json"><![CDATA[[
  {
    "op": "replace",
    "path": "/nameservers",
    "value": [
      { "@type": "host", "hostName": "ns1.example.example" },
      { "@type": "host", "hostName": "ns3.example.example" }
    ]
  }
]
]]></sourcecode>
</section>
</section>
</section>

<section anchor="json-schema-definitions"><name>JSON Schema Definitions</name>
<t>This section provides normative JSON Schema definitions for RPP component objects and resource objects. All schemas use JSON Schema draft 2020-12 <xref target="I-D.ietf-jsonschema-json-schema"></xref>.</t>

<section anchor="common-data-types-schemas"><name>Common Data Types Schemas</name>
<t>This section defines shared data types that are based on the primitive data types above and are reused across multiple data object definitions.</t>

<section anchor="identifier"><name>Identifier</name>
<t>Identifiers are character strings with a specified minimum length, a specified maximum length, and a specified format outlined in <xref target="RFC5730" sectionFormat="of" section="2.8"></xref>. Identifiers for certain object types MAY have additional constraints imposed either by server policy, object-specific specifications, or both.</t>
<t>In JSON, an Identifier MUST be represented as a <tt>string</tt> value conforming to the <tt>roidType</tt> syntax defined in <xref target="RFC5730" sectionFormat="of" section="2.8"></xref>: one to eight word characters optionally preceded by an underscore, followed by a hyphen and one or more word characters, with a maximum total length of 89 characters.</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "identifier": {
      "type": "string",
      "pattern": "^(\\w|_){1,8}-\\w{1,}$",
      "maxLength": 89
    }
  }
}
]]></sourcecode>
</section>

<section anchor="client-identifier"><name>Client Identifier</name>
<t>Client identifiers are character strings with a specified minimum length, a specified maximum length, and a specified format. Client identifiers use the <tt>clIDType</tt> syntax described in <xref target="RFC5730"></xref>.</t>
<t>In JSON, a Client Identifier MUST be represented as a <tt>string</tt> value.</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "clientIdentifier": {
      "type": "string",
      "minLength": 3,
      "maxLength": 16,
      "pattern": "^\\S+( \\S+)*$"
    }
  }
}
]]></sourcecode>
</section>

<section anchor="phone-number"><name>Phone Number</name>
<t>Telephone number syntax is derived from structures defined in <xref target="ITU.E164.2005"></xref>. Telephone numbers described in this specification are character strings that MUST begin with a plus sign (&quot;+&quot;, ASCII value 0x002B), followed by a country code defined in <xref target="ITU.E164.2005"></xref>, followed by a dot (&quot;.&quot;, ASCII value 0x002E), followed by a sequence of digits representing the telephone number. An optional &quot;x&quot; (ASCII value 0x0078) separator with additional digits representing extension information can be appended to the end of the value.</t>
<t>In JSON, a Phone Number MUST be represented as a <tt>string</tt> value conforming to the pattern described above.</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "phoneNumber": { "type": "string", "pattern": "^\\+[0-9]{1,3}\\.[0-9]{1,14}(x[0-9]+)?$" }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="component-objects-schemas"><name>Component Objects Schemas</name>

<section anchor="period-object"><name>Period Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "period.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "period", "readOnly": true },
        "value": { "type": "integer", "minimum": 1, "maximum": 99 },
        "unit": { "type": "string", "enum": ["y", "m"] }
      },
      "required": ["@type", "value", "unit"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "period.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "period" },
        "value": { "type": "integer", "minimum": 1, "maximum": 99 },
        "unit": { "type": "string", "enum": ["y", "m"] }
      },
      "required": ["@type", "value", "unit"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="provisioning-metadata-object"><name>Provisioning Metadata Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>upClientId</tt> and <tt>upDate</tt> MUST NOT be present if the object has never been modified.</li>
<li><tt>trDate</tt> MUST NOT be present if the object has never been transferred.</li>
<li>In the EPP Compatibility Profile, <tt>repositoryId</tt> MUST be provided.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "provMetadata.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "provMetadata", "readOnly": true },
        "repositoryId": { "$ref": "#/$defs/identifier", "readOnly": true },
        "spClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "crClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "crDate": { "type": "string", "format": "date-time", "readOnly": true },
        "upClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "upDate": { "type": "string", "format": "date-time", "readOnly": true },
        "trDate": { "type": "string", "format": "date-time", "readOnly": true }
      },
      "required": ["@type", "spClientId"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="status-objects"><name>Status Objects</name>
<t>Each RPP Data Object type that carries a status uses a type-specific status object. The <tt>create</tt> view of a status object holds only the status values that a client can set (see <xref target="status-object-rules"></xref>).</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li>A server MUST keep the status values it has set when it processes a create or update request; their absence from the <tt>&quot;status&quot;</tt> of the request does not remove them. A server MAY alter or override client-settable status values, subject to local server policy.</li>
<li>A server MUST reject a request whose <tt>&quot;status&quot;</tt> array contains a combination of label values prohibited by the status exclusion rules for that object type.</li>
<li>A <tt>&quot;status&quot;</tt> array MUST NOT contain the same <tt>&quot;label&quot;</tt> value more than once.</li>
</ul>
<t>Extensions MAY define additional <tt>&quot;label&quot;</tt> values for a status object; such values are added to the <tt>&quot;enum&quot;</tt> of the corresponding status object in the effective schema, as described in <xref target="extension-framework"></xref>.</t>

<section anchor="domain-name-status-object"><name>Domain Name Status Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>&quot;due&quot;</tt>: Servers MAY restrict the ability of clients to set or update this value.</li>
<li>Label values with the prefix <tt>&quot;rgp&quot;</tt> MUST only appear when the server supports the Redemption Grace Period (RGP) for the domain name.</li>
<li>The labels <tt>&quot;rgpRedemptionPeriod&quot;</tt>, <tt>&quot;rgpPendingRestore&quot;</tt>, and <tt>&quot;rgpPendingDelete&quot;</tt> MUST only appear together with the <tt>&quot;pendingDelete&quot;</tt> label.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "domainStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": [
            "clientDeleteProhibited",
            "serverDeleteProhibited",
            "clientHold",
            "serverHold",
            "clientRenewProhibited",
            "serverRenewProhibited",
            "clientTransferProhibited",
            "serverTransferProhibited",
            "clientUpdateProhibited",
            "serverUpdateProhibited",
            "inactive",
            "ok",
            "pendingCreate",
            "pendingDelete",
            "pendingRenew",
            "pendingTransfer",
            "pendingUpdate",
            "rgpAddPeriod",
            "rgpAutoRenewPeriod",
            "rgpRenewPeriod",
            "rgpTransferPeriod",
            "rgpRedemptionPeriod",
            "rgpPendingRestore",
            "rgpPendingDelete"
          ],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true },
        "due": { "type": "string", "format": "date-time" }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "domainStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainStatus" },
        "label": {
          "type": "string",
          "enum": [
            "clientDeleteProhibited",
            "clientHold",
            "clientRenewProhibited",
            "clientTransferProhibited",
            "clientUpdateProhibited"
          ],
          "writeOnly": true
        },
        "reason": { "type": "string", "writeOnly": true },
        "due": { "type": "string", "format": "date-time" }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="host-status-object"><name>Host Status Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "hostStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "hostStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": [
            "clientDeleteProhibited",
            "serverDeleteProhibited",
            "clientUpdateProhibited",
            "serverUpdateProhibited",
            "linked",
            "ok",
            "pendingCreate",
            "pendingDelete",
            "pendingTransfer",
            "pendingUpdate"
          ],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "hostStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "hostStatus" },
        "label": {
          "type": "string",
          "enum": ["clientDeleteProhibited", "clientUpdateProhibited"],
          "writeOnly": true
        },
        "reason": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="contact-status-object"><name>Contact Status Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "contactStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contactStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": [
            "clientDeleteProhibited",
            "serverDeleteProhibited",
            "clientTransferProhibited",
            "serverTransferProhibited",
            "clientUpdateProhibited",
            "serverUpdateProhibited",
            "linked",
            "ok",
            "pendingCreate",
            "pendingDelete",
            "pendingTransfer",
            "pendingUpdate"
          ],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "contactStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contactStatus" },
        "label": {
          "type": "string",
          "enum": ["clientDeleteProhibited", "clientTransferProhibited", "clientUpdateProhibited"],
          "writeOnly": true
        },
        "reason": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="organisation-role-status-object"><name>Organisation Role Status Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationRoleStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationRoleStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": ["clientLinkProhibited", "serverLinkProhibited", "linked", "ok"],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationRoleStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationRoleStatus" },
        "label": { "type": "string", "enum": ["clientLinkProhibited"], "writeOnly": true },
        "reason": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="organisation-status-object"><name>Organisation Status Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li>The <tt>&quot;hold&quot;</tt> and <tt>&quot;terminated&quot;</tt> labels are server-managed when the organisation has no parent organisation; otherwise they MAY be client-managed, subject to server policy.</li>
<li>The <tt>&quot;status&quot;</tt> array MUST contain exactly one of the labels <tt>&quot;pendingCreate&quot;</tt>, <tt>&quot;ok&quot;</tt>, <tt>&quot;hold&quot;</tt>, or <tt>&quot;terminated&quot;</tt>.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": [
            "ok",
            "hold",
            "terminated",
            "linked",
            "clientLinkProhibited",
            "serverLinkProhibited",
            "clientUpdateProhibited",
            "serverUpdateProhibited",
            "clientDeleteProhibited",
            "serverDeleteProhibited",
            "pendingCreate",
            "pendingUpdate",
            "pendingDelete"
          ],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationStatus" },
        "label": {
          "type": "string",
          "enum": [
            "hold",
            "terminated",
            "clientLinkProhibited",
            "clientUpdateProhibited",
            "clientDeleteProhibited"
          ],
          "writeOnly": true
        },
        "reason": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="user-status-object"><name>User Status Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li>The <tt>&quot;pending&quot;</tt> label is server-managed; <tt>&quot;suspended&quot;</tt> and <tt>&quot;deactivated&quot;</tt> are server-managed and MAY additionally be client-managed by a client with permission to manage users.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "userStatus.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "userStatus", "readOnly": true },
        "label": {
          "type": "string",
          "enum": ["active", "pending", "suspended", "deactivated"],
          "readOnly": true
        },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
<t>Create schema (status values that a client can set):</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "userStatus.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "userStatus" },
        "label": { "type": "string", "enum": ["suspended", "deactivated"], "writeOnly": true },
        "reason": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "label"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="dns-resource-record-object"><name>DNS Resource Record Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>name</tt> MUST be a syntactically valid DNS host name in zone file string representation. Both absolute FQDNs (with trailing dot) and relative host names are allowed, as well as the <tt>@</tt> symbol representing the domain name itself.</li>
<li><tt>type</tt> MUST be a valid string representation of a DNS resource record type as defined in <xref target="RFC1035"></xref>. Values MUST be converted to lowercase. Allowed values MAY be further constrained by server policy.</li>
<li>In the EPP Compatibility Profile (<xref target="RFC5732"></xref>), the following record types MUST be supported: <tt>ns</tt>, <tt>a</tt>, and <tt>aaaa</tt>. With DNSSEC Extension <xref target="RFC5910"></xref>, <tt>ds</tt> and <tt>dnskey</tt> MUST additionally be supported.</li>
<li><tt>class</tt>, if present, MUST be chosen from Section 3.2.4 (CLASS values) of <xref target="RFC1035"></xref>. A client SHOULD omit this element; the server MUST assume <tt>IN</tt> as the default.</li>
<li>The fields within <tt>rdata</tt> MUST match the expected structure for the given record type (see RDATA structures below).</li>
</ul>
<t>RDATA structures required in the EPP Compatibility Profile:</t>

<ul spacing="compact">
<li>NS records (<xref target="RFC1035"></xref>, Section 3.3.11): <tt>nsdname</tt></li>
<li>A records (<xref target="RFC1035"></xref>, Section 3.4.1): <tt>address</tt></li>
<li>AAAA records (<xref target="RFC3596"></xref>, Section 2.2): <tt>address</tt></li>
<li>DS records (<xref target="RFC4034"></xref>, Section 5, with DNSSEC Extension): <tt>keyTag</tt>, <tt>algorithm</tt>, <tt>digestType</tt>, <tt>digest</tt></li>
<li>DNSKEY records (<xref target="RFC4034"></xref>, Section 2, with DNSSEC Extension): <tt>flags</tt>, <tt>protocol</tt>, <tt>algorithm</tt>, <tt>publicKey</tt></li>
</ul>
<t>All <tt>rdata</tt> property names MUST be written in camelCase and all values MUST use the string data type.</t>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsRecord.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsRecord", "readOnly": true },
        "name": { "type": "string" },
        "class": { "type": "string" },
        "type": { "type": "string" },
        "rdata": { "type": "object", "unevaluatedProperties": true }
      },
      "required": ["@type", "name", "type", "rdata"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsRecord.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsRecord" },
        "name": { "type": "string" },
        "class": { "type": "string" },
        "type": { "type": "string" },
        "rdata": { "type": "object", "unevaluatedProperties": true }
      },
      "required": ["@type", "name", "type", "rdata"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="dns-operational-controls-object"><name>DNS Operational Controls Object</name>
<t>The DNS Operational Controls Object contains operational control parameters that a client MAY use to influence server-side DNS behaviour for a set of DNS records. A server MAY ignore these values, e.g. for policy reasons. This structure is aligned with <xref target="I-D.simmen-rpp-dns-data"></xref>.</t>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsControls.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsControls", "readOnly": true },
        "ttl": {
          "type": "object",
          "additionalProperties": { "type": "integer", "minimum": 1 },
          "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" }
        },
        "maxSigLifetime": {
          "type": "object",
          "additionalProperties": { "type": "integer", "minimum": 1 },
          "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" }
        }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsControls.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsControls" },
        "ttl": {
          "type": "object",
          "additionalProperties": { "type": "integer", "minimum": 1 },
          "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" }
        },
        "maxSigLifetime": {
          "type": "object",
          "additionalProperties": { "type": "integer", "minimum": 1 },
          "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" }
        }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="dns-data-object"><name>DNS Data Object</name>
<t>The DNS Data Object is a container for DNS resource records and associated operational controls for a provisioned object. This structure groups DNS records together with control parameters that influence server-side DNS behaviour. It is aligned with <xref target="I-D.simmen-rpp-dns-data"></xref>.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li>In the EPP Compatibility Profile with DNSSEC Extension <xref target="RFC5910"></xref>, records of type <tt>ds</tt> and <tt>dnskey</tt> MUST be supported in addition to <tt>ns</tt>, <tt>a</tt>, and <tt>aaaa</tt>. A server MUST support either <tt>ds</tt> or <tt>dnskey</tt> or both. If provided with only <tt>dnskey</tt>, a server MUST calculate the DS record.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsData.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsData", "readOnly": true },
        "records": {
          "type": "array",
          "items": { "$ref": "#/$defs/dnsRecord.read" }
        },
        "controls": { "$ref": "#/$defs/dnsControls.read" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsData.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsData" },
        "records": {
          "type": "array",
          "items": { "$ref": "#/$defs/dnsRecord.create" }
        },
        "controls": { "$ref": "#/$defs/dnsControls.create" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="authorisation-information-object"><name>Authorisation Information Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>method</tt> MUST be one of the values registered in the IANA RPP Authorization Method Registry as defined in <xref target="I-D.ietf-rpp-core"></xref>. In the EPP Compatibility Profile, this value MUST be &quot;authinfo&quot; for standard password-based authorisation.</li>
<li>The Authorisation Information Object is immutable. When authorisation information changes, a new instance MUST be created rather than modifying the existing one. The value of <tt>authdata</tt> MAY be omitted from read responses, depending on the method and server policy.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "authInfo.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "authInfo", "readOnly": true },
        "method": { "type": "string", "readOnly": true },
        "authdata": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "method", "authdata"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "authInfo.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "authInfo" },
        "method": { "type": "string", "writeOnly": true },
        "authdata": { "type": "string", "writeOnly": true }
      },
      "required": ["@type", "method", "authdata"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="disclose-object"><name>Disclose Object</name>
<t>The Disclose Object is used by the <tt>disclose</tt> data element of the Contact Data Object.</t>

<aside><t>TODO: The Disclose Object is not yet fully defined in the data model. The schema below is a placeholder.</t>
</aside>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "disclose.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "disclose", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="jscontact-card-object"><name>JSContact Card Object</name>
<t>The Contact Data Object uses version 2.0 of JSContact <xref target="RFC9982"></xref> to represent contact information. The <tt>Contact</tt> object is defined below according to the RPP JSContact Profile [TODO Add Ref].</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>addresses[*].countryCode</tt> MUST be a valid two-character ISO 3166-1 <xref target="ISO3166-1"></xref> alpha-2 code when present.</li>
<li><tt>localizations</tt> MUST be fully expanded; nested PatchObject-style keys (e.g., <tt>&quot;addresses/addr/full&quot;</tt>) are NOT allowed.</li>
<li>When <tt>phones[*].features</tt> is absent, the number MUST be treated as a voice number.</li>
</ul>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "Card": {
      "type": "object",
      "properties": {
        "@type":    { "type": "string", "const": "Card" },
        "version":  { "type": "string", "const": "2.0" },
        "kind":     { "type": "string", "enum": ["individual", "org"] },
        "language": { "type": "string" },
        "name": {
          "type": "object",
          "properties": {
            "full": { "type": "string" }
          }
        },
        "organizations": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "name": { "type": "string" }
            }
          }
        },
        "addresses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "full":        { "type": "string" },
              "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" },
              "components": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind":  { "type": "string", "enum": ["name", "locality", "region", "postcode"] },
                    "value": { "type": "string" }
                  },
                  "required": ["kind", "value"]
                }
              }
            }
          }
        },
        "phones": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "number":   { "type": "string" },
              "features": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              }
            },
            "required": ["number"]
          }
        },
        "emails": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "address": { "type": "string", "format": "email" }
            },
            "required": ["address"]
          }
        },
        "links": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "uri":  { "type": "string", "format": "uri" },
              "kind": { "type": "string", "const": "contact" }
            },
            "required": ["uri"]
          }
        },
        "localizations": { "type": "object" }
      },
      "required": ["@type", "version"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="restore-report-object"><name>Restore Report Object</name>
<t>The Restore Report Object contains the redemption grace period restore report submitted by the sponsoring client as required by the RGP process (<xref target="RFC3915"></xref>).</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li>At least one and at most two <tt>statements</tt> MUST be provided.</li>
<li><tt>restoreTime</tt> MAY be omitted when the restore report is submitted inline within the restore request in a single-step process.</li>
<li>In the EPP Compatibility Profile, <tt>restoreTime</tt> MUST be present as defined in <xref target="RFC3915"></xref>.</li>
<li>In the EPP Compatibility Profile, exactly two <tt>statements</tt> MUST be present as defined in <xref target="RFC3915"></xref>.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "restoreReport.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreReport", "readOnly": true },
        "preData": { "type": "string" },
        "postData": { "type": "string" },
        "deleteTime": { "type": "string", "format": "date-time" },
        "restoreTime": { "type": "string", "format": "date-time" },
        "restoreReason": { "type": "string" },
        "statements": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "maxItems": 2
        },
        "other": { "type": "string" }
      },
      "required": ["@type", "statements"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "restoreReport.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreReport" },
        "preData": { "type": "string" },
        "postData": { "type": "string" },
        "deleteTime": { "type": "string", "format": "date-time" },
        "restoreTime": { "type": "string", "format": "date-time" },
        "restoreReason": { "type": "string" },
        "statements": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "maxItems": 2
        },
        "other": { "type": "string" }
      },
      "required": ["@type", "statements"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="organisation-role-object"><name>Organisation Role Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>type</tt> MUST only use values registered in the IANA &quot;EPP Organization Role Values&quot; registry (<xref target="RFC8543"></xref>).</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationRole.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationRole", "readOnly": true },
        "roleId": { "type": "string" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/organisationRoleStatus.read" }
        }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Create schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationRole.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisationRole" },
        "roleId": { "type": "string" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/organisationRoleStatus.create" }
        }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="extension-object"><name>Extension Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>version</tt> MUST use the Semantic Versioning format.</li>
<li><tt>url</tt> MUST be a valid URL and accessible to the client.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "extension.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "extension", "readOnly": true },
        "name": { "type": "string", "readOnly": true },
        "id": { "type": "string", "readOnly": true },
        "version": { "type": "string", "readOnly": true },
        "url": { "type": "string", "format": "uri", "readOnly": true }
      },
      "required": ["@type", "name", "id", "version", "url"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="discovery"><name>Discovery</name>

<section anchor="version-object"><name>Version Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>version</tt> MUST use the Semantic Versioning format.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "discoveryVersion.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "discoveryVersion", "readOnly": true },
        "version": { "type": "string", "readOnly": true },
        "baseUrl": { "type": "string", "format": "uri", "readOnly": true }
      },
      "required": ["@type", "version", "baseUrl"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="environment-object"><name>Environment Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "discoveryEnvironment.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "discoveryEnvironment", "readOnly": true },
        "name": { "type": "string", "readOnly": true },
        "status": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "name", "status"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="idn-lgr-object"><name>IDN LGR Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>name</tt> MUST be a valid LGR name as listed in the <xref target="IDN-Tables"></xref> registry.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "discoveryIdnLgr.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "discoveryIdnLgr", "readOnly": true },
        "tld": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "readOnly": true
        },
        "name": { "type": "string", "readOnly": true },
        "url": { "type": "string", "format": "uri", "readOnly": true },
        "default": { "type": "boolean", "readOnly": true }
      },
      "required": ["@type", "tld", "name", "url", "default"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="notice-object"><name>Notice Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "discoveryNotice.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "discoveryNotice", "readOnly": true },
        "pubTime": { "type": "string", "format": "date-time", "readOnly": true },
        "text": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "pubTime", "text"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="processes-object"><name>Processes Object</name>
<t>The Processes Object is a read-only container grouping the currently active Process Objects on the owning resource object, keyed by process type. Each key holds an array of the corresponding Process Object's read representation, per the Aggregation rules.</t>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "processes.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "processes", "readOnly": true },
        "transferProcess": {
          "type": "array",
          "items": {
            "oneOf": [
              { "$ref": "#/$defs/transferProcess.reference" },
              { "$ref": "#/$defs/domainTransferProcess.reference" }
            ]
          },
          "readOnly": true
        },
        "renewProcess": {
          "type": "array",
          "items": { "$ref": "#/$defs/renewProcess.reference" },
          "readOnly": true
        },
        "restoreProcess": {
          "type": "array",
          "items": { "$ref": "#/$defs/restoreProcess.reference" },
          "readOnly": true
        },
        "createProcess": {
          "type": "array",
          "items": {
            "oneOf": [
              { "$ref": "#/$defs/createProcess.reference" },
              { "$ref": "#/$defs/domainCreateProcess.reference" }
            ]
          },
          "readOnly": true
        }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="availability-objects"><name>Availability</name>
<t>The Availability Objects are the output of the Availability operation. The Base Availability Object is extended by Data Object specific Availability Objects in order to allow independent extensibility.</t>

<section anchor="base-availability-object"><name>Base Availability Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>reason</tt> MUST only be present when <tt>available</tt> is <tt>false</tt>.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "baseAvailability.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "baseAvailability", "readOnly": true },
        "available": { "type": "boolean", "readOnly": true },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "available"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="domain-name-availability-object"><name>Domain Name Availability Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "domainNameAvailability.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainNameAvailability", "readOnly": true },
        "available": { "type": "boolean", "readOnly": true },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "available"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="contact-availability-object"><name>Contact Availability Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "contactAvailability.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contactAvailability", "readOnly": true },
        "available": { "type": "boolean", "readOnly": true },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "available"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="host-availability-object"><name>Host Availability Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "hostAvailability.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "hostAvailability", "readOnly": true },
        "available": { "type": "boolean", "readOnly": true },
        "reason": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "available"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="messages"><name>Messages</name>
<t>All message objects are generated by the server and are read-only from the perspective of the receiving client.</t>
<t>The Base Message Object is extended by all other message objects defined in this section. The JSON Schema of each message object repeats the data elements it inherits from the Base Message Object as top-level properties. The value of the <tt>@type</tt> property identifies the concrete message object and enables a client to determine which data elements to expect.</t>

<section anchor="base-message-object"><name>Base Message Object</name>
<t>The Base Message Object contains the data elements common to all message objects.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>objectType</tt> MUST only be used when <tt>objectId</tt> is present.</li>
<li><tt>objectId</tt> MUST be a valid unique identifier for the object type specified in <tt>objectType</tt> or empty when <tt>objectType</tt> is not present or empty.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "baseMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "baseMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="review-response-object"><name>Review Response Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "reviewResponseMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "reviewResponseMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "approved": { "type": "boolean", "readOnly": true },
        "clientTransactionId": { "type": "string", "readOnly": true },
        "serverTransactionId": { "type": "string", "readOnly": true },
        "completionDate": { "type": "string", "format": "date-time", "readOnly": true },
        "message": { "type": "string", "readOnly": true },
        "process": {
          "oneOf": [
            { "$ref": "#/$defs/transferProcess.read" },
            { "$ref": "#/$defs/domainTransferProcess.read" },
            { "$ref": "#/$defs/restoreProcess.read" },
            { "$ref": "#/$defs/renewProcess.read" },
            { "$ref": "#/$defs/createProcess.read" },
            { "$ref": "#/$defs/domainCreateProcess.read" }
          ],
          "readOnly": true
        }
      },
      "required": ["@type", "approved", "serverTransactionId", "completionDate", "message"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="transfer-request-message-object"><name>Transfer Request Message Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "transferRequestMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferRequestMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "status": { "type": "string", "enum": ["pending"], "readOnly": true },
        "requestDate": { "type": "string", "format": "date-time", "readOnly": true },
        "actionDate": { "type": "string", "format": "date-time", "readOnly": true },
        "process": {
          "oneOf": [
            { "$ref": "#/$defs/transferProcess.read" },
            { "$ref": "#/$defs/domainTransferProcess.read" }
          ],
          "readOnly": true
        }
      },
      "required": ["@type", "status", "requestDate"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="transfer-outcome-message-object"><name>Transfer Outcome Message Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "transferOutcomeMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferOutcomeMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "trStatus": {
          "type": "string",
          "enum": [
            "clientApproved",
            "clientCancelled",
            "clientRejected",
            "serverApproved",
            "serverCancelled"
          ],
          "readOnly": true
        },
        "requestDate": { "type": "string", "format": "date-time", "readOnly": true },
        "actionDate": { "type": "string", "format": "date-time", "readOnly": true },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true },
        "process": {
          "oneOf": [
            { "$ref": "#/$defs/transferProcess.read" },
            { "$ref": "#/$defs/domainTransferProcess.read" }
          ],
          "readOnly": true
        }
      },
      "required": ["@type", "trStatus", "requestDate", "actionDate"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="expiration-deletion-message-object"><name>Expiration Deletion Message Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "expirationDeletionMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "expirationDeletionMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "deletionDate": { "type": "string", "format": "date-time", "readOnly": true }
      },
      "required": ["@type", "deletionDate"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="auto-renewal-message-object"><name>Auto-Renewal Message Object</name>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "autoRenewalMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "autoRenewalMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "renewalDate": { "type": "string", "format": "date-time", "readOnly": true },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true }
      },
      "required": ["@type", "renewalDate", "expiryDate"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="service-notice-message-object"><name>Service Notice Message Object</name>
<t>The Service Notice Message Object extends the Base Message Object. It is not linked to a specific object or process, so <tt>objectType</tt>, <tt>objectId</tt> and <tt>process</tt> are normally absent.</t>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "serviceNoticeMessage.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "serviceNoticeMessage", "readOnly": true },
        "objectType": { "type": "string", "readOnly": true },
        "objectId": { "type": "string", "readOnly": true },
        "message": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "message"]
    }
  }
}
]]></sourcecode>
</section>
</section>
</section>

<section anchor="process-object-schemas"><name>Process Object Schemas</name>

<section anchor="base-process-object"><name>Base Process Object</name>
<t>The Base Process Object is extended by all Process Objects, which repeat its data elements as top-level properties.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>processId</tt> MUST be unique within the scope of the owning resource object.</li>
</ul>
<t>Read schema:</t>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "baseProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "baseProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="create-process-object"><name>Create Process Object</name>
<t>The Create Process Object is extended by object-specific create processes and is submitted only within the <tt>processes</tt> data element of the owning resource object's create request.</t>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/createProcess.create",
  "$defs": {
    "createProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "createProcess" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Read response schema (read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/createProcess.read",
  "$defs": {
    "createProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "createProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/createProcess.reference",
  "$defs": {
    "createProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "createProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="renew-process-object"><name>Renew Process Object</name>
<t>Renew request schema (create-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/renewProcess.create",
  "$defs": {
    "renewProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "renewProcess" },
        "expiryDate": { "type": "string", "format": "date-time", "writeOnly": true },
        "renewalPeriod": { "$ref": "#/$defs/period.create", "writeOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Renew response schema (read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/renewProcess.read",
  "$defs": {
    "renewProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "renewProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true },
        "renewalPeriod": { "$ref": "#/$defs/period.read", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/renewProcess.reference",
  "$defs": {
    "renewProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "renewProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="transfer-process-object"><name>Transfer Process Object</name>

<section anchor="create"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/transferProcess.create",
  "$defs": {
    "transferProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferProcess" },
        "transferDir": { "type": "string", "enum": ["pull", "push"], "writeOnly": true },
        "gainingClientId": { "$ref": "#/$defs/clientIdentifier", "writeOnly": true }
      },
      "required": ["@type"],
      "allOf": [
        {
          "if": {
            "properties": {
              "transferDir": { "const": "push" }
            },
            "required": ["transferDir"]
          },
          "then": { "required": ["gainingClientId"] }
        },
        {
          "if": {
            "properties": {
              "transferDir": { "const": "pull" }
            },
            "required": ["transferDir"]
          },
          "then": {
            "not": { "required": ["gainingClientId"] }
          }
        }
      ]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/transferProcess.read",
  "$defs": {
    "transferProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true },
        "transferDir": { "type": "string", "enum": ["pull", "push"], "readOnly": true },
        "gainingClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "trStatus": {
          "type": "string",
          "enum": [
            "pending",
            "clientApproved",
            "clientCancelled",
            "clientRejected",
            "serverApproved",
            "serverCancelled"
          ],
          "readOnly": true
        },
        "reqClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "requestDate": { "type": "string", "format": "date-time", "readOnly": true },
        "actClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "actionDate": { "type": "string", "format": "date-time", "readOnly": true }
      },
      "required": ["@type", "trStatus", "reqClientId", "requestDate", "actClientId", "actionDate"],
      "allOf": [
        {
          "if": {
            "properties": {
              "transferDir": { "const": "push" }
            },
            "required": ["transferDir"]
          },
          "then": { "required": ["gainingClientId"] }
        },
        {
          "if": {
            "properties": {
              "transferDir": { "const": "pull" }
            },
            "required": ["transferDir"]
          },
          "then": {
            "not": { "required": ["gainingClientId"] }
          }
        }
      ]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="approve"><name>Approve</name>
<t>The Approve operation MUST always have a request body, which may be an empty JSON object. The server can identify the transfer process to be approved based on the request URL and the authenticated client's permissions. There is no Approve request schema defined in this specification.</t>
<t>The Approve response schema MUST equal the read response schema.</t>
</section>

<section anchor="cancel"><name>Cancel</name>
<t>The Cancel operation, which is similar to a delete operation, has no request body, the server can identify the transfer process to be cancelled based on the request URL and the authenticated client's permissions. Because the Cancel operation has no request body, it is not possible to extend the request schema with additional properties.</t>
<t>The Cancel response schema MUST equal the read response schema or an empty response.</t>
</section>

<section anchor="reject"><name>Reject</name>
<t>Reject request schema:</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/transferProcess.transferReject",
  "$defs": {
    "transferProcess.transferReject": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferProcess" },
        "reason": { "type": "string" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Reject response schema MUST equal the read response schema.</t>
</section>

<section anchor="reference"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/transferProcess.reference",
  "$defs": {
    "transferProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "transferProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="restore-process-object"><name>Restore Process Object</name>
<t>The Restore Process Object represents the current state of a restore request for an object that has entered the Redemption Grace Period (RGP). It is returned as a response for all restore operations.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>requestDate</tt> MUST NOT be present if no restore request has been submitted yet.</li>
<li><tt>reportDate</tt> MUST NOT be present if no restore report has been accepted yet.</li>
<li><tt>reportDueDate</tt> MUST NOT be present when <tt>restoreStatus</tt> is not <tt>&quot;pendingRestore&quot;</tt>.</li>
</ul>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/restoreProcess.create",
  "$defs": {
    "restoreProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreProcess" },
        "restoreReport": { "$ref": "#/$defs/restoreReport.create" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/restoreProcess.read",
  "$defs": {
    "restoreProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true },
        "restoreStatus": {
          "type": "string",
          "enum": ["pendingRestore", "restored", "rgpPendingDelete"],
          "readOnly": true
        },
        "requestDate": { "type": "string", "format": "date-time", "readOnly": true },
        "reportDate": { "type": "string", "format": "date-time", "readOnly": true },
        "reportDueDate": { "type": "string", "format": "date-time", "readOnly": true },
        "restoreReport": { "$ref": "#/$defs/restoreReport.read" }
      },
      "required": ["@type", "restoreStatus"]
    }
  }
}
]]></sourcecode>
<t>The Update request applies only to servers that support or require submission of a restore report.</t>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/restoreProcess.update",
  "$defs": {
    "restoreProcess.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreProcess" },
        "restoreReport": { "$ref": "#/$defs/restoreReport.create" }
      },
      "required": ["@type", "restoreReport"]
    }
  }
}
]]></sourcecode>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/restoreProcess.reference",
  "$defs": {
    "restoreProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "restoreProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="domain-name-data-object"><name>Domain Name Data Object</name>
<t>The Domain Name Data Object represents a domain name and its associated provisioning data.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>name</tt> MUST be a fully qualified domain name conforming to the syntax described in <xref target="RFC1035"></xref>. Servers MAY restrict allowable domain names to a specific namespace for which they are authoritative. The implicit trailing dot MUST NOT be included.</li>
<li><tt>name</tt> MUST use the ASCII Compatible Encoding (ACE) A-label form when the domain name is internationalised, as defined in <xref target="RFC5890"></xref>.</li>
<li><tt>uName</tt>, when present, MUST be normalised to Unicode Normalization Form C (NFC) as defined in <xref target="UNICODE.NFC"></xref>, and MUST convert to the exact value of <tt>name</tt> using the procedure described in <xref target="RFC5891" sectionFormat="bare" section="Section 4.4"></xref>.</li>
<li><tt>lgr</tt>, when present, MUST identify a valid Label Generation Ruleset (LGR) registered in the <xref target="IDN-Tables"></xref> registry, and MUST be present whenever <tt>uName</tt> is present.</li>
</ul>

<section anchor="availability"><name>Availability</name>
<t>The response of the Availability operation is the Domain Name Availability Object, see <xref target="domain-name-availability-object"></xref>.</t>
</section>

<section anchor="create-1"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainName.create",
  "$defs": {
    "domainName.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName" },
        "name": { "type": "string", "format": "hostname", "writeOnly": true },
        "uName": { "type": "string", "writeOnly": true },
        "lgr": { "type": "string", "writeOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/domainStatus.create" }
        },
        "registrant": { "$ref": "#/$defs/contact.reference" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/host.reference" }
        },
        "dns": { "$ref": "#/$defs/dnsData.create" },
        "authInfo": { "$ref": "#/$defs/authInfo.create" },
        "processes": {
          "type": "object",
          "properties": {
            "@type": { "type": "string", "const": "processes" },
            "createProcess": {
              "type": "array",
              "items": { "$ref": "#/$defs/domainCreateProcess.create" }
            }
          },
          "required": ["@type"]
        }
      },
      "required": ["@type", "name"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="create-process"><name>Create Process</name>
<t>The Domain Create Process Object extends the Create Process Object and is submitted only within the <tt>processes</tt> data element of the Domain Name create request.</t>
<t>Create request for Domain Create Process Object schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainCreateProcess.create",
  "$defs": {
    "domainCreateProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainCreateProcess" },
        "period": { "$ref": "#/$defs/period.create", "writeOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Read response for Domain Create Process Object schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainCreateProcess.read",
  "$defs": {
    "domainCreateProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainCreateProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true },
        "period": { "$ref": "#/$defs/period.read", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Reference for Domain Create Process Object schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainCreateProcess.reference",
  "$defs": {
    "domainCreateProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainCreateProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-1"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainName.read",
  "$defs": {
    "domainName.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName", "readOnly": true },
        "name": { "type": "string", "format": "hostname", "readOnly": true },
        "uName": { "type": "string", "readOnly": true },
        "lgr": { "type": "string", "readOnly": true },
        "provMetadata": { "$ref": "#/$defs/provMetadata.read", "readOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/domainStatus.read" },
          "minItems": 1
        },
        "registrant": { "$ref": "#/$defs/contact.reference" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/host.reference" }
        },
        "dns": { "$ref": "#/$defs/dnsData.read" },
        "subordinateHosts": {
          "type": "array",
          "items": { "$ref": "#/$defs/host.reference" },
          "readOnly": true
        },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true },
        "authInfo": { "$ref": "#/$defs/authInfo.read" },
        "processes": { "$ref": "#/$defs/processes.read", "readOnly": true }
      },
      "required": ["@type", "name", "provMetadata", "status"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="update"><name>Update</name>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainName.update",
  "$defs": {
    "domainName.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/domainStatus.create" }
        },
        "registrant": { "$ref": "#/$defs/contact.reference" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/host.reference" }
        },
        "dns": { "$ref": "#/$defs/dnsData.create" },
        "authInfo": { "$ref": "#/$defs/authInfo.create" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="transfer"><name>Transfer</name>
<t>Create request for Domain Transfer Process Object schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainTransferProcess.create",
  "$defs": {
    "domainTransferProcess.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainTransferProcess" },
        "transferDir": { "type": "string", "enum": ["pull", "push"], "writeOnly": true },
        "gainingClientId": { "$ref": "#/$defs/clientIdentifier", "writeOnly": true },
        "transferPeriod": { "$ref": "#/$defs/period.create", "writeOnly": true }
      },
      "required": ["@type"],
      "allOf": [
        {
          "if": {
            "properties": {
              "transferDir": { "const": "push" }
            },
            "required": ["transferDir"]
          },
          "then": { "required": ["gainingClientId"] }
        },
        {
          "if": {
            "properties": {
              "transferDir": { "const": "pull" }
            },
            "required": ["transferDir"]
          },
          "then": {
            "not": { "required": ["gainingClientId"] }
          }
        }
      ]
    }
  }
}
]]></sourcecode>
<t>Read response for Domain Transfer Process Object schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainTransferProcess.read",
  "$defs": {
    "domainTransferProcess.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainTransferProcess", "readOnly": true },
        "processId": { "type": "string", "readOnly": true },
        "transferDir": { "type": "string", "enum": ["pull", "push"], "readOnly": true },
        "gainingClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "trStatus": {
          "type": "string",
          "enum": [
            "pending",
            "clientApproved",
            "clientCancelled",
            "clientRejected",
            "serverApproved",
            "serverCancelled"
          ],
          "readOnly": true
        },
        "reqClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "requestDate": { "type": "string", "format": "date-time", "readOnly": true },
        "actClientId": { "$ref": "#/$defs/clientIdentifier", "readOnly": true },
        "actionDate": { "type": "string", "format": "date-time", "readOnly": true },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true },
        "transferPeriod": { "$ref": "#/$defs/period.read", "readOnly": true }
      },
      "required": ["@type", "trStatus", "reqClientId", "requestDate", "actClientId", "actionDate"],
      "allOf": [
        {
          "if": {
            "properties": {
              "transferDir": { "const": "push" }
            },
            "required": ["transferDir"]
          },
          "then": { "required": ["gainingClientId"] }
        },
        {
          "if": {
            "properties": {
              "transferDir": { "const": "pull" }
            },
            "required": ["transferDir"]
          },
          "then": {
            "not": { "required": ["gainingClientId"] }
          }
        }
      ]
    }
  }
}
]]></sourcecode>
<t>Both Approve and Delete (Cancel) operations have no request body, the server can identify the transfer process to be approved or cancelled based on the request URL and the authenticated client's permissions.</t>
<t>Approve and Delete response schemas are the <tt>read</tt> schema of <tt>domainTransferProcess</tt>.</t>
<t>Reject request Domain Object schema:</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainTransferProcess.transferReject",
  "$defs": {
    "domainTransferProcess.transferReject": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainTransferProcess" },
        "reason": { "type": "string" }
      },
      "required": ["@type"]
    }
  }
}
]]></sourcecode>
<t>Reject response schema is the <tt>read</tt> schema of <tt>domainTransferProcess</tt>.</t>
<t>Reference for Domain Transfer Process Object schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainTransferProcess.reference",
  "$defs": {
    "domainTransferProcess.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainTransferProcess" },
        "processId": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "processId"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-1"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/domainName.reference",
  "$defs": {
    "domainName.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName" },
        "name": { "type": "string", "format": "hostname" }
      },
      "required": ["@type", "name"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="contact-data-object"><name>Contact Data Object</name>
<t>This document uses version 2.0 of JSContact <xref target="RFC9982"></xref> for the JSON representation of Contact Data Object contact information. The contact's name, postal address, phone numbers, email addresses, and other contact details are encapsulated in a JSContact <tt>Card</tt> object embedded in the <tt>contactInfo</tt> property.</t>

<section anchor="jscontact-profile-for-rpp"><name>JSContact Profile for RPP</name>
<t>Since JSContact is a general-purpose representation of contact data, this document defines a restricted usage profile for use within RPP, see [TODO: ref to RPP JSContact profile here: <eref target="https://github.com/SIDN/ietf-rpp-jscontact-profile">https://github.com/SIDN/ietf-rpp-jscontact-profile</eref>].</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>card.name.full</tt> MUST be provided in the EPP Compatibility Profile.</li>
<li><tt>card.addresses.addr</tt> MUST be provided in the EPP Compatibility Profile, containing at least <tt>countryCode</tt> and a <tt>&quot;locality&quot;</tt> kind component.</li>
<li><tt>card.emails.email.address</tt> MUST be provided in the EPP Compatibility Profile.</li>
<li><tt>card.addresses[*].countryCode</tt> MUST be a valid two-character ISO 3166-1 <xref target="ISO3166-1"></xref> alpha-2 code when present.</li>
</ul>
</section>

<section anchor="availability-1"><name>Availability</name>
<t>The response of the Availability operation is the Contact Availability Object, see <xref target="contact-availability-object"></xref>.</t>
</section>

<section anchor="create-2"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/contact.create",
  "$defs": {
    "contact.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contact" },
        "id": { "$ref": "#/$defs/identifier", "writeOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/contactStatus.create" }
        },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo.create" },
        "disclose": { "$ref": "#/$defs/disclose.read" }
      },
      "required": ["@type", "id", "contactInfo"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-2"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/contact.read",
  "$defs": {
    "contact.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contact", "readOnly": true },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true },
        "provMetadata": { "$ref": "#/$defs/provMetadata.read", "readOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/contactStatus.read" },
          "minItems": 1
        },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo.read" },
        "disclose": { "$ref": "#/$defs/disclose.read" },
        "processes": { "$ref": "#/$defs/processes.read", "readOnly": true }
      },
      "required": ["@type", "id", "provMetadata", "status", "contactInfo"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="update-1"><name>Update</name>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/contact.update",
  "$defs": {
    "contact.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contact" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/contactStatus.create" }
        },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo.create" },
        "disclose": { "$ref": "#/$defs/disclose.read" }
      },
      "required": ["@type", "contactInfo"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-2"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/contact.reference",
  "$defs": {
    "contact.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "contact" },
        "id": { "$ref": "#/$defs/identifier" }
      },
      "required": ["@type", "id"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="host-data-object"><name>Host Data Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>hostName</tt> MUST be a syntactically valid fully qualified host name.</li>
<li>If the host name is subordinate to a domain for which the server is authoritative, the superordinate domain MUST already exist in the server.</li>
</ul>

<section anchor="availability-2"><name>Availability</name>
<t>The response of the Availability operation is the Host Availability Object, see <xref target="host-availability-object"></xref>.</t>
</section>

<section anchor="create-3"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/host.create",
  "$defs": {
    "host.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "host" },
        "hostName": { "type": "string", "format": "hostname" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostStatus.create" }
        },
        "dns": { "$ref": "#/$defs/dnsData.create" }
      },
      "required": ["@type", "hostName"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-3"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/host.read",
  "$defs": {
    "host.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "host", "readOnly": true },
        "hostName": { "type": "string", "format": "hostname" },
        "provMetadata": { "$ref": "#/$defs/provMetadata.read", "readOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostStatus.read" },
          "minItems": 1
        },
        "dns": { "$ref": "#/$defs/dnsData.read" },
        "processes": { "$ref": "#/$defs/processes.read", "readOnly": true }
      },
      "required": ["@type", "hostName", "provMetadata", "status"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="update-2"><name>Update</name>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/host.update",
  "$defs": {
    "host.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "host" },
        "hostName": { "type": "string", "format": "hostname" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostStatus.create" }
        },
        "dns": { "$ref": "#/$defs/dnsData.create" }
      },
      "required": ["@type", "hostName"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-3"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/host.reference",
  "$defs": {
    "host.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "host" },
        "hostName": { "type": "string", "format": "hostname" }
      },
      "required": ["@type", "hostName"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="organisation-data-object"><name>Organisation Data Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>id</tt> MUST be a server-unique identifier conforming to the Identifier syntax.</li>
<li><tt>status</tt> MUST always contain at least one value. <tt>pendingCreate</tt>, <tt>ok</tt>, <tt>hold</tt>, and <tt>terminated</tt> are mutually exclusive. <tt>ok</tt> MAY only be combined with <tt>linked</tt>.</li>
<li><tt>parent</tt>, if present, MUST reference a known Organisation Object. Circular parent references MUST be rejected.</li>
<li><tt>contacts</tt> keys MUST be contact type values registered in the IANA &quot;EPP Organisation Contact Types&quot; registry (<xref target="RFC8543"></xref>).</li>
</ul>

<section anchor="create-4"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/organisation.create",
  "$defs": {
    "organisation.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisation" },
        "id": { "$ref": "#/$defs/identifier", "writeOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/organisationStatus.create" }
        },
        "roles": {
          "type": "object",
          "additionalProperties": { "$ref": "#/$defs/organisationRole.create" },
          "minProperties": 1
        },
        "parent": { "$ref": "#/$defs/organisation.reference" },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "users": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/user.reference" }
            },
            "required": ["label", "object"]
          }
        }
      },
      "required": ["@type", "id", "roles"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-4"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/organisation.read",
  "$defs": {
    "organisation.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisation", "readOnly": true },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true },
        "provMetadata": { "$ref": "#/$defs/provMetadata.read", "readOnly": true },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/organisationStatus.read" },
          "minItems": 1
        },
        "roles": {
          "type": "object",
          "additionalProperties": { "$ref": "#/$defs/organisationRole.read" },
          "minProperties": 1
        },
        "parent": { "$ref": "#/$defs/organisation.reference" },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "users": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/user.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "processes": { "$ref": "#/$defs/processes.read", "readOnly": true }
      },
      "required": ["@type", "id", "provMetadata", "status", "roles"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="update-3"><name>Update</name>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/organisation.update",
  "$defs": {
    "organisation.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisation" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/organisationStatus.create" }
        },
        "roles": {
          "type": "object",
          "additionalProperties": { "$ref": "#/$defs/organisationRole.create" },
          "minProperties": 1
        },
        "parent": { "$ref": "#/$defs/organisation.reference" },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "contacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contact.reference" }
            },
            "required": ["label", "object"]
          }
        },
        "users": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/user.reference" }
            },
            "required": ["label", "object"]
          }
        }
      },
      "required": ["@type", "roles"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-4"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/organisation.reference",
  "$defs": {
    "organisation.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisation" },
        "id": { "$ref": "#/$defs/identifier" }
      },
      "required": ["@type", "id"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="message-data-object"><name>Message Data Object</name>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>data</tt> is polymorphic: it MUST contain an instance of a message object that directly or indirectly extends the Base Message Object. The concrete message object is identified by the <tt>@type</tt> of the value used for the <tt>data</tt> property.</li>
</ul>

<section anchor="create-5"><name>Create</name>
<t>Create request schema. Only the server is authorised to create Message Data Objects, so the representation also carries the server-managed data elements <tt>id</tt>, <tt>creationDate</tt> and <tt>status</tt>.</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/message.create",
  "$defs": {
    "message.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "message" },
        "data": {
          "oneOf": [
            { "$ref": "#/$defs/reviewResponseMessage.read" },
            { "$ref": "#/$defs/transferRequestMessage.read" },
            { "$ref": "#/$defs/transferOutcomeMessage.read" },
            { "$ref": "#/$defs/expirationDeletionMessage.read" },
            { "$ref": "#/$defs/autoRenewalMessage.read" },
            { "$ref": "#/$defs/serviceNoticeMessage.read" }
          ],
          "writeOnly": true
        }
      },
      "required": ["@type", "data"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-5"><name>Read</name>
<t>Read response schema (read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/message.read",
  "$defs": {
    "message.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "message", "readOnly": true },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true },
        "creationDate": { "type": "string", "format": "date-time", "readOnly": true },
        "status": { "type": "string", "enum": ["queued", "delivered", "removed"], "readOnly": true },
        "data": {
          "oneOf": [
            { "$ref": "#/$defs/reviewResponseMessage.read" },
            { "$ref": "#/$defs/transferRequestMessage.read" },
            { "$ref": "#/$defs/transferOutcomeMessage.read" },
            { "$ref": "#/$defs/expirationDeletionMessage.read" },
            { "$ref": "#/$defs/autoRenewalMessage.read" },
            { "$ref": "#/$defs/serviceNoticeMessage.read" }
          ],
          "readOnly": true
        }
      },
      "required": ["@type", "id", "creationDate", "status", "data"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="query"><name>Query</name>
<t>Query response schema (array of message read representations):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/message.query",
  "$defs": {
    "message.query": {
      "type": "array",
      "items": { "$ref": "#/$defs/message.read" }
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-5"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/message.reference",
  "$defs": {
    "message.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "message" },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true }
      },
      "required": ["@type", "id"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="user-data-object"><name>User Data Object</name>
<t>The User Data Object represents a user linked to an Organisation Object. The lifecycle of a User Object is bound to its owning Organisation Object.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:
- The <tt>&quot;status&quot;</tt> array MUST contain exactly one of the labels <tt>&quot;active&quot;</tt>, <tt>&quot;pending&quot;</tt>, <tt>&quot;suspended&quot;</tt>, or <tt>&quot;deactivated&quot;</tt>.</t>

<section anchor="create-6"><name>Create</name>
<t>Create request schema (create-only and read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/user.create",
  "$defs": {
    "user.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "user" },
        "id": { "$ref": "#/$defs/identifier", "writeOnly": true },
        "details": { "$ref": "#/$defs/Card" },
        "description": { "type": "string" },
        "status": { "$ref": "#/$defs/userStatus.create" }
      },
      "required": ["@type", "id", "details"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="read-6"><name>Read</name>
<t>Read response schema (read-write and read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/user.read",
  "$defs": {
    "user.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "user", "readOnly": true },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true },
        "details": { "$ref": "#/$defs/Card" },
        "description": { "type": "string" },
        "status": { "$ref": "#/$defs/userStatus.read" },
        "organisation": { "$ref": "#/$defs/organisation.reference", "readOnly": true },
        "processes": { "$ref": "#/$defs/processes.read", "readOnly": true }
      },
      "required": ["@type", "id", "details", "status", "organisation"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="update-4"><name>Update</name>
<t>Update request schema (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/user.update",
  "$defs": {
    "user.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "user" },
        "details": { "$ref": "#/$defs/Card" },
        "description": { "type": "string" },
        "status": { "$ref": "#/$defs/userStatus.create" }
      },
      "required": ["@type", "details"]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-6"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/user.reference",
  "$defs": {
    "user.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "user" },
        "id": { "$ref": "#/$defs/identifier" }
      },
      "required": ["@type", "id"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="discovery-data-object"><name>Discovery Data Object</name>
<t>The Discovery Data Object describes the capabilities of an RPP server. The server provides a single Discovery Data Object, which has no Unique Identifier. All data elements are read-only, and the only supported operation is Read.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>datetime</tt> MUST be expressed in UTC using the <tt>Z</tt> suffix and MUST NOT use a numeric UTC offset.</li>
<li>Each <tt>object</tt> value in <tt>links</tt> MUST be an absolute URL using the HTTPS scheme, and the document MUST be accessible to the client without authentication.</li>
<li>Each <tt>label</tt> in <tt>links</tt> MUST be a link relation type registered in the IANA &quot;Link Relation Types&quot; registry.</li>
<li>Each value in <tt>objects</tt> MUST be a valid object identifier as defined in the RPP Data Object Registry.</li>
</ul>

<section anchor="read-7"><name>Read</name>
<t>Read response schema (read-only properties).</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/discovery.read",
  "$defs": {
    "discovery.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "discovery", "readOnly": true },
        "versions": {
          "type": "array",
          "items": { "$ref": "#/$defs/discoveryVersion.read" },
          "minItems": 1,
          "readOnly": true
        },
        "environment": { "$ref": "#/$defs/discoveryEnvironment.read", "readOnly": true },
        "tlds": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "readOnly": true
        },
        "extensions": {
          "type": "array",
          "items": { "$ref": "#/$defs/extension.read" },
          "readOnly": true
        },
        "profiles": {
          "type": "array",
          "items": { "type": "string" },
          "readOnly": true
        },
        "objects": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "readOnly": true
        },
        "datetime": { "type": "string", "format": "date-time", "readOnly": true },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "type": "string" }
            },
            "required": ["label", "object"]
          },
          "readOnly": true
        },
        "idnLgr": {
          "type": "array",
          "items": { "$ref": "#/$defs/discoveryIdnLgr.read" },
          "readOnly": true
        },
        "notices": {
          "type": "array",
          "items": { "$ref": "#/$defs/discoveryNotice.read" },
          "readOnly": true
        }
      },
      "required": ["@type", "versions", "environment", "tlds", "objects", "datetime"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="profile-data-object"><name>Profile Data Object</name>
<t>The Profile Data Object represents a named set of protocol features and versions published by the server. All data elements are read-only, and the only supported operation is Read.</t>
<t>The following constraints cannot be expressed in JSON Schema and MUST be enforced by implementations:</t>

<ul spacing="compact">
<li><tt>name</tt> of a standard profile MUST use the RPP URN namespace, for example <tt>urn:ietf:params:rpp:profile:{profile_name}</tt>. The <tt>name</tt> of a private profile MUST be globally unique, the use of reverse domain name notation is RECOMMENDED.</li>
<li>A profile MUST NOT list the same extension name more than once, and the server MUST support all extensions listed in the profile.</li>
<li>The profile referenced by <tt>baseProfile</tt> MUST NOT itself have a <tt>baseProfile</tt>, and a profile MUST NOT be its own base profile.</li>
<li>Only one profile MUST have <tt>defaultProfile</tt> set to <tt>true</tt>.</li>
</ul>

<section anchor="read-8"><name>Read</name>
<t>Read response schema (read-only properties):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/profile.read",
  "$defs": {
    "profile.read": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "profile", "readOnly": true },
        "name": { "type": "string", "readOnly": true },
        "description": { "type": "string", "readOnly": true },
        "version": { "type": "string", "readOnly": true },
        "rppVersion": { "type": "string", "readOnly": true },
        "objects": {
          "type": "array",
          "items": { "type": "string" },
          "minItems": 1,
          "readOnly": true
        },
        "extensions": {
          "type": "array",
          "items": { "$ref": "#/$defs/extension.read" },
          "readOnly": true
        },
        "baseProfile": { "$ref": "#/$defs/profile.reference", "readOnly": true },
        "defaultProfile": { "type": "boolean", "readOnly": true }
      },
      "required": [
        "@type",
        "name",
        "description",
        "version",
        "rppVersion",
        "objects",
        "defaultProfile"
      ]
    }
  }
}
]]></sourcecode>
</section>

<section anchor="reference-7"><name>Reference</name>
<t>Reference schema (identifier only):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/profile.reference",
  "$defs": {
    "profile.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "profile" },
        "name": { "type": "string", "readOnly": true }
      },
      "required": ["@type", "name"]
    }
  }
}
]]></sourcecode>
</section>
</section>
</section>

<section anchor="extension-framework"><name>Extension Framework</name>
<t>Extensions MUST employ an additive schema composition method, allowing new optional or required properties to be added to an existing base object schema. New properties MUST not conflict with existing definitions and MUST NOT redefine existing properties from the base schema.</t>

<aside><t>TODO: the rule above needs revision - extending enum
list won't be possible this way</t>
</aside>
<t>To support multiple extensions, a mechanism for mapping extensions to their respective base objects is defined using the <tt>rpp:extends</tt> property within the extension schema.</t>
<t>Extensions SHOULD be independent of one another, meaning that an extension should not rely on the presence of another extension to function correctly. This ensures modularity and reduces the risk of conflicts between extensions.</t>
<t>An extension schema MUST define a unique identifier using a top-level <tt>$id</tt> to ensure that references to the schema are unambiguous and correctly resolved. For IETF standardised extensions, using a stable and unique URI as the <tt>$id</tt> is RECOMMENDED.</t>
<t>An IANA registry for RPP JSON extensions is requested in this document, standardised JSON extensions SHALL be registered in this registry. Ensuring that each extension has a unique and stable identifier that can be referenced reliably across different implementations. This also promotes the reuse of common extensions and reduces duplication of effort.</t>
<t>It is RECOMMENDED to use the prefix &quot;ext.&quot; for every extension sub-schema defined, for example <tt>#/$defs/ext.domainFoo</tt>.</t>
<t><strong>TODO</strong> what objects are eligible for extensions?</t>

<section anchor="extension-mapping"><name>Extension Mapping</name>
<t>Each extension MUST define a mapping to every base object it applies to, this is done by using a special <tt>rpp:extends</tt> property within the extension schema. For example, this mapping where the base object <tt>https://rpp.example/rpp/schema.json#/$defs/domainName.create</tt> is extended by the local definition <tt>#/$defs/ext.domainFoo</tt>:</t>

<sourcecode type="json"><![CDATA[{
  "rpp:extends": {
    "https://rpp.example/rpp/schema.json#/$defs/domainName.create":
      "#/$defs/ext.domainFoo"
  }
}
]]></sourcecode>
</section>

<section anchor="effective-schema"><name>Effective Schema</name>
<t>Extensions are additive and independent, the effective schema for a base object MUST account for all applicable extensions to ensure that a validator can determine whether an object fully conforms to the combined set of constraints. When one or more extensions are applied to a base object, the effective schema for that object is obtained by composing the base object's schema with the schemas contributed by each extension using the <tt>allOf</tt> keyword, the server uses the <tt>rpp:extends</tt> metadata property to resolve the mapping between the base object and its extensions correctly.</t>
<t>The resulting schema is a self-contained schema that includes everything from both the base specification and the extensions, allowing clients to validate objects against a single comprehensive schema.</t>
<t>The following is an example of an extension JSON Schema, which adds new properties to both the domain and contact base objects:</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rpp.example/schemas/extension1.json",

  "rpp:extends": {
    "https://rpp.example/rpp/schema.json#/$defs/domainName.create":
      "#/$defs/ext.domain",

    "https://rpp.example/rpp/schema.json#/$defs/contact.create":
      "#/$defs/ext.contact"
  },

  "$defs": {
    "ext.domain": {
      "type": "object",
      "properties": {
        "foo": { "type": "string" },
        "bar": { "type": "boolean" }
      },
      "required": ["foo"]
    },

    "ext.contact": {
      "type": "object",
      "properties": {
        "fooContact": { "type": "string" }
      }
    }
  }
}
]]></sourcecode>
<t>The effective schema is a distinct schema resource from the base schema it composes and therefore MUST be assigned its own <tt>$id</tt>, different from the <tt>$id</tt> of the base schema and of any other effective schema, to avoid ambiguous or circular references. It is RECOMMENDED to use the prefix &quot;effective.&quot; for every effective sub-schema defined, for example <tt>#/$defs/effective.domainFoo</tt>.</t>
<t>Domain Name effective schema, which includes the full schema of the base domain object along with any applicable extensions:</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rpp.example/rpp/effective/domain.json",

  "$ref": "#/$defs/effective.domainName.create",
  "$defs": {
    "effective.domainName.create": {
      "allOf": [
        {
          "$ref": "https://rpp.example/rpp/schema.json#/$defs/domainName.create"
        },
        {
          "$ref": "#/$defs/ext.domain"
        }
      ]
    },

    "ext.domain": {
      "type": "object",
      "properties": {
        "foo": {
          "type": "string"
        }
      },
      "required": ["foo"]
    }
  }
}
]]></sourcecode>
</section>
</section>

<section anchor="examples-1"><name>Examples</name>
<t>This section provides examples that follow the JSON representation rules and JSON Schema definitions specified in the previous sections. The examples illustrate typical request and response messages for the RPP Data Objects defined in <xref target="I-D.ietf-rpp-data-objects"></xref>.</t>

<section anchor="domain-name"><name>Domain Name</name>

<section anchor="availability-3"><name>Availability</name>
<t>Example domain availability response for a domain name that can be created:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainNameAvailability",
    "available": true
}
]]></sourcecode>
<t>Example domain availability response for a domain name that cannot be created:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainNameAvailability",
    "available": false,
    "reason": "In use"
}
]]></sourcecode>
</section>

<section anchor="create-7"><name>Create</name>
<t>Example domain create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "nameservers": [
        { "@type": "host", "hostName": "ns1.example.example" },
        { "@type": "host", "hostName": "ns2.example.example" }
    ],
    "registrant": { "@type": "contact", "id": "JD-1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "SH-8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "SH-8013" } }
    ],
    "authInfo": {
        "@type": "authInfo",
        "method": "authinfo",
        "authdata": "2fooBAR"
    },
    "processes": {
        "@type": "processes",
        "createProcess": [
            {
                "@type": "domainCreateProcess",
                "period": {
                    "@type": "period",
                    "value": 2,
                    "unit": "y"
                }
            }
        ]
    }
}
]]></sourcecode>
<t>Example domain create response from a server with RGP support:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "EXAMPLE1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "domainStatus", "label": "ok" },
        { "@type": "domainStatus", "label": "rgpAddPeriod" }
    ],
    "expiryDate": "2001-04-03T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="create-process-data"><name>Create Process Data</name>
<t>Example Create Process Object without object-specific create inputs, as returned in a read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "createProcess",
    "processId": "CRT-1002"
}
]]></sourcecode>
<t>Example Create Process Object for a two-year domain registration period, as embedded above in <tt>processes.createProcess</tt>:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainCreateProcess",
    "period": {
        "@type": "period",
        "value": 2,
        "unit": "y"
    }
}
]]></sourcecode>
</section>

<section anchor="read-9"><name>Read</name>
<t>Example domain read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "EXAMPLE1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientY",
        "crDate": "1999-04-03T22:00:00.0Z",
        "upClientId": "ClientX",
        "upDate": "1999-12-03T09:00:00.0Z",
        "trDate": "2000-04-08T09:00:00.0Z"
    },
    "status": [
        { "@type": "domainStatus", "label": "ok" }
    ],
    "registrant": { "@type": "contact", "id": "JD-1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "SH-8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "SH-8013" } }
    ],
    "nameservers": [
        {
            "@type": "host",
            "hostName": "ns1.example.example"
        },
        {
            "@type": "host",
            "hostName": "ns2.example.example"
        }
    ],
    "subordinateHosts": [
        {
            "@type": "host",
            "hostName": "ns1.example.example"
        },
        {
            "@type": "host",
            "hostName": "ns2.example.example"
        }
    ],
    "expiryDate": "2005-04-03T22:00:00.0Z",
    "authInfo": {
        "@type": "authInfo",
        "method": "authinfo",
        "authdata": "2fooBAR"
    },
    "processes": {
        "@type": "processes",
        "createProcess": [
            { "@type": "domainCreateProcess", "processId": "CRT-1001" }
        ]
    }
}
]]></sourcecode>
<t>Example Read response for an internationalised domain name, showing the ACE <tt>name</tt>, the corresponding <tt>uName</tt>, and the <tt>lgr</tt> identifying the Label Generation Ruleset (LGR) used for validation:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "xn--bcher-kva.example",
    "uName": "bücher.example",
    "lgr": "latn-1.0",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "BUCHER1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "domainStatus", "label": "ok" }
    ]
}
]]></sourcecode>
</section>

<section anchor="update-5"><name>Update</name>
<t>Example domain update request (read-write properties):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "registrant": { "@type": "contact", "id": "SH-8013" },
    "authInfo": {
        "@type": "authInfo",
        "method": "authinfo",
        "authdata": "2BARfoo"
    }
}
]]></sourcecode>
<t>Example domain update response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "EXAMPLE1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientY",
        "crDate": "1999-04-03T22:00:00.0Z",
        "upClientId": "ClientX",
        "upDate": "2000-01-15T09:00:00.0Z"
    },
    "status": [
        { "@type": "domainStatus", "label": "ok" }
    ],
    "registrant": { "@type": "contact", "id": "SH-8013" }
}
]]></sourcecode>
</section>

<section anchor="delete"><name>Delete</name>
<t>The domain delete operation takes the domain name as the resource identifier in the request. No request body is required.</t>
<t>Example domain delete response (minimal, server may return full representation):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainName",
    "name": "example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "EXAMPLE1-REP",
        "spClientId": "ClientX"
    },
    "status": [
        { "@type": "domainStatus", "label": "pendingDelete" }
    ]
}
]]></sourcecode>
</section>

<section anchor="renew"><name>Renew</name>
<t>The renew operation creates a Renew Process Object. The optional <tt>expiryDate</tt> in the request is the <em>current</em> expiry date, sent by the client for server-side validation to prevent duplicate renewals. The response returns a Renew Process Object containing the <em>new</em> expiry date.</t>
<t>Example domain renew request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "renewProcess",
    "expiryDate": "2005-04-03T22:00:00.0Z",
    "renewalPeriod": {
        "@type": "period",
        "value": 5,
        "unit": "y"
    }
}
]]></sourcecode>
<t>Example domain renew response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "renewProcess",
    "expiryDate": "2010-04-03T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="transfer-request"><name>Transfer Request</name>
<t>Authorisation information for the transfer MUST be conveyed using the <tt>RPP-Authorization</tt> HTTP header (see <xref target="authorization-information-rules" format="title"></xref>), not in the JSON request body.</t>
<t>Example domain transfer request (pull transfer):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainTransferProcess",
    "transferDir": "pull",
    "transferPeriod": {
        "@type": "period",
        "value": 1,
        "unit": "y"
    }
}
]]></sourcecode>
<t>Example domain transfer response (Transfer Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainTransferProcess",
    "trStatus": "pending",
    "transferDir": "pull",
    "reqClientId": "ClientX",
    "requestDate": "2000-06-08T22:00:00.0Z",
    "actClientId": "ClientY",
    "actionDate": "2000-06-13T22:00:00.0Z",
    "expiryDate": "2002-09-08T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="transfer-query"><name>Transfer Query</name>
<t>Example domain transfer query response (Transfer Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainTransferProcess",
    "trStatus": "pending",
    "transferDir": "pull",
    "reqClientId": "ClientX",
    "requestDate": "2000-06-06T22:00:00.0Z",
    "actClientId": "ClientY",
    "actionDate": "2000-06-11T22:00:00.0Z",
    "expiryDate": "2002-09-08T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="transfer-approve"><name>Transfer Approve</name>
<t>The Transfer approve operation has a request body with an empty JSON object, the server can identify the transfer process to be approved based on the request URL and the authenticated client's permissions.</t>
<t>Example domain transfer approve request with empty JSON object:</t>

<sourcecode type="json"><![CDATA[{ 
  "@type": "domainTransferProcess"
}
]]></sourcecode>
<t>The response is the Transfer Process Object, similar to the Create (Transfer Request) and Read (Transfer Query) responses.</t>
</section>

<section anchor="transfer-cancel"><name>Transfer Cancel</name>
<t>The Transfer cancel operation has an empty request body, the server can identify the transfer process to be cancelled based on the request URL and the authenticated client's permissions.</t>
<t>The response is the Transfer Process Object, similar to the Create (Transfer Request) and Read (Transfer Query) responses.</t>
</section>

<section anchor="transfer-reject"><name>Transfer Reject</name>
<t>Example domain transfer reject request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "domainTransferProcess",
    "reason": "Client rejected the transfer request."
}
]]></sourcecode>
<t>The transfer reject response is the Transfer Process Object, similar to the Create (Transfer Request) and Read (Transfer Query) responses.</t>
</section>

<section anchor="restore-request"><name>Restore Request</name>
<t>Example domain restore request (without inline report; object transitions to <tt>pendingRestore</tt> state):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess"
}
]]></sourcecode>
<t>Example domain restore response (Restore Process Object, server requires a report):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "pendingRestore",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDueDate": "2025-01-27T15:30:00.0Z"
}
]]></sourcecode>
<t>Example domain restore request with inline restore report (single-step; object restored immediately):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreReport": {
        "@type": "restoreReport",
        "preData": "Domain example.example was registered on 2024-01-15 with registrant JD-1234.",
        "postData": "Domain example.example is being restored with the same registration data.",
        "deleteTime": "2025-01-10T12:00:00.0Z",
        "restoreTime": "2025-01-20T15:30:00.0Z",
        "restoreReason": "Domain deleted in error by client operator.",
        "statements": [
            "The information in this report is true to the best of my knowledge.",
            "I have a valid reason for restoring this domain name."
        ]
    }
}
]]></sourcecode>
<t>Example domain restore response with inline report (Restore Process Object, immediately restored):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-20T15:30:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="restore-report"><name>Restore Report</name>
<t>Example domain restore report request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreReport": {
        "@type": "restoreReport",
        "preData": "Domain example.example was registered on 2024-01-15 with registrant JD-1234.",
        "postData": "Domain example.example is being restored with the same registration data.",
        "deleteTime": "2025-01-10T12:00:00.0Z",
        "restoreTime": "2025-01-20T15:30:00.0Z",
        "restoreReason": "Domain deleted in error by client operator.",
        "statements": [
            "The information in this report is true to the best of my knowledge.",
            "I have a valid reason for restoring this domain name."
        ]
    }
}
]]></sourcecode>
<t>Example domain restore report response (Restore Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-22T09:15:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="read-restore-query"><name>Read (Restore Query)</name>
<t>The Read (Restore Query) operation takes no request body (Parameters: None).</t>
<t>Example domain restore query response (Restore Process Object, object in <tt>pendingRestore</tt> state):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "pendingRestore",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDueDate": "2025-01-27T15:30:00.0Z"
}
]]></sourcecode>
<t>Example domain restore query response (Restore Process Object, object restored):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-22T09:15:00.0Z"
}
]]></sourcecode>
</section>
</section>

<section anchor="contact"><name>Contact</name>

<section anchor="availability-4"><name>Availability</name>
<t>Example contact availability response for a contact that cannot be created:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contactAvailability",
    "available": false,
    "reason": "In use"
}
]]></sourcecode>
</section>

<section anchor="create-8"><name>Create</name>
<t>Example contact create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "JD-1234",
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe"
        },
        "organizations": {
            "org": { "name": "Example Inc." }
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "123 Example Dr., Suite 100" },
                    { "kind": "locality", "value": "Dulles" },
                    { "kind": "region",   "value": "VA" },
                    { "kind": "postcode", "value": "20166-6503" }
                ],
                "countryCode": "US"
            }
        },
        "phones": {
            "voice": { "number": "tel:+1-703-555-5555" },
            "fax":   { "features": { "fax": true }, "number": "tel:+1-703-555-5556" }
        },
        "emails": {
            "email": { "address": "jdoe@example.example" }
        }
    },
    "authInfo": {
        "@type": "authInfo",
        "method": "authinfo",
        "authdata": "2fooBAR"
    }
}
]]></sourcecode>
<t>Example contact create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "JD-1234",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "JD1234-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "contactStatus", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe"
        },
        "organizations": {
            "org": { "name": "Example Inc." }
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "123 Example Dr., Suite 100" },
                    { "kind": "locality", "value": "Dulles" },
                    { "kind": "region",   "value": "VA" },
                    { "kind": "postcode", "value": "20166-6503" }
                ],
                "countryCode": "US"
            }
        },
        "phones": {
            "voice": { "number": "tel:+1-703-555-5555" },
            "fax":   { "features": { "fax": true }, "number": "tel:+1-703-555-5556" }
        },
        "emails": {
            "email": { "address": "jdoe@example.example" }
        }
    }
}
]]></sourcecode>
</section>

<section anchor="read-10"><name>Read</name>
<t>Example contact read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "JD-1234",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "JD1234-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z",
        "upClientId": "ClientX",
        "upDate": "2000-01-15T09:00:00.0Z"
    },
    "status": [
        { "@type": "contactStatus", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe"
        },
        "organizations": {
            "org": { "name": "Example Inc." }
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "123 Example Dr., Suite 100" },
                    { "kind": "locality", "value": "Dulles" },
                    { "kind": "region",   "value": "VA" },
                    { "kind": "postcode", "value": "20166-6503" }
                ],
                "countryCode": "US"
            }
        },
        "phones": {
            "voice": { "number": "tel:+1-703-555-5555" }
        },
        "emails": {
            "email": { "address": "jdoe@example.example" }
        }
    }
}
]]></sourcecode>
</section>

<section anchor="update-6"><name>Update</name>
<t>Example contact update request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "456 New Street, Suite 200" },
                    { "kind": "locality", "value": "Reston" },
                    { "kind": "region",   "value": "VA" },
                    { "kind": "postcode", "value": "20190" }
                ],
                "countryCode": "US"
            }
        },
        "phones": {
            "voice": { "number": "tel:+1-703-555-5556" }
        },
        "emails": {
            "email": { "address": "jdoe-new@example.example" }
        }
    }
}
]]></sourcecode>
<t>Example contact update response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "JD-1234",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "JD1234-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z",
        "upClientId": "ClientX",
        "upDate": "2025-06-01T10:00:00.0Z"
    },
    "status": [
        { "@type": "contactStatus", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe"
        },
        "organizations": {
            "org": { "name": "Example Inc." }
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "456 New Street, Suite 200" },
                    { "kind": "locality", "value": "Reston" },
                    { "kind": "region",   "value": "VA" },
                    { "kind": "postcode", "value": "20190" }
                ],
                "countryCode": "US"
            }
        },
        "phones": {
            "voice": { "number": "tel:+1-703-555-5556" }
        },
        "emails": {
            "email": { "address": "jdoe-new@example.example" }
        }
    }
}
]]></sourcecode>
</section>

<section anchor="delete-1"><name>Delete</name>
<t>The contact delete operation takes the contact identifier as the resource identifier. No request body is required.</t>
</section>

<section anchor="transfer-request-1"><name>Transfer Request</name>
<t>Authorisation information for the transfer MUST be conveyed using the <tt>RPP-Authorization</tt> HTTP header (see <xref target="authorization-information-rules" format="title"></xref>), not in the JSON request body.</t>
<t>Example contact transfer request (pull transfer):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "transferProcess", 
    "transferDir": "pull"
}
]]></sourcecode>
<t>Example contact transfer response (Transfer Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "transferProcess",
    "trStatus": "pending",
    "transferDir": "pull",
    "reqClientId": "ClientX",
    "requestDate": "2000-06-08T22:00:00.0Z",
    "actClientId": "ClientY",
    "actionDate": "2000-06-13T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="transfer-query-1"><name>Transfer Query</name>
<t>Example contact transfer query response (Transfer Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "transferProcess",
    "trStatus": "pending",
    "transferDir": "pull",
    "reqClientId": "ClientX",
    "requestDate": "2000-06-06T22:00:00.0Z",
    "actClientId": "ClientY",
    "actionDate": "2000-06-11T22:00:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="transfer-cancel-approve"><name>Transfer Cancel / Approve</name>
<t>Transfer cancel and approve responses return the Transfer Process Object. The response structure is the same as the Transfer Query response above. The <tt>trStatus</tt> value reflects the outcome of the operation (e.g. <tt>&quot;clientCancelled&quot;</tt>, <tt>&quot;clientRejected&quot;</tt>, or <tt>&quot;clientApproved&quot;</tt>).</t>
</section>

<section anchor="transfer-reject-1"><name>Transfer Reject</name>
<t>Example contact transfer reject request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "transferProcess",
    "reason": "Client rejected the transfer request."
}
]]></sourcecode>
<t>The transfer reject response is the Transfer Process Object, similar to the Create (Transfer Request) and Read (Transfer Query) responses.</t>
</section>
</section>

<section anchor="host"><name>Host</name>

<section anchor="availability-5"><name>Availability</name>
<t>Example host availability response for a host that can be created:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "hostAvailability",
    "available": true
}
]]></sourcecode>
</section>

<section anchor="create-9"><name>Create</name>
<t>Example host create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "dns": {
        "@type": "dnsData",
        "records": [
            {
                "@type": "dnsRecord",
                "name": "@",
                "type": "ns",
                "rdata": { "nsdname": "ns1.example.example." }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "a",
                "rdata": { "address": "192.0.2.1" }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "aaaa",
                "rdata": { "address": "2001:db8::1" }
            }
        ],
        "controls": {
            "@type": "dnsControls",
            "ttl": { "a": 3600, "aaaa": 3600 }
        }
    }
}
]]></sourcecode>
<t>Example host create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "NS1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "hostStatus", "label": "ok" }
    ],
    "dns": {
        "@type": "dnsData",
        "records": [
            {
                "@type": "dnsRecord",
                "name": "@",
                "type": "ns",
                "rdata": { "nsdname": "ns1.example.example." }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "a",
                "rdata": { "address": "192.0.2.1" }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "aaaa",
                "rdata": { "address": "2001:db8::1" }
            }
        ],
        "controls": {
            "@type": "dnsControls",
            "ttl": { "a": 3600, "aaaa": 3600 }
        }
    }
}
]]></sourcecode>
</section>

<section anchor="read-11"><name>Read</name>
<t>Example host read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "NS1-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientY",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "hostStatus", "label": "ok" }
    ],
    "dns": {
        "@type": "dnsData",
        "records": [
            {
                "@type": "dnsRecord",
                "name": "@",
                "type": "ns",
                "rdata": { "nsdname": "ns1.example.example." }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "a",
                "rdata": { "address": "192.0.2.1" }
            }
        ]
    }
}
]]></sourcecode>
</section>

<section anchor="update-7"><name>Update</name>
<t>Example host update request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "dns": {
        "@type": "dnsData",
        "records": [
            {
                "@type": "dnsRecord",
                "name": "@",
                "type": "ns",
                "rdata": { "nsdname": "ns1.example.example." }
            },
            {
                "@type": "dnsRecord",
                "name": "ns1.example.example.",
                "type": "a",
                "rdata": { "address": "198.51.100.1" }
            }
        ]
    }
}
]]></sourcecode>
</section>

<section anchor="delete-2"><name>Delete</name>
<t>The host delete operation takes the host name as the resource identifier. No request body is required. The server SHOULD reject the request if the host object is associated with any domain name objects.</t>
</section>

<section anchor="restore-request-1"><name>Restore Request</name>
<t>Example host restore request (without inline report; object transitions to <tt>pendingRestore</tt> state):</t>

<sourcecode type="json"><![CDATA[{
  "@type": "restoreProcess"
}
]]></sourcecode>
<t>Example host restore request response (Restore Process Object, server requires a report):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "pendingRestore",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDueDate": "2025-01-27T15:30:00.0Z"
}
]]></sourcecode>
<t>Example host restore request with inline restore report (single-step; object restored immediately):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreReport": {
        "@type": "restoreReport",
        "preData": "Host ns1.example.example was registered on 2024-01-15 by ClientX.",
        "postData": "Host ns1.example.example is being restored with the same registration data.",
        "deleteTime": "2025-01-10T12:00:00.0Z",
        "restoreTime": "2025-01-20T15:30:00.0Z",
        "restoreReason": "Host deleted in error by client operator.",
        "statements": [
            "The information in this report is true to the best of my knowledge.",
            "I have a valid reason for restoring this host object."
        ]
    }
}
]]></sourcecode>
<t>Example host restore response with inline report (Restore Process Object, immediately restored):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-20T15:30:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="restore-report-1"><name>Restore Report</name>
<t>Example host restore report request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreReport": {
        "@type": "restoreReport",
        "preData": "Host ns1.example.example was registered on 2024-01-15 by ClientX.",
        "postData": "Host ns1.example.example is being restored with the same registration data.",
        "deleteTime": "2025-01-10T12:00:00.0Z",
        "restoreTime": "2025-01-20T15:30:00.0Z",
        "restoreReason": "Host deleted in error by client operator.",
        "statements": [
            "The information in this report is true to the best of my knowledge.",
            "I have a valid reason for restoring this host object."
        ]
    }
}
]]></sourcecode>
<t>Example host restore report response (Restore Process Object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-22T09:15:00.0Z"
}
]]></sourcecode>
</section>

<section anchor="read-restore-query-1"><name>Read (Restore Query)</name>
<t>The Read (Restore Query) operation takes no request body (Parameters: None).</t>
<t>Example host restore query response (Restore Process Object, object in <tt>pendingRestore</tt> state):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "pendingRestore",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDueDate": "2025-01-27T15:30:00.0Z"
}
]]></sourcecode>
<t>Example host restore query response (Restore Process Object, object restored):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "restoreProcess",
    "restoreStatus": "restored",
    "requestDate": "2025-01-20T15:30:00.0Z",
    "reportDate": "2025-01-22T09:15:00.0Z"
}
]]></sourcecode>
</section>
</section>

<section anchor="organisation"><name>Organisation</name>

<section anchor="create-10"><name>Create</name>
<t>Example organisation create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "organisation",
    "id": "ORG-12345",
    "roles": { "registrar": 
        {
            "@type": "organisationRole",
            "roleId": "1234"
        }
    },
    "parent": { "@type": "organisation", "id": "ORG-9999" },
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "org",
        "name": {
            "full": "Example Registrar Inc."
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "Meander 501" },
                    { "kind": "locality", "value": "Arnhem" },
                    { "kind": "region",   "value": "Gelderland" },
                    { "kind": "postcode", "value": "6825MD" }
                ],
                "countryCode": "NL"
            }
        },
        "emails": {
            "email": { "address": "registrar@example.example" }
        }
    },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "CID-1001" } },
        { "label": "tech", "object": { "@type": "contact", "id": "CID-1002" } }
    ]
}
]]></sourcecode>
<t>Example organisation create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "organisation",
    "id": "ORG-12345",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "ORG12345-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "2025-03-15T10:00:00.0Z"
    },
    "status": [
        { "@type": "organisationStatus", "label": "ok" }
    ],
    "roles": { "registrar":
        {
            "@type": "organisationRole",
            "status": [ { "@type": "organisationRoleStatus", "label": "ok" } ],
            "roleId": "1234"
        }
    },
    "parent": { "@type": "organisation", "id": "ORG-9999" },
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "org",
        "name": {
            "full": "Example Registrar Inc."
        },
        "addresses": {
            "addr": {
               "components": [
                    { "kind": "name",     "value": "Meander 501" },
                    { "kind": "locality", "value": "Arnhem" },
                    { "kind": "region",   "value": "Gelderland" },
                    { "kind": "postcode", "value": "6825MD" }
                ],
                "countryCode": "NL"
            }
        },
        "emails": {
            "email": { "address": "registrar@example.example" }
        }
    },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "CID-1001" } },
        { "label": "tech", "object": { "@type": "contact", "id": "CID-1002" } }
    ],
    "users": [
        { "label": "admin", "object": { "@type": "user", "id": "UID-5001" } }
    ]
}
]]></sourcecode>
</section>

<section anchor="read-12"><name>Read</name>
<t>Example organisation read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "organisation",
    "id": "ORG-12345",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "ORG12345-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "2025-03-15T10:00:00.0Z",
        "upClientId": "ClientX",
        "upDate": "2025-06-01T08:30:00.0Z"
    },
    "status": [
        { "@type": "organisationStatus", "label": "linked" }
    ],
    "roles": { "registrar":
        {
            "@type": "organisationRole",
            "status": [ { "@type": "organisationRoleStatus", "label": "ok" } ],
            "roleId": "1234"
        }
    },
    "parent": { "@type": "organisation", "id": "ORG-9999" },
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "org",
        "name": {
            "full": "Example Registrar Inc."
        },
        "addresses": {
            "addr": {
                "components": [
                    { "kind": "name",     "value": "Meander 501" },
                    { "kind": "locality", "value": "Arnhem" },
                    { "kind": "region",   "value": "Gelderland" },
                    { "kind": "postcode", "value": "6825MD" }
                ],
                "countryCode": "NL"
            }
        },
        "emails": {
            "email": { "address": "registrar@example.example" }
        }
    },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "CID-1001" } },
        { "label": "tech", "object": { "@type": "contact", "id": "CID-1002" } }
    ],
    "users": [
        { "label": "admin", "object": { "@type": "user", "id": "UID-5001" } }
    ]
}
]]></sourcecode>
</section>

<section anchor="update-8"><name>Update</name>
<t>Example organisation update request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "organisation",
    "roles": { "registrar":
        {
            "@type": "organisationRole",
            "status": [ { "@type": "organisationRoleStatus", "label": "clientLinkProhibited" } ],
            "roleId": "1234"
        }
    },
    "status": [
        { "@type": "organisationStatus", "label": "clientLinkProhibited" }
    ],
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "CID-2001" } },
        { "label": "tech", "object": { "@type": "contact", "id": "CID-2002" } }
    ]
}
]]></sourcecode>
</section>

<section anchor="delete-3"><name>Delete</name>
<t>The organisation delete operation takes the organisation identifier as the resource identifier. No request body is required. The server MUST reject the request if the organisation object is associated with any other objects.</t>
</section>

<section anchor="reference-8"><name>Reference</name>
<t>Example organisation reference (used when referencing an organisation from another object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "organisation",
    "id": "ORG-12345"
}
]]></sourcecode>
</section>
</section>

<section anchor="user"><name>User</name>

<section anchor="create-11"><name>Create</name>
<t>Example user create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "id": "UID-5001",
    "details": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": { "full": "John Doe" },
        "emails": {
            "email": { "address": "john.doe@example.example" }
        }
    }
}
]]></sourcecode>
<t>Example user create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "id": "UID-5001",
    "details": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": { "full": "John Doe" },
        "emails": {
            "email": { "address": "john.doe@example.example" }
        }
    },
    "status": { "@type": "userStatus", "label": "pending" },
    "organisation": { "@type": "organisation", "id": "ORG-12345" }
}
]]></sourcecode>
</section>

<section anchor="read-13"><name>Read</name>
<t>Example user read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "id": "UID-5001",
    "details": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": { "full": "John Doe" },
        "emails": {
            "email": { "address": "john.doe@example.example" }
        }
    },
    "status": { "@type": "userStatus", "label": "active" },
    "organisation": { "@type": "organisation", "id": "ORG-12345" }
}
]]></sourcecode>
</section>

<section anchor="update-9"><name>Update</name>
<t>Example user update request (suspend the user):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "status": { "@type": "userStatus", "label": "suspended" },
    "details": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": { "full": "John Doe" },
        "emails": {
            "email": { "address": "john.doe@example.example" }
        }
    }
}
]]></sourcecode>
</section>

<section anchor="delete-4"><name>Delete</name>
<t>The user delete operation takes the user identifier as the resource identifier in the context of the owning organisation. No request body is required.</t>
</section>

<section anchor="reference-9"><name>Reference</name>
<t>Example user reference (used when referencing a user from an organisation object):</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "id": "UID-5001"
}
]]></sourcecode>
</section>
</section>

<section anchor="message"><name>Message</name>

<section anchor="create-12"><name>Create</name>
<t>Example message create request using a Transfer Request Message Object, notifying the recipient organisation that a transfer of the domain name <tt>transfer-test.example</tt> is pending and requires action:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "data": {
        "@type": "transferRequestMessage",
        "objectType": "domainName",
        "objectId": "transfer-test.example",
        "process": {
            "@type": "domainTransferProcess",
            "processId": "TRF-1001",
            "trStatus": "pending",
            "transferDir": "pull",
            "reqClientId": "ClientX",
            "requestDate": "2026-09-17T09:00:00.0Z",
            "actClientId": "ClientY",
            "actionDate": "2026-09-22T09:00:00.0Z"
        },
        "status": "pending",
        "requestDate": "2026-09-17T09:00:00.0Z",
        "actionDate": "2026-09-22T09:00:00.0Z"
    }
}
]]></sourcecode>
<t>Example message create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98765",
    "creationDate": "2026-09-17T09:00:00.0Z",
    "status": "queued",
    "data": {
        "@type": "transferRequestMessage",
        "objectType": "domainName",
        "objectId": "transfer-test.example",
        "process": {
            "@type": "domainTransferProcess",
            "processId": "TRF-1001",
            "trStatus": "pending",
            "transferDir": "pull",
            "reqClientId": "ClientX",
            "requestDate": "2026-09-17T09:00:00.0Z",
            "actClientId": "ClientY",
            "actionDate": "2026-09-22T09:00:00.0Z"
        },
        "status": "pending",
        "requestDate": "2026-09-17T09:00:00.0Z",
        "actionDate": "2026-09-22T09:00:00.0Z"
    }
}
]]></sourcecode>
</section>

<section anchor="read-14"><name>Read</name>
<t>Example message read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98765",
    "creationDate": "2026-09-17T09:00:00.0Z",
    "status": "delivered",
    "data": {
        "@type": "transferRequestMessage",
        "objectType": "domainName",
        "objectId": "transfer-test.example",
        "process": {
            "@type": "domainTransferProcess",
            "processId": "TRF-1001",
            "trStatus": "pending",
            "transferDir": "pull",
            "reqClientId": "ClientX",
            "requestDate": "2026-09-17T09:00:00.0Z",
            "actClientId": "ClientY",
            "actionDate": "2026-09-22T09:00:00.0Z"
        },
        "status": "pending",
        "requestDate": "2026-09-17T09:00:00.0Z",
        "actionDate": "2026-09-22T09:00:00.0Z"
    }
}
]]></sourcecode>
<t>Example message read response with a Review Response Object:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98770",
    "creationDate": "2026-09-19T14:30:00.0Z",
    "status": "queued",
    "data": {
        "@type": "reviewResponseMessage",
        "objectType": "domainName",
        "objectId": "review-test.example",
        "approved": true,
        "clientTransactionId": "ABC-12345",
        "serverTransactionId": "54322-XYZ",
        "completionDate": "2026-09-19T14:30:00.0Z",
        "message": "The domain name registration was approved."
    }
}
]]></sourcecode>
<t>Example message read response with a Transfer Outcome Message Object:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98771",
    "creationDate": "2026-09-22T09:00:00.0Z",
    "status": "queued",
    "data": {
        "@type": "transferOutcomeMessage",
        "objectType": "domainName",
        "objectId": "transfer-test.example",
        "process": {
            "@type": "domainTransferProcess",
            "processId": "TRF-1001",
            "trStatus": "serverApproved",
            "transferDir": "pull",
            "reqClientId": "ClientX",
            "requestDate": "2026-09-17T09:00:00.0Z",
            "actClientId": "ClientY",
            "actionDate": "2026-09-22T09:00:00.0Z"
        },
        "trStatus": "serverApproved",
        "requestDate": "2026-09-17T09:00:00.0Z",
        "actionDate": "2026-09-22T09:00:00.0Z",
        "expiryDate": "2028-04-03T22:00:00.0Z"
    }
}
]]></sourcecode>
<t>Example message read response with an Auto-Renewal Message Object:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98772",
    "creationDate": "2026-09-23T00:05:00.0Z",
    "status": "queued",
    "data": {
        "@type": "autoRenewalMessage",
        "objectType": "domainName",
        "objectId": "renewed.example",
        "renewalDate": "2026-09-23T00:05:00.0Z",
        "expiryDate": "2027-09-23T00:00:00.0Z"
    }
}
]]></sourcecode>
<t>Example message read response with an Expiration Deletion Message Object:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98774",
    "creationDate": "2026-09-25T00:05:00.0Z",
    "status": "queued",
    "data": {
        "@type": "expirationDeletionMessage",
        "objectType": "domainName",
        "objectId": "expired.example",
        "deletionDate": "2026-09-25T00:00:00.0Z"
    }
}
]]></sourcecode>
<t>Example message read response with a Service Notice Message Object, which is not linked to a specific object:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "message",
    "id": "MSG-98773",
    "creationDate": "2026-09-24T08:00:00.0Z",
    "status": "queued",
    "data": {
        "@type": "serviceNoticeMessage",
        "message": "The registry terms and conditions have been updated."
    }
}
]]></sourcecode>
</section>

<section anchor="query-1"><name>Query</name>
<t>There is no request message for the message query operation.</t>
<t>Example message query response, containing a Transfer Request Message Object for the domain <tt>transfer-test.example</tt>:</t>

<sourcecode type="json"><![CDATA[[{
    "@type": "message",
    "id": "MSG-98765",
    "creationDate": "2026-09-17T09:00:00.0Z",
    "status": "queued",
    "data": {
        "@type": "transferRequestMessage",
        "objectType": "domainName",
        "objectId": "transfer-test.example",
        "process": {
            "@type": "domainTransferProcess",
            "processId": "TRF-1001",
            "trStatus": "pending",
            "transferDir": "pull",
            "reqClientId": "ClientX",
            "requestDate": "2026-09-17T09:00:00.0Z",
            "actClientId": "ClientY",
            "actionDate": "2026-09-22T09:00:00.0Z"
        },
        "status": "pending",
        "requestDate": "2026-09-17T09:00:00.0Z",
        "actionDate": "2026-09-22T09:00:00.0Z"
    }
}]
]]></sourcecode>
</section>
</section>

<section anchor="discovery-1"><name>Discovery</name>

<section anchor="read-15"><name>Read</name>
<t>There is no request message for the discovery read operation.</t>
<t>Example discovery read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "discovery",
    "versions": [
        {
            "@type": "discoveryVersion",
            "version": "1.0",
            "baseUrl": "https://rpp.example/rpp"
        }
    ],
    "environment": {
        "@type": "discoveryEnvironment",
        "name": "rpp.example",
        "status": "production"
    },
    "tlds": ["example"],
    "extensions": [
        {
            "@type": "extension",
            "name": "RPP example extension",
            "id": "urn:ietf:params:rpp:extension:example-extension",
            "version": "1.0",
            "url": "https://www.iana.org/assignments/rpp-extensions/rpp-example-extension"
        }
    ],
    "profiles": ["urn:ietf:params:rpp:profile:epp-compatibility"],
    "objects": ["domainName", "host", "contact"],
    "datetime": "2026-05-31T12:30:00Z",
    "links": [
        { "label": "privacy-policy", "object": "https://registry.example/privacy" },
        { "label": "terms-of-service", "object": "https://registry.example/terms" }
    ],
    "idnLgr": [
        {
            "@type": "discoveryIdnLgr",
            "tld": ["example"],
            "name": "example-latn-1.0",
            "url": "https://www.iana.org/domains/idn-tables/tables/example_latn_1.0.txt",
            "default": true
        }
    ],
    "notices": [
        {
            "@type": "discoveryNotice",
            "pubTime": "2026-06-01T00:00:00Z",
            "text": "This server will undergo planned maintenance on the first Monday of each month."
        }
    ]
}
]]></sourcecode>
</section>
</section>

<section anchor="profile"><name>Profile</name>

<section anchor="read-16"><name>Read</name>
<t>There is no request message for the profile read operation.</t>
<t>Example profile read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "profile",
    "name": "urn:ietf:params:rpp:profile:epp-compatibility",
    "description": "EPP compatibility profile",
    "version": "1.0",
    "rppVersion": "1.0",
    "objects": ["domainName", "host", "contact"],
    "extensions": [
        {
            "@type": "extension",
            "name": "RPP example extension",
            "id": "urn:ietf:params:rpp:extension:example-extension",
            "version": "1.0",
            "url": "https://www.iana.org/assignments/rpp-extensions/rpp-example-extension"
        }
    ],
    "defaultProfile": true
}
]]></sourcecode>
<t>Example profile read response for a profile that extends a base profile:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "profile",
    "name": "org.example.rpp.profile.registry-extended",
    "description": "Registry specific profile extending the EPP compatibility profile",
    "version": "1.0",
    "rppVersion": "1.0",
    "objects": ["domainName", "host", "contact"],
    "baseProfile": {
        "@type": "profile",
        "name": "urn:ietf:params:rpp:profile:epp-compatibility"
    },
    "defaultProfile": false
}
]]></sourcecode>
</section>
</section>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>

<section anchor="rpp-media-type-application-rpp-json"><name>RPP Media Type (application/rpp+json)</name>
<t>The IANA is requested to add the &quot;application/rpp+json&quot; media type to the &quot;Media Types&quot; registry, following the template in <xref target="RFC6838"></xref></t>

<sourcecode type="text"><![CDATA[Type name: application
Subtype name: rpp+json
Required parameters: "N/A"
Optional parameters: profile, version
Encoding considerations: "N/A"
Security considerations: This type has all of the security
               considerations described in [@!RFC8259] plus the
               considerations specified in the Security Considerations
               section of this document.
               The usage scenarios of the RPP media type do not foresee any
               code execution originating from the content of this media type.
Interoperability considerations: "N/A"
Published specification: This document
Applications that use this media type: RPP protocol and extensions
Fragment identifier considerations: "N/A"
Additional information:
   Deprecated alias names for this type: "N/A"
   Magic number(s): "N/A"
   File extension(s): "N/A"
   Macintosh file type code(s): "N/A"
Person & email address to contact for further information: Author's email address
Intended usage: COMMON
Restrictions on usage: "N/A"
Author: Document authors
Change controller: Document authors
Provisional registration: No
]]></sourcecode>
</section>

<section anchor="rpp-json-schema-extensions-registry"><name>RPP JSON Schema Extensions Registry</name>
<t>The IANA is requested to create a new registry for RPP JSON Schema extensions, this registry will be used to register standardised JSON Schema extensions to the JSON representation of RPP JSON objects, as defined in the <xref target="extension-framework"></xref> of this document.</t>

<sourcecode type="text"><![CDATA[Name of the registry: RPP JSON Schema Extensions
Registry group: RESTful Provisioning Protocol (RPP)
Registration procedure: Expert Review
]]></sourcecode>
<t>Fields to be registered:</t>

<ul spacing="compact">
<li><tt>name</tt>: The name of the extension, for example &quot;RPP example JSON extension&quot;.</li>
<li><tt>id</tt>: The unique <tt>$id</tt> URI of the extension JSON Schema, for example &quot;<eref target="https://www.iana.org/assignments/rpp-json-extensions/example-extension.json&quot;">https://www.iana.org/assignments/rpp-json-extensions/example-extension.json"</eref>.</li>
<li><tt>version</tt>: The version of the extension, for example &quot;1.0&quot;.</li>
<li><tt>RFC</tt>: The RFC number for the extension specification, for example &quot;RFC 1234&quot;.</li>
<li><tt>description</tt>: A human-readable description of the extension and its intended use.</li>
</ul>
<t>The &quot;RESTful Provisioning Protocol (RPP)&quot; registry group is defined in <xref target="I-D.ietf-rpp-core"></xref>.</t>
<t><strong>TODO</strong> there already exists a registry for RPP extensions, defined in the rpp-core document, consider whether this new registry is necessary or if it should be merged with the existing one.</t>
</section>
</section>

<section anchor="internationalization-considerations"><name>Internationalization Considerations</name>
<t>Internationalized Domain Names (IDN) are represented using the paired <tt>name</tt>/<tt>uName</tt> data elements described in the Domain Name Data Object. The <tt>name</tt> property, which addresses the resource and is used for object identity, MUST always contain the ACE A-label form; the <tt>uName</tt> property carries the Unicode U-label form for display and MUST be Unicode Normalization Form C (NFC) as defined in <xref target="UNICODE.NFC"></xref>.</t>
<t>Because JSON strings are Unicode character sequences, implementations MUST take the following precautions to avoid producing or misinterpreting <tt>uName</tt> (and any other Unicode-bearing string value) in a way that breaks common JSON consumers, in particular JavaScript, whose native strings are sequences of UTF-16 code units rather than Unicode code points:</t>

<ul spacing="compact">
<li>A string value MUST NOT contain an unpaired (lone) UTF-16 surrogate code point. Although <xref target="RFC8259"></xref>, Section 8.2, permits such values in JSON text, they do not represent a well-formed Unicode scalar value and MAY fail to round-trip when re-encoded as UTF-8 by non-JavaScript consumers.</li>
<li>Consumers MUST NOT use a UTF-16 code-unit count (such as JavaScript's <tt>String.prototype.length</tt>) to validate or enforce length constraints on <tt>uName</tt>. Domain name label length restrictions are defined in terms of the <tt>name</tt> (A-label) octet count; scripts using supplementary-plane code points are represented as surrogate pairs in UTF-16, so a code-unit count over-counts the number of Unicode code points.</li>
<li>Consumers MUST NOT rely on native string equality (e.g. JavaScript's <tt>===</tt>) to compare <tt>uName</tt> values for identity purposes, since two strings that differ only in Unicode normalisation form compare unequal even though they represent the same name; <tt>name</tt> MUST be used instead for identity comparison.</li>
<li>Servers MUST emit <tt>name</tt> in lowercase. Because ACE (A-label) domain names are case-insensitive per DNS comparison rules but JSON/JavaScript string comparison is case-sensitive, clients performing equality checks on <tt>name</tt> MUST lowercase both operands first rather than relying on native string equality.</li>
</ul>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>If a server accepts a <tt>uName</tt> value without strictly verifying both that it is already Unicode Normalization Form C (NFC) and that it converts, via the ToASCII procedure of <xref target="RFC5891" sectionFormat="bare" section="Section 4.2"></xref>, to the exact supplied <tt>name</tt> value, an attacker could cause a displayed <tt>uName</tt> to diverge from the name actually resolved in the DNS. Servers MUST reject any create or update request where <tt>uName</tt> is not already NFC-normalised or does not convert to the supplied <tt>name</tt>; servers MUST NOT silently normalise or correct the value on the client's behalf.</t>
<t><strong>TODO</strong></t>
</section>

<section anchor="acknowledgments"><name>Acknowledgments</name>
<t>TODO</t>
</section>

<section anchor="change-history"><name>Change History</name>

<section anchor="version-draft-ietf-rpp-json-00-to-draft-ietf-rpp-json-01"><name>Version draft-ietf-rpp-json-00 to draft-ietf-rpp-json-01</name>

<ul spacing="compact">
<li>Added section &quot;JSON Schema Composition Rules&quot;, including <xref target="status-object-rules"></xref> and <tt>read</tt>/<tt>create</tt> views for Component Objects. (Issue #102)</li>
<li>Replaced the JSON Schema definitions the generic Status Object with type-specific objects in <xref target="status-objects"></xref>.</li>
<li>Added schemas and examples for the Availability Objects, service messages, and for the Discovery and Profile Data Objects. (Issues #133, #82, #92)</li>
<li>Added IANA registration for the &quot;application/rpp+json&quot; media type. (Issue #84)</li>
<li>Added <xref target="extension-framework"></xref>. (Issue #78)</li>
<li>Added support for Internationalized Domain Names (IDN), see <xref target="internationalization-considerations"></xref>. (Issue #86)</li>
<li>Added section &quot;Inheritance&quot;. (Issue #88)</li>
<li>Added section describing the representation of undefined values. (Issue #97)</li>
<li>Rewrote the partial update processing in <xref target="partial-steps"></xref>, added replacement of a whole array, and added flow figures. (Issue #91, #77)</li>
<li>Aligned the JSContact constraints with the RPP JSContact profile. (Issue #76)</li>
<li>Made the JSON Schema definitions normative. (Issue #75)</li>
<li>Added the Disclose Object and Process Object (Base, Create, Restore) schemas, and removed redundant Process alias and Transfer response schemas.</li>
<li>Aligned all examples, including those in <xref target="extension-framework"></xref>, with the updated JSON Schema definitions.</li>
<li>Generalised the Mutability Rules to derive request and response content from operation Input and Output, and changed handling of disallowed request data elements from ignore to reject. (Issue #112 M2)</li>
<li>Replaced the primary identifier with the Unique Identifier in Association Rules.</li>
<li>Editorial: Removed rule numbering and replaced references to rule numbers with section references.</li>
<li>Editorial: Updated the Abstract and Introduction to cover all defined Data Objects.</li>
</ul>
</section>

<section anchor="version-draft-wullink-rpp-json-02-to-draft-ietf-rpp-json-00"><name>Version draft-wullink-rpp-json-02 to draft-ietf-rpp-json-00</name>

<ul spacing="compact">
<li>Added &quot;Update Rules&quot; section, describing update requests (Issue #54)</li>
<li>Added schema and examples for Transfer approve/reject/cancel operations (Issue #28)</li>
<li>Added Organisation and User Object JSON schemas and examples. (Issue #57)</li>
<li>Added schema and examples for the Renew Process Object. (Issue #45)</li>
<li>Added representation for embedding of process data in uniform interface operations (especially create). (Issue #60)</li>
<li>Added JSContact as External Type Embedding (Issue #43).</li>
</ul>
</section>

<section anchor="version-01-to-02"><name>Version 01 to 02</name>

<ul spacing="compact">
<li>Adjust rule 19 and all schemas to match it.</li>
</ul>
</section>

<section anchor="version-00-to-01"><name>Version 00 to 01</name>

<ul spacing="compact">
<li>Updated all examples and schemas to be based on RPP Data Object and no longer on EPP XML schemas. (Issue #15)</li>
<li>Updated labelled and dictionary aggregation rules (Issue #17)</li>
<li>Added required &quot;@type&quot; property to all JSON Schema definitions. (Issue #20)</li>
<li>Updated all example domain names to use the .example TLD. (Issue #26)</li>
</ul>
</section>
</section>

</middle>

<back>
<references><name>References</name>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-jsonschema-json-schema.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-rpp-core.xml"/>
<reference anchor="IDN-Tables" target="https://www.iana.org/assignments/idn-tables">
  <front>
    <title>Repository of IDN Practices</title>
    <author>
      <organization>Internet Assigned Numbers Authority (IANA)</organization>
    </author>
  </front>
</reference>
<reference anchor="ISO3166-1" target="https://www.iso.org/standard/72482.html">
  <front>
    <title>Codes for the representation of names of countries and their subdivisions - Part 1: Country code</title>
    <author>
      <organization>International Organization for Standardization</organization>
    </author>
    <date year="2020"></date>
  </front>
  <seriesInfo name="ISO" value="3166-1:2020"></seriesInfo>
</reference>
<reference anchor="ITU.E164.2005" target="">
  <front>
    <title>The international public telecommunication numbering plan</title>
    <author>
      <organization>International Telecommunication Union</organization>
    </author>
    <date year="2005" month="02"></date>
  </front>
  <seriesInfo name="ITU-T Recommendation" value="E.164"></seriesInfo>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1035.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1738.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3339.xml"/>
<reference anchor="RFC3915" target="https://www.rfc-editor.org/rfc/rfc3915">
  <front>
    <title>Domain Registry Grace Period Mapping for the Extensible Provisioning Protocol (EPP)</title>
    <author fullname="Scott Hollenbeck" initials="S." surname="Hollenbeck"></author>
    <date year="2004" month="09"></date>
  </front>
  <seriesInfo name="RFC" value="3915"></seriesInfo>
  <seriesInfo name="DOI" value="10.17487/RFC3915"></seriesInfo>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4648.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5730.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5732.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5890.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5891.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6838.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6902.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8259.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8543.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9553.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9982.xml"/>
</references>
<references><name>Informative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-rpp-data-objects.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.simmen-rpp-dns-data.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3596.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4034.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5910.xml"/>
<reference anchor="UNICODE.NFC" target="https://www.unicode.org/reports/tr15/">
  <front>
    <title>Unicode Normalization Forms</title>
    <author>
      <organization>Unicode Consortium</organization>
    </author>
    <date year="2026" month="08"></date>
  </front>
</reference>
</references>
</references>

</back>

</rfc>
