<?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-00" 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-00" 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="July" day="6"></date>
<area>Internet</area>
<workgroup>Network Working Group</workgroup>

<abstract>
<t>This document defines the rules for representing the RESTful Provisioning Protocol (RPP) data objects, as defined in <xref target="I-D.ietf-rpp-data-objects"></xref>, using the JavaScript Object Notation (JSON) Data Interchange Format <xref target="RFC8259"></xref>. It specifies how RPP primitive types, common data types, component objects, resource objects, and associations are mapped to JSON and JSON Schema, and provides normative JSON Schema definitions and worked examples for domain name, contact, and host data objects.</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>The RESTful Provisioning Protocol (RPP) defines a set of data objects for managing foundational registry resources including domain names, contacts, and hosts. 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 standardized 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. Standardizing 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>RPP Data Objects - The abstract data model definitions for domain name, contact, and host resources, 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="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="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 is specified in <xref target="I-D.ietf-rpp-data-objects"></xref>, which 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="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>Rule 1: 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>Rule 2: 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>Rule 3: 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/status" }
    }
  }
}
]]>
</sourcecode>
<t>Rule 4: 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" },
      "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-only</tt>, or <tt>read-write</tt>. These MUST be represented in JSON Schema as follows:</t>
<t>Rule 5: Data elements with mutability <tt>read-only</tt> MUST be annotated with <tt>&quot;readOnly&quot;: true</tt> in the JSON Schema. Clients MUST NOT include read-only properties in create or update request bodies. Servers MUST ignore any read-only properties provided by a client in a request.</t>

<sourcecode type="json"><![CDATA[{
  "repositoryId": {
    "type": "string",
    "readOnly": true
  }
}
]]>
</sourcecode>
<t>Rule 6: Data elements with mutability <tt>create-only</tt> MUST be annotated with <tt>&quot;writeOnly&quot;: true</tt> in the JSON Schema for request schemas, and excluded from update request schemas. Servers MUST reject requests that attempt to modify a <tt>create-only</tt> element after object creation.</t>
<t>Rule 7: Data elements with mutability <tt>read-write</tt> have no additional annotation. They MAY appear in both request and response bodies.</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.
A 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 limited representation containing at minimum the primary object identifier 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. When the cardinality allows more than one target, it MUST be represented as a JSON array. Each element of the array MUST be the identifier of the referenced object.</t>
<t>Rule 8: <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 primary identifier field). 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 primary identifier field <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>Composition[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. The JSON representation of a composition is the same as that of an aggregation. The distinction between the two is semantic and does not affect the JSON structure.</t>

<sourcecode type="json"><![CDATA[{ 
        "@type": "domainName",
        "name": "name.example",
        "nameservers": [
            {
                "@type": "host",
                "hostName": "ns1.name.example",
                "provMetadata": {
                    "@type": "provMetadata",
                    "repositoryId": "NS1EXAMPLE-REP",
                    "spClientId": "ClientX"
                },
                "status": [ { "@type": "status", "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>Rule 9: <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 primary identifier field 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>Rule 10: <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 primary identifier field 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>Rule 11: <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>Rule 12: <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>Rule 13: 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>Rule 14: 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>Rule 15: 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>Rule 16: 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>Rule 17: 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>Rule 18: 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>Rule 20: 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>Rule 21: Identifier fields MUST use <tt>&quot;type&quot;: &quot;string&quot;</tt> in JSON Schema.</t>
<t>Rule 22: 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>Rule 23: 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>
<t>Rule 24: 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>
<t>Rule 25: 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>
<t>Rule 26: When a transfer request or other operation requires authorization 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 authorization 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 anchor="rpp-profiles-and-validation"><name>RPP Profiles and Validation</name>
<t>RPP profiles, such as the EPP Compatibility Profile defined in <xref target="I-D.ietf-rpp-data-objects"></xref>, 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><strong>NOTE</strong>: The update rules in this section are still under discussion and may be subject to change. Feedback from the community is welcome.</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> and an RPP extension to support the <tt>match</tt> property for matching of array elements.</t>
<t>The <tt>match</tt> property is used to identify a specific element in an array, 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 specific element in the array that should be updated, removed, or replaced. The server MUST compare every key and corresponding value in the <tt>match</tt> object against the properties of each element in the array. If an element matches all key-value pairs in the <tt>match</tt> object, it is considered a match.</t>
<t>If the righthand side of the <tt>match</tt> property contains a complex datatype (object or array), the <tt>match</tt> property MUST contain a key named <tt>object</tt>, the value of which is a JSON object that contains the properties to be matched against. The server MUST compare the properties of the nested object against the corresponding properties of the array element. If all properties match, the element is considered a match.</t>
<t>The server MUST NOT allow recursive matching of 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. If the array elements contain nested objects or arrays, the server MUST NOT attempt to match against those nested structures.</t>
<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>For the <tt>remove</tt> operation, if multiple matched elements are found, then the sever MUST remove all matched elements. For the <tt>replace</tt> operation, if multiple matched elements are found, then the server MUST return an error response indicating that the operation is ambiguous and cannot be performed. If a match does not have any results, then the server MUST return an error response indicating that the specified element could not be found.</t>
<t>The following rules apply for partial updates:</t>

<ul spacing="compact">
<li>Rule 25: JSON Patch operations other than &quot;add&quot;, &quot;remove&quot; and &quot;replace&quot; MUST NOT be used.</li>
<li>Rule 26: If a JSONPointer path points to field using a JSON simple data type (e.g. string or number) then the &quot;value&quot; property MUST be provided and its type MUST match the type of the target field.</li>
<li>Rule 27: If a JSONPointer path points to an object, then the &quot;value&quot; property MUST be provided and contain a valid object, the new object's &quot;@type&quot; property MUST match the &quot;@type&quot; of the target object.</li>
<li><t>Rule 28: If a JSONPointer path points to an array, then:</t>

<ul spacing="compact">
<li>The &quot;match&quot; property MUST be provided to identify the specific element to be updated.</li>
<li>The &quot;match&quot; property MUST only be used for matching array elements of the same type, and the rules 26 and 27 apply.</li>
<li><t>The value of the &quot;op&quot; property determines the action to be taken on the matched element:</t>

<ul spacing="compact">
<li>The &quot;add&quot; operation, appends the new value to the array.</li>
<li>The &quot;remove&quot; operation, removes the specified value from the array.</li>
<li>The &quot;replace&quot; operation, replaces the existing value at the matching array element with the specified value.</li>
</ul></li>
<li>If the value of the &quot;op&quot; property is &quot;replace&quot;, and there is a matching element, then the element MUST be fully replaced with the new value provided in the &quot;value&quot; property. The new value MUST include all required fields for the object type.</li>
</ul></li>
<li>Rule 29: If any of the JSONPointer paths in the request fail to match an existing field or element in the target resource object, the server MUST reject the complete request with an appropriate error response.</li>
</ul>
</section>

<section anchor="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 MUST be present when the <tt>path</tt> points to an array property and is used to identify the specific array element to operate on.</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": "jd1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "sh8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "sh8013" } }
    ],
    "status": [
        { "@type": "status", "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;jd1234&quot; to &quot;jd1234-new&quot;:</t>

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

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

<sourcecode type="json"><![CDATA[[
  {
    "op": "add",
    "path": "/contacts",
    "value": {
      "label": "tech",
      "object": {
        "@type": "contact",
        "id": "sh8014"
      }
    }
  }
]
]]>
</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="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 re-used 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": "^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
    }
  }
}
]]>
</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]+( x[0-9]+)?$"
    }
  }
}
]]>
</sourcecode>
</section>
</section>

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

<section anchor="period-object"><name>Period Object</name>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "period": {
      "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 EPP Compatibility Profile, <tt>repositoryId</tt> MUST be provided.</li>
</ul>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "provMetadata": {
      "type": "object",
      "properties": {
        "@type":       { "type": "string", "const": "provMetadata", "readOnly": true },
        "repositoryId": { "type": "string", "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-object"><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>label</tt> MUST use camelCase notation using only ASCII alphabetic characters. Labels set explicitly by the server MUST use the prefix &quot;server&quot;; labels set explicitly by a client MUST use the prefix &quot;client&quot;; all other labels MUST NOT use either prefix. The allowed set of label values depends on the provisioning object type and MAY be extended by extensions.</li>
<li><tt>due</tt>: Servers MAY restrict the ability of clients to set or update this value.</li>
<li>When the RGP feature is supported, the following additional status labels MAY appear on objects that support RGP: <tt>addPeriod</tt>, <tt>autoRenewPeriod</tt>, <tt>renewPeriod</tt>, <tt>transferPeriod</tt>, <tt>redemptionPeriod</tt>, <tt>pendingRestore</tt>, <tt>rgpPendingDelete</tt>. The labels <tt>redemptionPeriod</tt>, <tt>pendingRestore</tt>, and <tt>rgpPendingDelete</tt> MUST only appear alongside the standard <tt>pendingDelete</tt> status.</li>
</ul>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "status": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "status" },
        "label":  { "type": "string", "pattern": "^[a-zA-Z]+$" },
        "reason": { "type": "string" },
        "due":    { "type": "string", "format": "date-time" }
      },
      "required": ["@type", "label"]
    }
  }
}
]]>
</sourcecode>
</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 lower case. Allowed values MAY be further constrained by server policy.</li>
<li>In 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 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>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsRecord": {
      "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>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "dnsControls": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "dnsControls" },
        "ttl": {
          "type": "object",
            "propertyNames": {
              "pattern": "^[a-z]+$"
            },
          "additionalProperties": { "type": "integer", "minimum": 1 }
        },
        "maxSigLifetime": {
          "type": "object",
          "propertyNames": {
            "pattern": "^[a-z]+$"
          },
          "additionalProperties": { "type": "integer", "minimum": 1 }
        }
      },
      "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 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>

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

<section anchor="authorization-information-object"><name>Authorization 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 EPP Compatibility Profile, this value MUST be &quot;authinfo&quot; for standard password-based authorization.</li>
<li>The Authorization Information Object is immutable. When authorization 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>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "authInfo": {
      "type": "object",
      "properties": {
        "@type":    { "type": "string", "const": "authInfo" },
        "method":   { "type": "string" },
        "authdata": { "type": "string" }
      },
      "required": ["@type", "method", "authdata"]
    }
  }
}
]]>
</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" },
            "components": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind":  { "type": "string", "enum": ["given", "surname"] },
                  "value": { "type": "string" }
                },
                "required": ["kind", "value"]
              }
            }
          }
        },
        "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", "country"] },
                    "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 EPP Compatibility Profile, <tt>restoreTime</tt> MUST be present as defined in <xref target="RFC3915"></xref>.</li>
<li>In EPP Compatibility Profile, exactly two <tt>statements</tt> MUST be present as defined in <xref target="RFC3915"></xref>.</li>
</ul>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "restoreReport": {
      "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>

<sourcecode type="json"><![CDATA[{
  "$defs": {
    "organisationRole": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "organisationRole" },
        "status": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["ok", "linked", "clientLinkProhibited", "serverLinkProhibited"]
          }
        },
        "roleId": { "type": "string" }
      },
      "required": ["@type"]
    }
  }
}
]]>
</sourcecode>
</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>

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

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

<section anchor="create-process-object"><name>Create Process Object</name>
<t>The Create Process Object carries the process-specific inputs for a resource creation operation, such as the requested registration period. It is submitted as an element of the <tt>createProcess</tt> array under the <tt>processes</tt> data element of the owning resource object (see Processes Object), following the same Aggregation representation as the other process types.</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" },
        "period": { "$ref": "#/$defs/period" }
      },
      "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 },
        "period": { "$ref": "#/$defs/period", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]>
</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" },
        "renewalPeriod": { "$ref": "#/$defs/period" }
      },
      "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 },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true }
      },
      "required": ["@type"]
    }
  }
}
]]>
</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",
      "oneOf": [
        {
          "properties": {
            "@type": { "type": "string", "const": "transferProcess"},
            "transferDir": {
              "type": "string",
              "const": "push"
            },
            "gainingClientId": { "$ref": "#/$defs/clientIdentifier" }
          },
          "required": [
            "@type", "transferDir", "gainingClientId"
          ]
        },
        {
          "properties": {
            "@type": { "type": "string", "const": "transferProcess" },
            "transferDir": {
              "type": "string",
              "const": "pull"
            }
          },
          "required": [
            "@type", "transferDir"
          ]
        }
      ]
    }
  }
}
]]>
</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 },
        "trStatus": {
          "type": "string",
          "enum": ["pending", "clientApproved", "clientCancelled",
                    "clientRejected", "serverApproved", "serverCancelled"],
          "readOnly": true
        },
        "transferDir": {
          "type": "string",
          "enum": ["pull", "push"],
          "readOnly": true
        },
        "gainingClientId": { "$ref": "#/$defs/clientIdentifier", "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", "transferDir", "trStatus", "reqClientId",
        "requestDate", "actClientId", "actionDate"
      ]
    }
  }
}
]]>
</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.reject",
  "$defs": {
    "transferProcess.reject": {
      "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>

<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" }
      },
      "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 },
        "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 }
      },
      "required": ["@type", "restoreStatus"]
    }
  }
}
]]>
</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>
</ul>

<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/domainObject.create",
  "$defs": {
    "domainObject.create": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName" },
        "name": { "type": "string", "writeOnly": true },
        "registrant": { "$ref": "#/$defs/contactObject.reference" },
        "contacts": {
          "type": "array",
          "items": { 
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contactObject.reference" }
            },
            "required": ["label", "object"]
           }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostObject.reference" }
        },
        "dns":    { "$ref": "#/$defs/dnsData" },
        "authInfo": { "$ref": "#/$defs/authInfo" },
        "processes": {
          "type": "object",
          "properties": {
            "@type": { "type": "string", "const": "processes" },
            "createProcess": {
              "type": "array",
              "items": { "$ref": "#/$defs/createProcess.create" },
              "maxItems": 1
            }
          },
          "required": ["@type"]
        }
      },
      "required": ["@type", "name"]
    }
  }
}
]]>
</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/domainObject.read",
  "$defs": {
    "domainObject.read": {
      "type": "object",
      "properties": {
        "@type":       { "type": "string", "const": "domainName", "readOnly": true },
        "name":        { "type": "string", "readOnly": true },
        "provMetadata": { "$ref": "#/$defs/provMetadata" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/status" },
          "readOnly": true
        },
        "registrant":  { "$ref": "#/$defs/contactObject.reference" },
        "contacts": {
          "type": "array",
          "items": { 
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contactObject.reference" }
            },
            "required": ["label", "object"]
           }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostObject.reference" }
        },
        "dns":    { "$ref": "#/$defs/dnsData" },
        "subordinateHosts": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostObject.reference" },
          "readOnly": true
        },
        "expiryDate": { "type": "string", "format": "date-time", "readOnly": true },
        "authInfo":  { "$ref": "#/$defs/authInfo" },
        "processes": { "$ref": "#/$defs/processes", "readOnly": true }
      },
      "required": ["@type", "name", "provMetadata"]
    }
  }
}
]]>
</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/domainObject.update",
  "$defs": {
    "domainObject.update": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "domainName" },
        "registrant": { "$ref": "#/$defs/contactObject.reference" },
        "contacts": {
          "type": "array",
          "items": { 
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contactObject.reference" }
            },
            "required": ["label", "object"]
           }
        },
        "nameservers": {
          "type": "array",
          "items": { "$ref": "#/$defs/hostObject.reference" }
        },
        "dns":    { "$ref": "#/$defs/dnsData" },
        "authInfo": { "$ref": "#/$defs/authInfo" }
      },
      "required": ["@type"]
    }
  }
}
]]>
</sourcecode>
</section>

<section anchor="renew"><name>Renew</name>
<t>Renew minimal response schema (only expire date):</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/renewProcess.create.domain",
  "$defs": {
    "renewProcess.create.domain": {
       "$ref": "#/$defs/renewProcess.create"
    }
  }
}
]]>
</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/transferProcess.create.domain",
  "$defs": {
    "transferProcess.create.domain": {
      "allOf": [
        { "$ref": "#/$defs/transferProcess.create" },
        {
          "properties": {
            "transferPeriod": { "$ref": "#/$defs/period" }
          }
        }
      ]
    }
  }
}
]]>
</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/transferProcess.read.domain",
  "$defs": {
    "transferProcess.read.domain": {
      "allOf": [
        { "$ref": "#/$defs/transferProcess.read" },
        {
          "properties": {
            "expiryDate":  { "type": "string", "format": "date-time", "readOnly": true }
          }
        }
      ]
    }
  }
}
]]>
</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>Delete (Cancel) response 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/transferProcess.delete.domain",
  "$defs": {
    "transferProcess.delete.domain": {
      "$ref": "#/$defs/transferProcess.read.domain"
    }
  }
}
]]>
</sourcecode>
<t>Approve response 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/transferProcess.approve.domain",
  "$defs": {
    "transferProcess.approve.domain": {
      "$ref": "#/$defs/transferProcess.read.domain"
    }
  }
}
]]>
</sourcecode>
<t>Reject request Domain Object schema:</t>

<sourcecode type="json"><![CDATA[{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "#/$defs/transferProcess.reject.domain",
  "$defs": {
    "transferProcess.reject.domain": {
      "$ref": "#/$defs/transferProcess.reject"
    }
  }
}
]]>
</sourcecode>
<t>Reject 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.reject.domain",
  "$defs": {
    "transferProcess.reject.domain": {
      "$ref": "#/$defs/transferProcess.read.domain"
    }
  }
}
]]>
</sourcecode>
</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/domainObject.reference",
  "$defs": {
    "domainObject.reference": {
      "type": "object",
      "properties": {
        "@type":       { "type": "string", "const": "domainName", "readOnly": true },
        "name":        { "type": "string", "readOnly": true }
      },
      "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 EPP Compatibility Profile.</li>
<li><tt>card.addresses.addr</tt> MUST be provided in 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 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="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/contactObject.create",
  "$defs": {
    "contactObject.create": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "contact" },
        "id":     { "type": "string" },
        "contactInfo":   { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo" }
      },
      "required": ["@type", "id", "contactInfo"],
      "unevaluatedProperties": false
    }
  }
}
]]>
</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/contactObject.read",
  "$defs": {
    "contactObject.read": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "contact", "readOnly": true },
        "id":     { "type": "string", "readOnly": true },
        "provMetadata": { "$ref": "#/$defs/provMetadata" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/status" },
          "readOnly": true
        },
        "contactInfo":   { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo" }
      },
      "required": ["@type", "id", "provMetadata", "contactInfo"],
      "unevaluatedProperties": false
    }
  }
}
]]>
</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/contactObject.update",
  "$defs": {
    "contactObject.update": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "contact" },
        "contactInfo":   { "$ref": "#/$defs/Card" },
        "authInfo": { "$ref": "#/$defs/authInfo" },
        "processes": { "$ref": "#/$defs/processes", "readOnly": true }
      },
      "required": ["@type", "contactInfo"],
      "unevaluatedProperties": false
    }
  }
}
]]>
</sourcecode>
</section>

<section anchor="transfer-1"><name>Transfer</name>
<t>Transfer create request for Contact Object 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.contact",
  "$defs": {
    "transferProcess.create.contact": {
      "$ref": "#/$defs/transferProcess.create"
    }
  }
}
]]>
</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/contactObject.reference",
  "$defs": {
    "contactObject.reference": {
      "type": "object",
      "properties": {
        "@type":         { "type": "string", "const": "contact", "readOnly": true },
        "id":            { "type": "string", "readOnly": true }
      },
      "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="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/hostObject.create",
  "$defs": {
    "hostObject.create": {
      "type": "object",
      "properties": {
        "@type":    { "type": "string", "const": "host" },
        "hostName": { "type": "string", "format": "hostname" },
        "dns":      { "$ref": "#/$defs/dnsData" }
      },
      "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/hostObject.read",
  "$defs": {
    "hostObject.read": {
      "type": "object",
      "properties": {
        "@type":         { "type": "string", "const": "host", "readOnly": true },
        "hostName":      { "type": "string", "format": "hostname" },
        "provMetadata":  { "$ref": "#/$defs/provMetadata" },
        "status": {
          "type": "array",
          "items": { "$ref": "#/$defs/status" },
          "readOnly": true
        },
        "dns":           { "$ref": "#/$defs/dnsData" },
        "processes":     { "$ref": "#/$defs/processes", "readOnly": true }
      },
      "required": ["@type", "hostName", "provMetadata"]
    }
  }
}
]]>
</sourcecode>
</section>

<section anchor="update-2"><name>Update</name>
<t>TODO</t>
</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/hostObject.reference",
  "$defs": {
    "hostObject.reference": {
      "type": "object",
      "properties": {
        "@type":         { "type": "string", "const": "host", "readOnly": true },
        "hostName":      { "type": "string", "format": "hostname", "readOnly": true }
      },
      "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/organisationObject.create",
  "$defs": {
    "organisationObject.create": {
      "type": "object",
      "properties": {
        "@type":       { "type": "string", "const": "organisation" },
        "id":          { "$ref": "#/$defs/identifier" },
        "roles":       {
          "type": "object",
          "additionalProperties": { "$ref": "#/$defs/organisationRole" },
          "minProperties": 1
        },
        "parent":    { "$ref": "#/$defs/organisationObject.reference" },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "contacts": {
          "type": "array",
          "items": { 
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/contactObject.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/organisationObject.read",
  "$defs": {
    "organisationObject.read": {
      "allOf": [
        { "$ref": "#/$defs/organisationObject.create" },
        {
          "properties": {
            "provMetadata": { "$ref": "#/$defs/provMetadata", "readOnly": true },
            "status": {
              "type": "array",
              "items": { "$ref": "#/$defs/status" },
              "readOnly": true
            },
            "users": {
              "type": "array",
              "items": { 
                "type": "object",
                "properties": {
                  "label": { "type": "string" },
                  "object": { "$ref": "#/$defs/userObject.reference" }
                },
                "required": ["label", "object"]
              }
            }
          },
          "required": ["provMetadata", "status"]
        }
      ]
    }
  }
}
]]>
</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/organisationObject.update",
  "$defs": {
    "organisationObject.update": {
      "type": "object",
      "properties": {
        "@type":       { "type": "string", "const": "organisation" },
        "roles":       {
          "type": "object",
          "additionalProperties": { "$ref": "#/$defs/organisationRole" }
        },
        "parent":    { "$ref": "#/$defs/organisationObject.reference" },
        "contactInfo": { "$ref": "#/$defs/Card" },
        "contacts": {
            "type": "array",
            "items": { 
              "type": "object",
              "properties": {
                "label": { "type": "string" },
                "object": { "$ref": "#/$defs/contactObject.reference" }
              },
              "required": ["label", "object"]
            }
        },
        "status": {
              "type": "array",
              "items": { "$ref": "#/$defs/status" },
              "readOnly": true
        },
        "users":       {
          "type": "array",
          "items": { 
            "type": "object",
            "properties": {
              "label": { "type": "string" },
              "object": { "$ref": "#/$defs/userObject.reference" }
            },
            "required": ["label", "object"]
          }
        }
      },
      "required": ["@type"]
    }
  }
}
]]>
</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/organisationObject.reference",
  "$defs": {
    "organisationObject.reference": {
      "type": "object",
      "properties": {
        "@type": { "type": "string", "const": "organisation", "readOnly": true },
        "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>Note: User status values are plain strings, not Status Objects.</t>

<section anchor="create-5"><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/userObject.create",
  "$defs": {
    "userObject.create": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "user" },
        "organisationId": { "$ref": "#/$defs/organisationObject.reference" },
        "details": { "$ref": "#/$defs/contactObject.reference" },
        "status": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["active", "suspended", "deactivated", "pending"]
          }
        },
        "description":  { "type": "string", "const": "user" }
      },
      "required": ["@type", "organisationId", "details"]
    }
  }
}
]]>
</sourcecode>
</section>

<section anchor="read-5"><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/userObject.read",
  "$defs": {
    "userObject.read": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "user", "readOnly": true },
        "organisationId": { "$ref": "#/$defs/organisationObject.reference" },
        "userId": { "$ref": "#/$defs/identifier", "readOnly": true },
        "details": { "$ref": "#/$defs/contactObject.reference" },
        "status": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["active", "suspended", "deactivated", "pending"]
          }
        },
        "description":  { "type": "string", "const": "user" }
      },
      "required": ["@type", "userId", "details", "status"]
    }
  }
}
]]>
</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/userObject.update",
  "$defs": {
    "userObject.update": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "user" },
        "details": { "$ref": "#/$defs/contactObject.reference" },
        "status": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["active", "suspended", "deactivated", "pending"]
          }
        }
      },
      "required": ["@type"]
    }
  }
}
]]>
</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/userObject.reference",
  "$defs": {
    "userObject.reference": {
      "type": "object",
      "properties": {
        "@type":  { "type": "string", "const": "user", "readOnly": true },
        "id": { "$ref": "#/$defs/identifier", "readOnly": true }
      },
      "required": ["@type", "id"]
    }
  }
}
]]>
</sourcecode>
</section>
</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 domain name, contact, and host resources.</t>

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

<section anchor="create-6"><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": "jd1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "sh8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "sh8013" } }
    ],
    "authInfo": {
        "@type": "authInfo",
        "method": "authinfo",
        "authdata": "2fooBAR"
    },
    "processes": {
        "@type": "processes",
        "createProcess": [
            {
                "@type": "createProcess",
                "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": "status", "label": "ok" },
        { "@type": "status", "label": "addPeriod" }
    ],
    "expiryDate": "2001-04-03T22:00:00.0Z"
}
]]>
</sourcecode>
</section>

<section anchor="create-process-data"><name>Create Process Data</name>
<t>Example Create Process Object for a two-year registration period, as embedded above in <tt>processes.createProcess</tt>:</t>

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

<section anchor="read-6"><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": "status", "label": "ok" }
    ],
    "registrant": { "@type": "contact", "id": "jd1234" },
    "contacts": [
        { "label": "admin", "object": { "@type": "contact", "id": "sh8013" } },
        { "label": "tech", "object": { "@type": "contact", "id": "sh8013" } }
    ],
    "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": "createProcess",
                "period": {
                    "@type": "period",
                    "value": 2,
                    "unit": "y"
                }
            }
        ]
    }
}
]]>
</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": "sh8013" },
    "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": "status", "label": "ok" }
    ],
    "registrant": { "@type": "contact", "id": "sh8013" }
}
]]>
</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"
    }
}
]]>
</sourcecode>
</section>

<section anchor="renew-1"><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>Authorization information for the transfer MUST be conveyed using the <tt>RPP-Authorization</tt> HTTP header (see Rule 21), not in the JSON request body.</t>
<t>Example domain transfer request (pull transfer)</t>

<sourcecode type="json"><![CDATA[{
    "@type": "transferProcess",
    "transferDir": "pull",
    "transferPeriod": {
        "@type": "period",
        "value": 1,
        "unit": "y"
    }
}
]]>
</sourcecode>
<t>Example domain 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",
    "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": "transferProcess",
    "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 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": "transferProcess"
}
]]>
</sourcecode>
<t>The response is the Transfer Process Object, similar to the transfer create and 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 transfer create and query responses.</t>
</section>

<section anchor="transfer-reject"><name>Transfer Reject</name>
<t>Example domain 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 transfer create and 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 jd1234.",
        "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 jd1234.",
        "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="restore-query"><name>Restore Query</name>
<t>The 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="create-7"><name>Create</name>
<t>Example contact create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "jd1234",
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe",
            "components": [
                { "kind": "given",   "value": "John" },
                { "kind": "surname", "value": "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" },
                    { "kind": "country",  "value": "United States" }
                ],
                "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": "jd1234",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "JD1234-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "status", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe",
            "components": [
                { "kind": "given",   "value": "John" },
                { "kind": "surname", "value": "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" },
                    { "kind": "country",  "value": "United States" }
                ],
                "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-7"><name>Read</name>
<t>Example contact read response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "contact",
    "id": "jd1234",
    "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": "status", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe",
            "components": [
                { "kind": "given",   "value": "John" },
                { "kind": "surname", "value": "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" },
                    { "kind": "country",  "value": "United States" }
                ],
                "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" },
                    { "kind": "country",  "value": "United States" }
                ],
                "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": "jd1234",
    "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": "status", "label": "ok" }
    ],
    "contactInfo": {
        "@type": "Card",
        "version": "2.0",
        "kind": "individual",
        "name": {
            "full": "John Doe",
            "components": [
                { "kind": "given",   "value": "John" },
                { "kind": "surname", "value": "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" },
                    { "kind": "country",  "value": "United States" }
                ],
                "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>Authorization information for the transfer MUST be conveyed using the <tt>RPP-Authorization</tt> HTTP header (see Rule 21), 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 transfer create and query responses.</t>
</section>
</section>

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

<section anchor="create-8"><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" }
            }
        ]
    }
}
]]>
</sourcecode>
<t>Example host create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "NS1EXAMPLE-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientX",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "status", "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" }
            }
        ]
    }
}
]]>
</sourcecode>
</section>

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

<sourcecode type="json"><![CDATA[{
    "@type": "host",
    "hostName": "ns1.example.example",
    "provMetadata": {
        "@type": "provMetadata",
        "repositoryId": "NS1EXAMPLE-REP",
        "spClientId": "ClientX",
        "crClientId": "ClientY",
        "crDate": "1999-04-03T22:00:00.0Z"
    },
    "status": [
        { "@type": "status", "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="restore-query-1"><name>Restore Query</name>
<t>The 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-9"><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" },
                    { "kind": "country",  "value": "Netherlands" }
                ],
                "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": "status", "label": "ok" }
    ],
    "roles": { "registrar":
        {
            "@type": "organisationRole",
            "status": ["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" },
                    { "kind": "country",  "value": "Netherlands" }
                ],
                "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-9"><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": "status", "label": "linked" }
    ],
    "roles": { "registrar":
        {
            "@type": "organisationRole",
            "status": ["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" },
                    { "kind": "country",  "value": "Netherlands" }
                ],
                "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": ["clientLinkProhibited"],
            "roleId": "1234"
        }
    },
    "status": [
        { "@type": "status", "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-5"><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-10"><name>Create</name>
<t>Example user create request:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "details": { "@type": "contact", "id": "USER-1234" },
    "status": ["active"]
}
]]>
</sourcecode>
<t>Example user create response:</t>

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "userId": "UID-5001",
    "details": { "@type": "contact", "id": "USER-1234" },
    "status": ["active"]
}
]]>
</sourcecode>
</section>

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

<sourcecode type="json"><![CDATA[{
    "@type": "user",
    "organisationId": { "@type": "organisation", "id": "ORG-12345" },
    "userId": "UID-5001",
    "details": { "@type": "contact", "id": "USER-1234" },
    "status": ["active"]
}
]]>
</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": ["suspended"]
}
]]>
</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-6"><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>

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

<section anchor="internationalization-considerations"><name>Internationalization Considerations</name>
<t>TODO</t>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>TODO</t>
</section>

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

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

<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-rpp-core.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-rpp-data-objects.xml"/>
<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.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.simmen-rpp-dns-data.xml"/>
<reference anchor="JSON-SCHEMA" target="https://json-schema.org/draft/2020-12/json-schema-core">
  <front>
    <title>JSON Schema: A Media Type for Describing JSON Documents</title>
    <author>
      <organization>JSON Schema</organization>
    </author>
    <date year="2020"></date>
  </front>
</reference>
<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"/>
</references>
</references>

</back>

</rfc>
