---
title: "POST /api/v2/owner/{owner}/project"
method: POST
path: "/api/v2/owner/{owner}/project"
tags: ["project"]
---

# POST /api/v2/owner/{owner}/project

`POST /api/v2/owner/{owner}/project`

## Path parameters

- `owner` string, required

## Request body

- Project
  - `access_level` 'PRIVATE' | 'AUTHENTICATED' | 'PUBLIC'
  - `allow_concurrent_runs` boolean, nullable
  - `archived_at` string, date-time, nullable
  - `created_at` string, date-time
  - `default_branch` string, nullable
  - `has_api_run` boolean
  - `has_code_run` boolean
  - `is_archived` boolean
  - `is_deleted` boolean
  - `latest_active_run` RunGetSchemaWithMetadata
    - `advanced_triage_run_valgrind` boolean
    - `api_run` GetApiRun
      - `cli_command` string[], nullable
      - `cli_command_secrets` string[], nullable
      - `created_at` string, date-time
      - `duration_mode` 'AUTOMATIC' | 'TIME' | 'GOAL', required
      - `endpoint_coverage` EndpointCoverage
        - `V1` EndpointCoverageV1, required
          - `entries` EndpointCoverageV1Entry[], required
            - `hits` integer, required
            - `method` string, required
            - `path` string, required
            - `status` integer
            - `tags` string[], required
      - `endpoint_latency` EndpointLatency
        - `V1` EndpointLatencyV1, required
          - `entries` EndpointLatencyV1Entry[], required
            - `buckets` integer[], required
            - `hits` integer[], required
            - `method` string, required
            - `path` string, required
            - `tags` string[], required
      - `has_request_stats` boolean
      - `html_report_sha` string
      - `junit_sha` string
      - `latency_p50_millis` integer
      - `latency_p90_millis` integer
      - `latency_p99_millis` integer
      - `no_defects_endpoint_count` integer
      - `passing_endpoint_count` integer
      - `progress_percent` number, required
      - `progress_sec` integer, required
      - `reports_zip_sha` string
      - `sarif_sha` string
      - `spec_source` 'OPENAPI' | 'HAR_OPENAPI' | 'POSTMANCOLLECTION_OPENAPI' | 'SWAGGERV2_OPENAPI' | 'POSTMANCOLLECTION' | 'REPLAY' | 'UNKNOWN'
      - `specification_url` string
      - `status` 'PENDING' | 'RUNNING' | 'COMPLETE' | 'CANCELLED' | 'FAILED', required
      - `total_endpoint_count` integer
      - `unauthed_endpoint_count` integer
      - `unsuccessful_endpoint_count` integer
      - `updated_at` string, date-time
      - `url` string
    - `base_testsuite_id` integer, nullable
    - `branch_name` string, nullable
    - `build_id` string
    - `ci_type` string, nullable
    - `ci_url` string, url, nullable
    - `cli_version` string, nullable
    - `cputime` integer
    - `created_at` string, date-time
    - `current_workers` integer
    - `description` string
    - `desired_workers` integer
    - `docker_pullable` string
    - `docker_registry_id` integer, nullable
    - `docker_registry_url` string
    - `duration` integer, nullable
    - `edges_covered` integer
    - `elapsed_real_time` integer, nullable
    - `ended` boolean
    - `ended_at` string, date-time, nullable
    - `failed` boolean
    - `fetched_docker_image_digest` string
    - `has_critical_errors` boolean
    - `interface_info` object
    - `is_deleted` boolean
    - `is_mayhem_bot` boolean
    - `is_pure_docker` boolean
    - `merge_base_branch_name` string, nullable
    - `n_behavior_crash_reports` integer
    - `n_behavior_defects` integer
    - `n_behavior_testcase_reports` integer
    - `n_behavior_valgrind_errors` integer
    - `n_crash_reports` integer
    - `n_defects` integer
    - `n_desired_cpu` integer
    - `n_desired_memory` number
    - `n_exploitability_factors_passing` integer
    - `n_exploitability_factors_total` integer
    - `n_optimized_set_testcases` integer
    - `n_regression_crash_reports` integer
    - `n_regression_defect_reports` integer
    - `n_regression_defects` integer
    - `n_regression_testcase_reports` integer
    - `n_regression_valgrind_errors` integer
    - `n_starting_testcases` integer, nullable
    - `n_testcase_reports` integer
    - `n_total_cpu` integer
    - `n_total_memory` number
    - `n_valgrind_errors` integer
    - `name` string
    - `output_testsuite_id` integer, nullable
    - `owner` string
    - `owner_name` string
    - `parent_revision` string, nullable
    - `pending` boolean
    - `phase` RunPhaseCurrent
      - `description` string
      - `duration` integer, nullable
      - `elapsed_real_time` integer, nullable
      - `ended_at` string, date-time, nullable
      - `failed` boolean
      - `finalizing_at` string, date-time, nullable
      - `msg` string
      - `name` string
      - `pending_status` string
      - `phase_name` string
      - `preparing_at` string, date-time, nullable
      - `smoketesting_succeeded` boolean, nullable
      - `started_at` string, date-time, nullable
      - `status` string
      - `stopped` boolean
      - `value` number, nullable
    - `phases` RunPhase[]
      - `duration` integer, nullable
      - `elapsed_real_time` integer, nullable
      - `ended_at` string, date-time, nullable
      - `failed` boolean
      - `finalizing_at` string, date-time, nullable
      - `msg` string
      - `pending_status` string
      - `phase_name` string
      - `preparing_at` string, date-time, nullable
      - `smoketesting_succeeded` boolean, nullable
      - `started_at` string, date-time, nullable
      - `status` string
      - `stopped` boolean
    - `project_name` string
    - `project_slug` string
    - `revision` string, nullable
    - `run_attributes` object, nullable
    - `run_id` integer, required
    - `run_number` integer
    - `scm_commit_author` string, nullable
    - `scm_commit_author_email` string, nullable
    - `scm_commit_subject` string, nullable
    - `scm_remote_origin` string, nullable
    - `started` boolean
    - `started_at` string, date-time, nullable
    - `started_by` string
    - `stopped` boolean
    - `target_id` integer, required
    - `target_name` string
    - `target_slug` string
    - `task_id` string
    - `tests_per_second` number
    - `tests_run` integer
    - `tests_run_honggfuzz` integer
    - `tests_run_libfuzz` integer
    - `tests_run_mfuzz` integer
    - `tests_run_symexec` integer
    - `updated_at` string, date-time
    - `user_testsuite_id` integer, nullable
  - `n_defects_active_high` integer
  - `n_defects_active_low` integer
  - `n_defects_active_medium` integer
  - `n_defects_fixed_high` integer
  - `n_defects_fixed_low` integer
  - `n_defects_fixed_medium` integer
  - `namespace` string
  - `namespace_name` string
  - `owner` string
  - `owner_id` integer
  - `owner_name` string
  - `project_id` integer
  - `project_name` string, required
  - `prune_backlog` boolean
  - `public_badge_share` boolean
  - `repository_url` string, nullable
  - `settings` object
  - `slug` string
  - `testcase_limit_enabled` boolean, nullable
  - `updated_at` string, date-time

## Response `200`

Creates a new project in the given owner.

    Returns:
        Project -- The project object that was created.

- Project
  - `access_level` 'PRIVATE' | 'AUTHENTICATED' | 'PUBLIC'
  - `allow_concurrent_runs` boolean, nullable
  - `archived_at` string, date-time, nullable
  - `created_at` string, date-time
  - `default_branch` string, nullable
  - `has_api_run` boolean
  - `has_code_run` boolean
  - `is_archived` boolean
  - `is_deleted` boolean
  - `latest_active_run` RunGetSchemaWithMetadata
    - `advanced_triage_run_valgrind` boolean
    - `api_run` GetApiRun
      - `cli_command` string[], nullable
      - `cli_command_secrets` string[], nullable
      - `created_at` string, date-time
      - `duration_mode` 'AUTOMATIC' | 'TIME' | 'GOAL', required
      - `endpoint_coverage` EndpointCoverage
        - `V1` EndpointCoverageV1, required
          - `entries` EndpointCoverageV1Entry[], required
            - `hits` integer, required
            - `method` string, required
            - `path` string, required
            - `status` integer
            - `tags` string[], required
      - `endpoint_latency` EndpointLatency
        - `V1` EndpointLatencyV1, required
          - `entries` EndpointLatencyV1Entry[], required
            - `buckets` integer[], required
            - `hits` integer[], required
            - `method` string, required
            - `path` string, required
            - `tags` string[], required
      - `has_request_stats` boolean
      - `html_report_sha` string
      - `junit_sha` string
      - `latency_p50_millis` integer
      - `latency_p90_millis` integer
      - `latency_p99_millis` integer
      - `no_defects_endpoint_count` integer
      - `passing_endpoint_count` integer
      - `progress_percent` number, required
      - `progress_sec` integer, required
      - `reports_zip_sha` string
      - `sarif_sha` string
      - `spec_source` 'OPENAPI' | 'HAR_OPENAPI' | 'POSTMANCOLLECTION_OPENAPI' | 'SWAGGERV2_OPENAPI' | 'POSTMANCOLLECTION' | 'REPLAY' | 'UNKNOWN'
      - `specification_url` string
      - `status` 'PENDING' | 'RUNNING' | 'COMPLETE' | 'CANCELLED' | 'FAILED', required
      - `total_endpoint_count` integer
      - `unauthed_endpoint_count` integer
      - `unsuccessful_endpoint_count` integer
      - `updated_at` string, date-time
      - `url` string
    - `base_testsuite_id` integer, nullable
    - `branch_name` string, nullable
    - `build_id` string
    - `ci_type` string, nullable
    - `ci_url` string, url, nullable
    - `cli_version` string, nullable
    - `cputime` integer
    - `created_at` string, date-time
    - `current_workers` integer
    - `description` string
    - `desired_workers` integer
    - `docker_pullable` string
    - `docker_registry_id` integer, nullable
    - `docker_registry_url` string
    - `duration` integer, nullable
    - `edges_covered` integer
    - `elapsed_real_time` integer, nullable
    - `ended` boolean
    - `ended_at` string, date-time, nullable
    - `failed` boolean
    - `fetched_docker_image_digest` string
    - `has_critical_errors` boolean
    - `interface_info` object
    - `is_deleted` boolean
    - `is_mayhem_bot` boolean
    - `is_pure_docker` boolean
    - `merge_base_branch_name` string, nullable
    - `n_behavior_crash_reports` integer
    - `n_behavior_defects` integer
    - `n_behavior_testcase_reports` integer
    - `n_behavior_valgrind_errors` integer
    - `n_crash_reports` integer
    - `n_defects` integer
    - `n_desired_cpu` integer
    - `n_desired_memory` number
    - `n_exploitability_factors_passing` integer
    - `n_exploitability_factors_total` integer
    - `n_optimized_set_testcases` integer
    - `n_regression_crash_reports` integer
    - `n_regression_defect_reports` integer
    - `n_regression_defects` integer
    - `n_regression_testcase_reports` integer
    - `n_regression_valgrind_errors` integer
    - `n_starting_testcases` integer, nullable
    - `n_testcase_reports` integer
    - `n_total_cpu` integer
    - `n_total_memory` number
    - `n_valgrind_errors` integer
    - `name` string
    - `output_testsuite_id` integer, nullable
    - `owner` string
    - `owner_name` string
    - `parent_revision` string, nullable
    - `pending` boolean
    - `phase` RunPhaseCurrent
      - `description` string
      - `duration` integer, nullable
      - `elapsed_real_time` integer, nullable
      - `ended_at` string, date-time, nullable
      - `failed` boolean
      - `finalizing_at` string, date-time, nullable
      - `msg` string
      - `name` string
      - `pending_status` string
      - `phase_name` string
      - `preparing_at` string, date-time, nullable
      - `smoketesting_succeeded` boolean, nullable
      - `started_at` string, date-time, nullable
      - `status` string
      - `stopped` boolean
      - `value` number, nullable
    - `phases` RunPhase[]
      - `duration` integer, nullable
      - `elapsed_real_time` integer, nullable
      - `ended_at` string, date-time, nullable
      - `failed` boolean
      - `finalizing_at` string, date-time, nullable
      - `msg` string
      - `pending_status` string
      - `phase_name` string
      - `preparing_at` string, date-time, nullable
      - `smoketesting_succeeded` boolean, nullable
      - `started_at` string, date-time, nullable
      - `status` string
      - `stopped` boolean
    - `project_name` string
    - `project_slug` string
    - `revision` string, nullable
    - `run_attributes` object, nullable
    - `run_id` integer, required
    - `run_number` integer
    - `scm_commit_author` string, nullable
    - `scm_commit_author_email` string, nullable
    - `scm_commit_subject` string, nullable
    - `scm_remote_origin` string, nullable
    - `started` boolean
    - `started_at` string, date-time, nullable
    - `started_by` string
    - `stopped` boolean
    - `target_id` integer, required
    - `target_name` string
    - `target_slug` string
    - `task_id` string
    - `tests_per_second` number
    - `tests_run` integer
    - `tests_run_honggfuzz` integer
    - `tests_run_libfuzz` integer
    - `tests_run_mfuzz` integer
    - `tests_run_symexec` integer
    - `updated_at` string, date-time
    - `user_testsuite_id` integer, nullable
  - `n_defects_active_high` integer
  - `n_defects_active_low` integer
  - `n_defects_active_medium` integer
  - `n_defects_fixed_high` integer
  - `n_defects_fixed_low` integer
  - `n_defects_fixed_medium` integer
  - `namespace` string
  - `namespace_name` string
  - `owner` string
  - `owner_id` integer
  - `owner_name` string
  - `project_id` integer
  - `project_name` string, required
  - `prune_backlog` boolean
  - `public_badge_share` boolean
  - `repository_url` string, nullable
  - `settings` object
  - `slug` string
  - `testcase_limit_enabled` boolean, nullable
  - `updated_at` string, date-time

## Other responses

- `400` — Input parameters are referencing incorrect/non-existing objects.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Resource not found.
- `409` — Resource exists.
- `422` — Input parameters fail validation.
- `429` — Too many requests

---

[API](https://skmtc.dev/mayhem/apis/mayhem-api.md) · [All operations](https://skmtc.dev/mayhem/apis/mayhem-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mayhem/mayhem-api/revisions/7bc7386815cd/schema)
