openapi: 3.0.3 info: title: Prolific Bonuses Projects API description: 'The Prolific API is a versioned REST interface for the Prolific online research participant recruitment platform. Researchers use it to programmatically create and publish studies, review and approve submissions, manage participant groups, projects and workspaces, apply demographic filters and requirements, pay bonuses, message participants, and subscribe to event webhooks (hooks). The API is served from https://api.prolific.com/api/v1 and follows a standard REST pattern: a collection endpoint (.../resource/) for GET (list) and POST (create), and an element endpoint (.../resource/{id}/) for GET, PATCH/PUT, and DELETE. All requests are authenticated with an API token supplied in the Authorization header as "Token ".' version: v1 contact: name: Prolific url: https://docs.prolific.com/api-reference license: name: Proprietary url: https://www.prolific.com/terms servers: - url: https://api.prolific.com/api/v1 description: Prolific API v1 security: - tokenAuth: [] tags: - name: Projects description: Organize studies within a workspace. paths: /workspaces/{workspace_id}/projects/: parameters: - $ref: '#/components/parameters/WorkspaceId' get: operationId: listProjects tags: - Projects summary: Get all projects in a workspace responses: '200': description: A list of projects. content: application/json: schema: type: object '401': $ref: '#/components/responses/Unauthorized' post: operationId: createProject tags: - Projects summary: Create a project requestBody: required: true content: application/json: schema: type: object properties: title: type: string responses: '201': description: The created project. content: application/json: schema: $ref: '#/components/schemas/Project' '401': $ref: '#/components/responses/Unauthorized' /projects/{id}/: parameters: - $ref: '#/components/parameters/ProjectId' get: operationId: getProject tags: - Projects summary: Get project responses: '200': description: A project. content: application/json: schema: $ref: '#/components/schemas/Project' '401': $ref: '#/components/responses/Unauthorized' patch: operationId: updateProject tags: - Projects summary: Update a project requestBody: required: true content: application/json: schema: type: object responses: '200': description: The updated project. content: application/json: schema: $ref: '#/components/schemas/Project' '401': $ref: '#/components/responses/Unauthorized' components: parameters: WorkspaceId: name: workspace_id in: path required: true schema: type: string description: The workspace ID. ProjectId: name: id in: path required: true schema: type: string description: The project ID. schemas: Error: type: object properties: error: type: object properties: detail: type: string error_code: type: integer Project: type: object properties: id: type: string title: type: string description: type: string workspace: type: string responses: Unauthorized: description: Authentication credentials were missing or invalid. content: application/json: schema: $ref: '#/components/schemas/Error' securitySchemes: tokenAuth: type: apiKey in: header name: Authorization description: API token supplied as "Token ".