---
title: "Create a New Pull Profile"
method: POST
path: "/v1/storage/endpoint/{endpoint_name}/pull-profile"
tags: ["Endpoint Storage"]
---

# Create a New Pull Profile

`POST /v1/storage/endpoint/{endpoint_name}/pull-profile`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/storage/endpoint/{endpoint_name}/pull-profile`
- Auth: API key in header `authorization`

Create a pull profile. Pull profile will upload data from an endpoint storage to a deployment container on boot. You must link the application version to the pull profile first.

## Request body

- PullProfilePostPayload
  - `name` string, required: Name of the pull profile
  - `source` string, required: Source in the S3 bucket to fetch from
  - `source_type` 'File' | 'Folder', required: If the source is a File or a Directory
  - `destination` string, required: Destination path where your source will be uploaded in your container. Make sure to avoid protected destinations, such as `/etc/`, as this will prevent the files from being copied to your deployment, and will make your deployment fail. Make sure a normal user can write to the destination folder.

## Response `200`

Success

- PullProfilePostResponse
  - `name` string, required: Name of the pull profile
  - `source` string, required: Source in the S3 bucket to fetch from
  - `source_type` 'File' | 'Folder', required: If the source is a File or a Directory
  - `destination` string, required: Destination path where your source will be uploaded in your container. Make sure to avoid protected destinations, such as `/etc/`, as this will prevent the files from being copied to your deployment, and will make your deployment fail. Make sure a normal user can write to the destination folder.
  - `create_time` string: UTC time of pull profile creation
  - `last_updated` string: UTC time of pull profile last update

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
