# Create a new resume

Creates a new resume with the given name, slug, and tags. Optionally initializes the resume with sample data by setting withSampleData to true. Pass clientId to create it for one of your clients. The slug must be unique across the user's resumes. Returns the ID of the newly created resume. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/resumes
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "The name of the resume."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "description": "The slug of the resume."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The tags of the resume."
    },
    "withSampleData": {
      "type": "boolean",
      "default": false
    },
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    }
  },
  "required": [
    "name",
    "slug",
    "tags"
  ]
}
```

## Responses

- `200`: The ID of the newly created resume.
- `400`: 400
