---
title: "Create an EdgeJob from a text"
method: POST
path: "/edge_jobs/create/string"
tags: ["edge_jobs"]
---

# Create an EdgeJob from a text

`POST /edge_jobs/create/string`

**Access policy**: administrator

## Request body

- EdgejobsEdgeJobCreateFromFileContentPayload
  - `CronExpression` string
  - `EdgeGroups` integer[]
  - `Endpoints` integer[]
  - `FileContent` string
  - `Name` string
  - `Recurring` boolean

## Response `200`

OK

- PortainerEdgeGroup
  - `Dynamic` boolean
  - `EndpointIds` RoarRoarPortainerEndpointID
  - `Endpoints` integer[] — Deprecated: only used for API responses
  - `Id` integer — EdgeGroup Identifier
  - `Name` string
  - `PartialMatch` boolean
  - `TagIds` integer[]

## Other responses

- `500` — Internal Server Error
- `503` — Edge compute features are disabled

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
