Skip to content

Instantly share code, notes, and snippets.

@eddychilakiller
Last active November 20, 2020 17:49
Show Gist options
  • Save eddychilakiller/8badae78b334c1265ff88a511bd81224 to your computer and use it in GitHub Desktop.
Save eddychilakiller/8badae78b334c1265ff88a511bd81224 to your computer and use it in GitHub Desktop.
prueba GLPI
## Crea un nuevo ticket
curl -X "POST" "http://10.100.10.3/apirest.php/Ticket/" \
-H 'Content-Type: application/json' \
-H 'Session-Token: j22ba8v4n19g9n6ao84moom5bc' \
-H 'App-Token: prueba1' \
-H 'Authorization: ' \
-d $'{
"input": {
"status": 1,
"global_validation": 2,
"itilcategories_id": 1,
"priority": 2,
"type": 2,
"requesttypes_id": 2,
"date": "2020-11-01 00:00:00",
"time_to_resolve": "14-11-2020 00:00",
"urgency": 2,
"impact": 1,
"locations_id": 1,
"name": "REQ 2020Nov11: Solicitud de actualización de imagen institucional",
"content": " Prueba en el req 2020Nov11"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment