# Create a user project

From **GitHub v3 REST API**.

`POST /user/projects`

Create a user project

## Request body

- Required: true
### `application/json`

- Type: `object`

```json
{"properties":{"body":{"description":"Body of the project","example":"This project represents the sprint of the first week in January","nullable":true,"type":"string"},"name":{"description":"Name of the project","example":"Week One Sprint","type":"string"}},"required":["name"],"type":"object"}
```

## Responses

### `201`

Response

### `application/json`

- Type: `object`

Projects are a way to organize columns and cards of work.

```json
{
  "body": "A board to manage my personal projects.",
  "columns_url": "https://api.github.com/projects/1002603/columns",
  "created_at": "2011-04-10T20:09:31Z",
  "creator": {
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "gravatar_id": "",
    "html_url": "https://github.com/octocat",
    "id": 1,
    "login": "octocat",
    "node_id": "MDQ6VXNlcjE=",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "site_admin": false,
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "type": "User",
    "url": "https://api.github.com/users/octocat"
  },
  "html_url": "https://github.com/users/octocat/projects/1",
  "id": 1002603,
  "name": "My Projects",
  "node_id": "MDc6UHJvamVjdDEwMDI2MDM=",
  "number": 1,
  "owner_url": "https://api.github.com/users/octocat",
  "state": "open",
  "updated_at": "2014-03-03T18:58:10Z",
  "url": "https://api.github.com/projects/1002603"
}
```

```json
{"description":"Projects are a way to organize columns and cards of work.","properties":{"body":{"description":"Body of the project","example":"This project represents the sprint of the first week in January","nullable":true,"type":"string"},"columns_url":{"example":"https://api.github.com/projects/1002604/columns","format":"uri","type":"string"},"created_at":{"example":"2011-04-10T20:09:31Z","format":"date-time","type":"string"},"creator":{"$ref":"#/components/schemas/nullable-simple-user"},"html_url":{"example":"https://github.com/api-playground/projects-test/projects/12","format":"uri","type":"string"},"id":{"example":1002604,"type":"integer"},"name":{"description":"Name of the project","example":"Week One Sprint","type":"string"},"node_id":{"example":"MDc6UHJvamVjdDEwMDI2MDQ=","type":"string"},"number":{"example":1,"type":"integer"},"organization_permission":{"description":"The baseline permission that all organization members have on this project. Only present if owner is an organization.","enum":["read","write","admin","none"],"type":"string"},"owner_url":{"example":"https://api.github.com/repos/api-playground/projects-test","format":"uri","type":"string"},"private":{"description":"Whether or not this project can be seen by everyone. Only present if owner is an organization.","type":"boolean"},"state":{"description":"State of the project; either 'open' or 'closed'","example":"open","type":"string"},"updated_at":{"example":"2014-03-03T18:58:10Z","format":"date-time","type":"string"},"url":{"example":"https://api.github.com/projects/1002604","format":"uri","type":"string"}},"required":["id","node_id","number","name","body","state","url","html_url","owner_url","creator","columns_url","created_at","updated_at"],"title":"Project","type":"object"}
```

### `304`

Not modified

### `401`

Requires authentication

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

### `403`

Forbidden

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

### `415`

Preview header missing

### `application/json`

- Type: `object`

```json
{"properties":{"documentation_url":{"type":"string"},"message":{"type":"string"}},"required":["message","documentation_url"],"type":"object"}
```

### `422`

Validation failed

### `application/json`

- Type: `object`

Validation Error Simple

```json
{"description":"Validation Error Simple","properties":{"documentation_url":{"type":"string"},"errors":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"}},"required":["message","documentation_url"],"title":"Validation Error Simple","type":"object"}
```

## Request examples

### cURL

```shell
curl --request POST \
  --url {protocol}://{hostname}/api/v3/user/projects \
  --header 'content-type: application/json' \
  --data '{
  "body": "string",
  "name": "string"
}'
```
