A
How to add new user??
Amarjeet about 4 years ago 5617 views 2 replies
when i try to add ,it shows authentication failed ,can anybody help me with this??
2 replies
Z
zeevy about 4 years ago
For create or update or delete api you need to press the access token.
This is the curl request for user creation.
curl -i -H Accept:application/json
-H Content-Type:application/json
-H Authorization: Bearer ACCESS-TOKEN
-XPOST https://gorest.co.in/public/v2/users
-d '{name
:Tenali Ramakrishna
, gender
:male
, email
:tenali.ramakrishna@15ce.com
, status
:active
}'
B
Bijan Nazari about 4 years ago
curl -i -H Accept:application/json
-H Content-Type:application/json
-H Authorization: Bearer ACCESS-TOKEN
-XPOST https://gorest.co.in/public/v2/users
-d '{name
:Tenali Ramakrishna
, gender
:male
, email
:tenali.ramakrishna@15ce.com
, status
:active
}'