Créer une catégorie
POST /firms/FIRM_ID/categories.json
Création d’une nouvelle catégorie. On obtient en retour le code JSON de la catégorie créé, avec l’ID qui lui a été attribué.
Requête
curl -i -S -u Identifiant:CleApi -H 'User-Agent: MonApp (patrick@camping.test)' \
-X POST -d '{"title":"Prestation de services","status":"1"}' \
"https://www.facturation.pro/firms/FIRM_ID/categories.json"
Réponse
Status: 201 Created
Location: /firms/FIRM_ID/categories/5010.json
{
"id": 5010,
"status": 1,
"title": "Prestation de services"
}