The Project User object
Attributes
Unique identifier for the object.
Default: false
Default: false
Default: false
{
"id": "project-user_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"user": "user_example",
"email": "user@example.com",
"image": "image_example",
"full_name": "full_name_example",
"welcome_email_sent": false,
"view_attachments": false,
"hide_timesheets": false,
"project_status": "project_status_example"
} /api/projects/project-user?parent_id={id} List project users by parent
Returns all project users belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of project user objects belonging to the parent.
curl https://api.overplane.dev/api/projects/project-user?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "project-user_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"user": "user_example",
"email": "user@example.com",
"image": "image_example",
"full_name": "full_name_example",
"welcome_email_sent": false,
"view_attachments": false,
"hide_timesheets": false,
"project_status": "project_status_example"
}
],
"has_more": false,
"total": 1
} /api/projects/project-user Create a project user
Creates a new project user object.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the newly created project user object if the call succeeded.
curl https://api.overplane.dev/api/projects/project-user \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example","user":"user_example"}' {
"id": "project-user_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"user": "user_example",
"email": "user@example.com",
"image": "image_example",
"full_name": "full_name_example",
"welcome_email_sent": false,
"view_attachments": false,
"hide_timesheets": false,
"project_status": "project_status_example"
} /api/projects/project-user/{id} Update a project user
Updates the specified project user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the project user to update.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the updated project user object.
curl https://api.overplane.dev/api/projects/project-user/project-user_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "project-user_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"user": "user_example",
"email": "user@example.com",
"image": "image_example",
"full_name": "full_name_example",
"welcome_email_sent": false,
"view_attachments": false,
"hide_timesheets": false,
"project_status": "project_status_example"
} /api/projects/project-user/{id} Delete a project user
Permanently deletes a project user. This cannot be undone.
Path parameters
The identifier of the project user to delete.
Returns
Returns a confirmation that the project user has been deleted.
curl https://api.overplane.dev/api/projects/project-user/project-user_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "project-user_abc123",
"deleted": true
} /api/projects/project-user/reorder Reorder project users
Updates the sort order of project users within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/projects/project-user/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "project-user_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"user": "user_example",
"email": "user@example.com",
"image": "image_example",
"full_name": "full_name_example",
"welcome_email_sent": false,
"view_attachments": false,
"hide_timesheets": false,
"project_status": "project_status_example"
}