Personnel

Personnel - Ajouter un nouveau personnel

POST  votredomaine.com/api/staffs

Header

json

Champ

Type

Description

Authorization

String

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

Paramètre

json

Champ

Type

Description

firstname

String

Nom du personnel obligatoire.

email

String

Liés au personnel obligatoire.

password

String

Mot de passe personnel obligatoire.

hourly_rate (facultatif)

Number

Tarif horaire en option.

phonenumber (facultatif)

String

Numéro de téléphone du personnel facultatif.

facebook (facultatif)

String

Personnel facultatif facebook.

linkedin (facultatif)

String

Personnel facultatif LinkedIn.

skype (facultatif)

String

Skype du personnel en option.

default_language (facultatif)

String

Facultatif Langue par défaut du personnel.

email_signature (facultatif)

String

Signature facultative de l'e-mail du personnel.

direction (facultatif)

String

Direction du personnel facultative.

send_welcome_email (facultatif)

String

Le personnel facultatif envoie un e-mail de bienvenue.

departments (facultatif)

Number[]

Départements du personnel en option.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

Le personnel ajoute du succès.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Le personnel ajoute un échec.

  • Réponse réussie

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

  • Réponse d’erreur

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

Portée - Supprimer une Portée

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

Header

json

Champ

Type

Description

Authorization

String

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

Paramètre

json

Champ

Type

Description

id

Number

Identifiant unique du personnel.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

Inscription du personnel réussie.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Ne pas enregistrer votre compte.

  • Réponse réussie

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

  • Réponse d’erreur

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

Personnel - Demander des informations sur le personnel

OBTENEZ  votredomaine.com/api/staffs/:id

Header

json

Champ

Type

Description

Authorization

String

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

Paramètre

json

Champ

Type

Description

id

Number

Identifiant unique du personnel.

Succès 200

json

Champ

Type

Description

Staff

Objet

information.

Erreur 4xx

json

Nom

Description

StaffNotFound

L'identifiant du Staff n'a pas été trouvé.

  • Réponse réussie

HTTP/1.1 200 OK
{
"staffid": "8",
"email": "data1.gsts@gmail.com",
"firstname": "Đào Quang Dân",
"lastname": "",
"facebook": "",
"linkedin": "",
"phonenumber": "",
"skype": "",
"password": "$2a$08$ySLokLAM.AqmW9ZjY2YREO0CIrd5K4Td\/Bpfp8d9QJamWNUfreQuK",
"datecreated": "2019-02-25 09:11:31",
"profile_image": "8.png",
...
}

  • Réponse d’erreur

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

Personnel - Rechercher des informations sur le personnel

OBTENEZ  votredomaine.com/api/staffs/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

Staff

Objet

information.

Erreur 4xx

json

Nom

Description

StaffNotFound

L'identifiant du Staff n'a pas été trouvé.

  • Réponse réussie

HTTP/1.1 200 OK
{
"staffid": "8",
"email": "data1.gsts@gmail.com",
"firstname": "Đào Quang Dân",
"lastname": "",
"facebook": "",
"linkedin": "",
"phonenumber": "",
"skype": "",
"password": "$2a$08$ySLokLAM.AqmW9ZjY2YREO0CIrd5K4Td\/Bpfp8d9QJamWNUfreQuK",
"datecreated": "2019-02-25 09:11:31",
"profile_image": "8.png",
...
}

  • Réponse d’erreur

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

Personnel - Mettre à jour un personnel

PUT  votredomaine.com/api/staffs/:id

Header

json

Champ

Type

Description

Authorization

String

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

Paramètre

json

Champ

Type

Description

firstname

String

Nom du personnel obligatoire.

email

String

Liés au personnel obligatoire.

password

String

Mot de passe personnel obligatoire.

hourly_rate (facultatif)

Number

Tarif horaire en option.

phonenumber (facultatif)

String

Numéro de téléphone du personnel facultatif.

facebook (facultatif)

String

Personnel facultatif facebook.

linkedin (facultatif)

String

Personnel facultatif LinkedIn.

skype (facultatif)

String

Skype du personnel en option.

default_language (facultatif)

String

Facultatif Langue par défaut du personnel.

email_signature (facultatif)

String

Signature facultative de l'e-mail du personnel.

direction (facultatif)

String

Direction du personnel facultative.

departments (facultatif)

Number[]

Départements du personnel en option.

Succès 200

json

Champ

Type

Description

status

String

État de la demande.

message

String

Mise à jour du personnel réussie.

Erreur 4xx

json

Nom

Type

Description

status

String

État de la demande.

message

String

Échec de la mise à jour du personnel.

  • Réponse réussie

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

  • Réponse d’erreur

HTTP/1.1 404 Not Found{  "status": false,  "message": "Staff 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...