[All schemas](/reference/schemas/) · [API reference](/reference/) · [Data mapping guide](/guides/data-model/)

## Fields

| Field | Required | Type / allowed values |
| --- | --- | --- |
| `category` | No | [ServiceCategory](/reference/schemas/service-category/) |
| `name` | No | string |
| `description` | No | string or null |
| `payload` | No | [RipsServiceTemplate](/reference/schemas/rips-service-template/) |
| `inputProvenance` | No | object |

## JSON definition

The JSON retains the source contract descriptions. Do not translate property names or enum values.

```json
{
  "type": "object",
  "properties": {
    "category": {
      "$ref": "#/components/schemas/ServiceCategory"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000
    },
    "payload": {
      "$ref": "#/components/schemas/RipsServiceTemplate"
    },
    "inputProvenance": {
      "type": "object",
      "additionalProperties": {},
      "description": "Procedencia de prellenados y ediciones explícitas. Se verifica contra la configuración del espacio."
    }
  },
  "additionalProperties": false,
  "description": "Actualización parcial de la plantilla. Si envía payload, envíe el objeto de plantilla que desea guardar.",
  "example": {
    "name": "Consulta de medicina general",
    "description": "Plantilla revisada de ejemplo"
  }
}
```
