# Ordenador | Schema V1 | 2025 - ∞

##### **Tipo Envio: Diário**

---

##### **Objeto Raiz**

<table border="1" class="min-w-full border-collapse text-sm leading-[1.7] whitespace-normal" id="bkmrk-campo-informa%C3%A7%C3%B5es-ti" style="width: 100%; border-collapse: collapse; border-style: solid;"><thead><tr><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 17.0413%;">**Campo**</td><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 82.9587%;">**Informações**</td></tr></thead><tbody><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.0413%;">`timestamp`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 82.9587%;">Campo utilizado para **ordenar** a validação das informações enviadas. Caso sejam enviados **múltiplos payloads** do mesmo tipo, a ordenação ocorrerá da **data mais antiga para a mais recente**</td></tr><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.0413%;">`elementos`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 82.9587%;">–</td></tr></tbody></table>

---

##### **Item**  


<table class="min-w-full border-collapse text-sm leading-[1.7] whitespace-normal" id="bkmrk-campo-chave-informa%C3%A7" style="width: 90%;"><thead class="text-left"><tr><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 17.4834%;">**Campo**</th><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 7.81772%;">**Chave**</th><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 74.6988%;">**Informações**</th></tr></thead><tbody><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.4834%;">`cpfOrdenador`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.81772%;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 74.6988%;">–</td></tr><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.4834%;">`nomeOrdenador`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.81772%;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 74.6988%;">–</td></tr><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.4834%;">`action`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.81772%;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 74.6988%;">Define a operação a ser realizada com a informação, seja ela **criação, atualização ou exclusão**</td></tr></tbody></table>

<figure class="wp-block-table is-style-stripes" id="bkmrk--2"></figure>---

##### **Schema**

```
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Ordenador",
  "description": "Schema para envio de ordenadores por unidade gestora",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)\\.\\d{3,6}$",
      "examples": ["2025-09-11T15:30:00.123456"]
    },
    "elementos": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "object",
        "properties": {
          "cpfOrdenador": {
            "type": "string",
            "minLength": 11,
            "maxLength": 11,
            "pattern": "^[0-9]+$"
          },
          "nomeOrdenador": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50
          },
          "action": {
            "type": "string",
            "enum": ["CREATE", "UPDATE", "DELETE"]
          }
        },
        "required": [
          "cpfOrdenador",
          "nomeOrdenador",
          "action"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["timestamp", "elementos"],
  "additionalProperties": false
}
```

---

##### **Exemplo de Payload**

```
{
  "timestamp": "2025-09-11T15:30:00.123456",
  "elementos": [
    {
      "cpfOrdenador": "12345678901",
      "nomeOrdenador": "Carlos Alberto Souza",
      "action": "CREATE"
    },
    {
      "cpfOrdenador": "98765432100",
      "nomeOrdenador": "Maria José Ferreira",
      "action": "UPDATE"
    },
    {
      "cpfOrdenador": "11122233344",
      "nomeOrdenador": "José Antônio Lima",
      "action": "DELETE"
    }
  ]
}
```