---
# System prepended metadata

title: Projects

---

# Projects

> query(`searchProjects`) {

     organizationId: string,
     args: {
       limit: number;
       page: number;
       searchTerm?: string;
     }
} => Paginate<ProjectResponse[]>

## Project Self Rater

> query(`project`) {
    organizationId: string;
    projectId: string;
} => ProjectResponse

> query(`searchSelfRaters`) {

    args: {
      limit: number;
      page: number;
      searchTerm?: string;
    };
    organizationId: string;
    projectId: string;
} => Paginate<SearchSelfRaterResponse[]> (userId)

> query(`selfRater`) {
  _id: string;
  organizationId: string;
  projectId: string;
} => SelfRaterResponse (participants: ParticipantResponse[])

### Project Setting

> query(`projectSettings`) {
  organizationId: string;
  projectId: string;
} => ProjectSettingsResponse

> mutation(`setProjectSettings`) {
  input: SetProjectSettingsInput;
  organizationId: string;
  projectId: string;
} => ProjectSettingsResponse


#### Send and CRUD Project

> query(`searchSurveyProjects`) {

    args: {
      limit: number;
      page: number;
      searchTerm?: string;
    };
    organizationId: string;
    surveyId: string;
} => Pagination<ProjectResponse[]>

> mutation(`createProject`) {
  input: {color: string;name: string;};
  organizationId: string;
  surveyId: string;
} => projectId

- not used in frontend `updateProject`
> mutation(`updateProject`) {
  input:  {color: string;name: string;};
  organizationId: string;
  projectId: string;
} => ProjectResponse

> mutation(`sendProject`) {

      input: {
        endDate: date;
        selfRaters: SelfRaterInput[];
        sendDate: date;
        startDate: date;
      };
      organizationId: string;
      projectId: string;
} => {message, success}

##### Participants

> query(`downloadParticipantsCsvTemplate`) {} => string

> mutation(`importParticipantsCsv`) {
  organizationId: string;
  participantsCsv?: Upload;
  projectId: string;
} => ParticipantsCsvResponse[]