---
updatedAt: 2025-11-04T11:20:36.000Z
agentTools:
  projectIndex: https://api.fracttal.com/llms.txt
---

# Crear recursos catalogados de tipo Recurso Humano en una OT

Mediante ésta API se puede insertar dentro de una OT recursos de la siguiente forma:

* Catalogados: de tipo inventario, recursos humanos y servicios
* No catalogados: de tipo inventario y servicios.

## Parámetros de entrada

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Parámetro
      </th>

      <th style={{ textAlign: "left" }}>
        Tipo
      </th>

      <th style={{ textAlign: "left" }}>
        Requerido
      </th>

      <th style={{ textAlign: "left" }}>
        Descripción
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        <code>catalogued</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Booleano_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        True para insertar un recurso catalogado, false en caso contrario. False, valor por defecto
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>type</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Número_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Tipo de recurso a insertar:
        1 : Para recursos de tipo inventario
        2 : Para recursos humanos
        3 : Para recursos de tipo servicios
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>code</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Texto_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Código del activo asociado a la OT. No se debe agregar cuando se envía el id_work_order_task o el barcode
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>qty</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Número_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Cantidad
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>unit_cost</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Número_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Costo unitario
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>code_user</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Texto_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Código del recurso humano a agregar (Sólo para recursos catalogados tipo recurso humano)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>rh_description</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Texto_
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Descripción del perfil del recurso humano (Sólo para recursos catalogados tipo recurso humano)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>code_account</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Texto_
      </td>

      <td style={{ textAlign: "left" }}>
        Sí
      </td>

      <td style={{ textAlign: "left" }}>
        Se debe enviar cuando se inserta un recurso catalogado
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>note</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Texto_
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Nota
      </td>
    </tr>
  </tbody>
</Table>

## Ejemplo:

Petición: **(POST)<https://app.fracttal.com/api/wo_resources/OT-27407>**

```json body
{
    "catalogued":true,
    "type": 2,
    "code":"LFR-001",
    "qty":4,  
    "unit_cost":150,
    "code_user": "AMPEREZ",  
    "rh_description": "ELECTRICISTA",
    "code_account":"JCDIAZ"
    
}
```
```json Response
{
    "success": true,
    "message": "200",
    "data": {
        "id": "[17249060,2]",
        "type_description": "HUMAN_RESOURCES",
        "description": "ELECTRICISTA",
        "code": "39297795",
        "units_description": "HOUR",
        "units_code": "H",
        "source_description": "OSCAR ALBERTO DIAZ",
        "qty": 4,
        "unit_cost": 80,
        "total_cost": 320,
        "id_movements_details": null,
        "id_movement": null,
        "folio_source": null
    },
    "total": 1
}
```

<HTMLBlock>{`
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Maven+Pro&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Heebo' rel='stylesheet'>
<style>
      table {
      border-collapse: collapse;
      border-radius: 1em;
      overflow: hidden;
    }
    
    th,
    td {
      border: 1px solid #E5E5E5;
      padding: 1em;
    }


    body {
      margin: 1.5em;
    }

    .font{
font-size: 14px;
font-weight: 700;
line-height: 17px;
letter-spacing: 0em;
text-align: left;
    color: #4687F1;
      font-style: uppercase;
  }
    table thead {
      background: rgba(70, 135, 241, 0.1) !important;
      color: #4687F1 !important;
      font-size: 13px !important;
      line-height: 17px !important;
    }
  .type-get {
      background-color: #6bbd5b;
      color: white;
      font-size: .7rem;
      padding: .2rem;
      border-radius: .2rem;
      text-transform: uppercase;
      font-weight: bold;
  }
  
  .frame-full {
      width: 100%;
      height: 1000px;
      border-width: 0;
  }

  h1, h2, h3, h4, h5, h6 {
  	font-family: 'Heebo', sans-serif;
  }
  
  code {
  	max-height: 40vh!important;
  }
  
  hr.rounded {
    border-top: 5px solid black;
    border-radius: 5px;
  }
  
  #ReferencePlayground {
  	display: none;
  }
  .Reference-section {
  	display: none;
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "recurso-catalogado-recurso-humano",
    "version": "1-Es"
  },
  "servers": [
    {
      "url": "https://app.fracttal.com/api/wo_resources/:id"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Crear recursos catalogados de tipo Recurso Humano en una OT",
        "description": "",
        "operationId": "insertar-recursos-catalogados-de-tipo-recurso-humano-en-una-ot",
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```