Tâche

Tâche

Tâche - Ajouter une nouvelle tâche

POST  votredomaine.com/api/tasks

Header

json

Champ

Type

Description

Authorization

String

Jeton d'authentification d'accès de base.

Paramètre

json

Champ

Type

Description

name

String

Nom de tâche obligatoire.

startdate

Date

Date de début de tâche obligatoire.

is_public (facultatif)

String

Tâche facultative publique.

billable (facultatif)

String

Tâche optionnelle facturable.

hourly_rate (facultatif)

String

Taux horaire de la tâche facultative.

milestone (facultatif)

String

Etape de tâche facultatif.

duedate (facultatif)

Date

Échéance facultative de la tâche.

priority (facultatif)

String

Priorité de la tâche facultative.

repeat_every (facultatif)

String

La tâche facultative se répète tous les.

repeat_every_custom (facultatif)

Number

La tâche facultative répète chaque coutume.

repeat_type_custom (facultatif)

String

Type de répétition de tâche facultatif personnalisé.

cycles (facultatif)

Number

Cycles optionnels.

rel_type

String

Tâche obligatoire liée.

Valeurs autorisées : "lead", "customer", "invoice", , "project", "quotation", "contract", "annex", "ticket", "expense""proposal"

rel_id

Number

ID associé facultatif.

tags (facultatif)

String

Balises de tâche facultatives.

description (facultatif)

String

Description facultative de la tâche.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

La tâche a été ajoutée avec succès.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Échec de l'ajout de la tâche.

  • Réponse réussie

HTTP/1.1 200 OK{  "status": true,  "message": "Task add successful."}

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "Task add fail."}

Tâche - Supprimer une tâche

SUPPRIMER  votredomaine.com/api/delete/tasks/:id

Header

json

Champ

Type

Description

Authorization

String

Jeton d'authentification d'accès de base.

Paramètre

json

Champ

Type

Description

id

Number

ID unique de la tâche.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

Suppression de la tâche réussie.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Échec de la suppression de la tâche.

  • Réponse réussie

HTTP/1.1 200 OK{  "status": true,  "message": "Task Delete Successful."}

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "Task Delete Fail."}

Tâche - Demander des informations sur la tâche

OBTENEZ  votredomaine.com/api/tasks/:id

Header

json

Champ

Type

Description

Authorization

String

Jeton d'authentification d'accès de base.

Paramètre

json

Champ

Type

Description

identifiant

Number

ID unique de la tâche.

Succès 200

json

Champ

Type

Description

Tasks

Objet

information.

Erreur 4xx

json

Nom

Type

Description

status

booléen

État de la demande.

message

String

Aucune donnée n'a été trouvée.

  • Réponse réussie

TTP/1.1 200 OK
{
"id": "10",
"name": "Khảo sát chi tiết hiện trạng",
"description": "",
"priority": "2",
"dateadded": "2019-02-25 12:26:37",
"startdate": "2019-01-02 00:00:00",
"duedate": "2019-01-04 00:00:00",
"datefinished": null,
"addedfrom": "9",
"is_added_from_contact": "0",
"status": "4",
"recurring_type": null,
"repeat_every": "0",
"recurring": "0",
"is_recurring_from": null,
...
}

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "No data were found"}

Tâche - Rechercher des informations sur les tâches

OBTENEZ  votredomaine.com/api/tasks/search/:keysearch

Header

json

Champ

Type

Description

Authorization

String

Jeton d'authentification d'accès de base.

Paramètre

json

Champ

Type

Description

Keysearch

String

Rechercher des mots-clés.

Succès 200

json

Champ

Type

Description

Tasks

Objet

information.

Erreur 4xx

json

Nom

Type

Description

status

booléen

État de la demande.

message

String

Aucune donnée n'a été trouvée.

  • Réponse réussie

HTTP/1.1 200 OK
{
"id": "10",
"name": "Khảo sát chi tiết hiện trạng",
"description": "",
"priority": "2",
"dateadded": "2019-02-25 12:26:37",
"startdate": "2019-01-02 00:00:00",
"duedate": "2019-01-04 00:00:00",
"datefinished": null,
"addedfrom": "9",
"is_added_from_contact": "0",
"status": "4",
"recurring_type": null,
"repeat_every": "0",
"recurring": "0",
"is_recurring_from": null,
...
}

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "No data were found"}

Tâche - Mettre à jour une tâche

PUT  votredomaine.com/api/tasks/:id

Header

json

Champ

Type

Description

Authorization

String

Jeton d'authentification d'accès de base.

Paramètre

json

Champ

Type

Description

name

String

Nom de tâche obligatoire.

startdate

Date

Date de début de tâche obligatoire.

is_public (facultatif)

String

Tâche facultative publique.

billable (facultatif)

String

Tâche optionnelle facturable.

hourly_rate (facultatif)

String

Taux horaire de la tâche facultative.

milestone (facultatif)

String

Etape de tâche facultatif.

duedate (facultatif)

Date

Échéance facultative de la tâche.

priority (facultatif)

String

Priorité de la tâche facultative.

repeat_every (facultatif)

String

La tâche facultative se répète tous les.

repeat_every_custom (facultatif)

Number

La tâche facultative répète chaque coutume.

repeat_type_custom (facultatif)

String

Type de répétition de tâche facultatif personnalisé.

cycles (facultatif)

Number

Cycles optionnels.

rel_type

String

Tâche obligatoire liée.

Valeurs autorisées : "lead", "customer", "invoice", , "project", "quotation", "contract", "annex", "ticket", "expense""proposal"

rel_id

Number

ID associé facultatif.

tags (facultatif)

String

Balises de tâche facultatives.

description (facultatif)

String

Description facultative de la tâche.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

Mise à jour de la tâche réussie.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Échec de la mise à jour de la tâche.

  • Réponse réussie

HTTP/1.1 200 OK{  "status": true,  "message": "Task Update Successful."}

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "Task Update Fail."}

Avez-vous trouvé cet article utile ?

  • Introduction

    API REST GlueCRM Commandes disponibles et exemples d'API REST pour GlueCRM Introduction L'API foncti...
  • Clients

    Client Client - Ajouter un nouveau client POST votredomaine.com/api/customers Header json Champ...
  • Contacts

    Contact Contact - Ajouter un nouveau contact POST votredomaine.com/api/contacts/ Header json Ch...
  • Factures

    Facture Facture - Ajouter une nouvelle facture POST votredomaine.com/api/invoices Header json C...
  • Articles

    Articles Articles - Demander des informations sur les articles OBTENEZ votredomaine.com/api/items/i...