POST api/usuarios/usuarios

Request Information

URI Parameters

None.

Body Parameters

UsuariosStoreModel
NameDescriptionTypeAdditional information
Nombre

string

Required

String length: inclusive between 0 and 255

Alias

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9_.+-]+$

String length: inclusive between 0 and 255

EmailAvisos

string

String length: inclusive between 0 and 255

Tipo

integer

Required

IdEmpleadoOdoo

integer

None.

Bloqueado

boolean

None.

IdSeccion

integer

Required

Cargo

integer

Required

Horarios

Collection of HorarioUsuarioStoreModel

None.

GestionarVacaciones

boolean

None.

VerVacacionesTodos

boolean

None.

VerInformesHorasExtrasTodos

boolean

None.

Password

string

Required

String length: inclusive between 6 and 255

PasswordConfirmation

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Nombre": "sample string 1",
  "Alias": "sample string 2",
  "EmailAvisos": "sample string 3",
  "Tipo": 1,
  "IdEmpleadoOdoo": 1,
  "Bloqueado": true,
  "IdSeccion": 1,
  "Cargo": 1,
  "Horarios": [
    {
      "IdHorario": 1,
      "FechaInicio": "2025-12-10T11:04:36.1707736+01:00"
    },
    {
      "IdHorario": 1,
      "FechaInicio": "2025-12-10T11:04:36.1707736+01:00"
    }
  ],
  "GestionarVacaciones": true,
  "VerVacacionesTodos": true,
  "VerInformesHorasExtrasTodos": true,
  "Password": "sample string 8",
  "PasswordConfirmation": "sample string 9"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UsuariosStoreModel'.

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultipartFormDataFormatter' to write type 'UsuariosStoreModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.