Saltar al contenido principal

Contrato histórico: POST create-importer-job

Contrato histórico de API. Esta página describe un contrato anterior. Los métodos, las rutas y las respuestas pueden diferir de la API vigente.

Significado histórico​

Crear trabajo de importador

API vigente​

Para desarrollar una integración nueva, consulta la referencia o guía vigente enlazada.

Leer la guía vigente

Parámetros​

[
{
"name": "api_version",
"in": "path",
"schema": {
"type": "string",
"default": "v400"
},
"required": true
},
{
"name": "language",
"in": "path",
"schema": {
"type": "string",
"default": "en"
},
"required": true
},
{
"name": "project",
"in": "path",
"schema": {
"type": "string",
"default": "<redacted-personal>"
},
"required": true
},
{
"name": ":importer_id",
"in": "path",
"schema": {
"type": "integer",
"format": "int32"
},
"required": true
}
]

Cuerpo de solicitud​

{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string"
},
"import_options": {
"type": "string",
"description": "{ \"separator\": \"Separador de CSV\", (Opcional)(PREDETERMINADO ;) \"enclosure\": \"Delimitador de CSV\", (Opcional)(PREDETERMINADO \") \"escape\": \"Carácter de escape de CSV\", (Opcional)(PREDETERMINADO \\) \"start_line\": \"Comenzar desde la línea x\" (Opcional)(PREDETERMINADO 1) }",
"format": "json"
}
}
}
}
}
}

Respuestas​

{
"200": {
"description": "200",
"content": {
"application/json": {
"examples": {
"Result": {
"value": "{}"
}
},
"schema": {
"type": "object",
"properties": {}
}
}
}
},
"400": {
"description": "400",
"content": {
"application/json": {
"examples": {
"Result": {
"value": "{}"
}
},
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}