Expose an API-Key authenticated API to get and create helpdesk tickets.
Project description
This module exposes an API-Key authenticated API to get and create helpdesk tickets
Table of contents
Configuration
To give access to the API to a structure, go to
Settings > Technical (debug mode) > Auth API Key
Click create and select a user, save.
Communicate the API-KEY to those in need to use the API.
Usage
Create tiquets
Example of curl to create a ticket with two variables to fill: - API_KEY: authorized key from the odoo server’s API-KEY (see previows paragraph) - ODOO_URL: target ODOO server’s URL - CONTENT: base64 encoded image to attach to the ticket
Tickets can be created by just one of the following parameters: - partner_ref - partner_email - partner_vat - contract_code
“attachments” is an array of objects, optional, each one with the following fields: - filename: name of the file - content: base64 encoded file - mimetype: mimetype of the file
CONTENT=$(base64 image.jpg)
curl -X POST \
-H "accept: application/json" \
-H "api-key: $APIKEY" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg content "$CONTENT" \
'{
summary: "New Ticket",
description: "this is an API created ticket",
partner_ref: "2828",
team: "HTTe_loc",
category: "HTCa_soft",
channel: "HTCh_web",
priority: "0",
tags: "HTTa_hard,HTTa_tec",
attachments: [
{
filename: "image_name",
content: $content,
mimetype: "image/jpg"
}
]
}')" \
"$ODOO_URL/api/ticket"
Search tiquets
- Tickets can be search by, either:
partner_ref, returning those tickets linked to the given partner
contract_code, returning those tickets related to the given contract.
Also, and in any of these cases, we can filter by stage, using the stage code to exclude from our result all tickets in a different stage.
curl -X GET \
-H "accept: application/json" \
-H "api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"partner_ref": "10112",
"stage": "stage_code",
}' \
"$ODOO_URL/api/ticket/getlist"
Known issues / Roadmap
There are no issues for the moment.
Bug Tracker
Bugs are tracked on GitLab Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Álvaro Mellado <alvaro.mellado@somit.coop>
José Robles <jose.robles@somit.coop>
-
Gerard Funosas <gerard.funosas@somconnexio.coop>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file odoo-addon-helpdesk_ticket_api-16.0.1.0.0.tar.gz
.
File metadata
- Download URL: odoo-addon-helpdesk_ticket_api-16.0.1.0.0.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcdfe958dbbba33f0f238065f5334e6e7c629274e1a7a40d26b23c412e814a09 |
|
MD5 | 9c5e30efca9d0dca43e0ca7f4f877bd4 |
|
BLAKE2b-256 | 87e253909efc29c89ca12ed4859f118f029b5a4081fa56a04d0610a8171ec6eb |
File details
Details for the file odoo_addon_helpdesk_ticket_api-16.0.1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_helpdesk_ticket_api-16.0.1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c67015576fcaea8623fe54402d56d4a0e148cc348ecdf85ff77bd71cd0747c6f |
|
MD5 | d11b2a1a9eb1b5b37c186854aab8aae7 |
|
BLAKE2b-256 | 74604ca8e57975af4907d74eca08e57cb46d185e7720a6ecdd3034e4917e470a |