POST/v1/admin/center-typesCreate Center Type
Cuerpo obligatorio CenterTypeCreateIn
| Campo | Tipo | Obl. |
|---|
code | string | Sí |
label | string | Sí |
aliases | lista de string | No |
description | string o nulo | No |
status | string | No |
active | boolean | No |
Respuestas
| Código | Descripción | Devuelve |
|---|
| 201 | Respuesta correcta | CenterTypeOut |
| 422 | Error de validación | HTTPValidationError |
PATCH/v1/admin/center-types/{center_type_id}Update Center Type
Parámetros
| Nombre | En | Tipo | Obl. |
|---|
center_type_id | path | string | Sí |
Cuerpo obligatorio CenterTypeUpdateIn
| Campo | Tipo | Obl. |
|---|
label | string o nulo | No |
aliases | lista de string o nulo | No |
description | string o nulo | No |
status | string o nulo | No |
active | boolean o nulo | No |
Respuestas
| Código | Descripción | Devuelve |
|---|
| 200 | Respuesta correcta | CenterTypeOut |
| 422 | Error de validación | HTTPValidationError |
List Center Types
Parámetros
| Nombre | En | Tipo | Obl. |
|---|
q | query | string o nulo | No |
activeOnly | query | boolean | No |
includeDeprecated | query | boolean | No |
Respuestas
| Código | Descripción | Devuelve |
|---|
| 200 | Respuesta correcta | lista de CenterTypeOut |
| 422 | Error de validación | HTTPValidationError |