List Project Members
GET/api/project-members
Without a filter this returns the memberships of every project, capped at 500 rows. Pass project_id to list the members of one project.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| project_id | Number | optional Optional filter by project ID |
| user_id | Number | optional Optional filter by user ID |
| is_leader | Number | optional Optional filter by the leader flag, 0 or 1 |
curl -X GET "https://yoursite.com/api/project-members" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
[
{
"id": "6",
"user_id": "3",
"project_id": "1",
"is_leader": "1",
"member_name": "Fname Lname",
"member_image": null,
"member_email": "member@example.com",
"job_title": "Designer",
"user_type": "staff",
"member_status": "active",
"project_title": "Website redesign",
"client_id": "5"
}
] Error-Response:
HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }