agentleFS
williamcorrea23williamcorrea23/sap-router-skill/.agents/skills/automation-pilot-scheduled-executions-api/SKILL.md

automation-pilot-scheduled-executions-api

Skill1 starsChanged 4 months agoMITView on GitHub

Manage SAP Automation Pilot scheduled executions via API. Use when creating, listing, updating, or deleting schedules for recurring or one-time command execution.

  • Sends data out

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ensure curl is available in your environment.

    line 23
  2. Distinctive:

    Verify the command ID exists and you have access to it.

    line 258
  3. Distinctive:

    Ensure only one schedule type is set (hourly, daily, weekly, monthly, or yearly).

    line 265
  4. Distinctive:

    PUT the full updated body back

    line 291
  5. Distinctive:

    Verify the schedule is created and enabled

    line 300

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAP Automation Pilot Scheduled Executions API Management

This skill manages scheduled command executions in SAP Automation Pilot - creating, listing, updating, and deleting scheduled executions with flexible scheduling options and time zone support.

Prerequisites

  1. Set the following required environment variables:
export AUTOPI_HOSTNAME="emea.autopilot.cloud.sap"
export AUTOPI_USERNAME="your-username"
export AUTOPI_PASSWORD="your-password"
export AUTOPI_DEFAULT_CATALOG="mycommands-<<<TENANT_ID>>>"

For the full list of supported hostnames (emea, aus, apac, amer, ksa), see ../automation-pilot-content-management-via-api/SKILL.md → Prerequisites.

  1. Ensure curl is available in your environment.

Schedule Types

SAP Automation Pilot supports the following schedule types:

Once (One-time)

Execute once at a specific date/time.

"once": { "month": 12, "day": 31, "hour": 23, "minute": 30 }

Hourly

Execute at specified minutes within each hour.

"hourly": {
  "minutes": [0, 15, 30, 45]
}

Daily

Execute at specified time each day.

"daily": {
  "hours": [9],
  "minutes": [0]
}

Weekly

Execute on specified days of the week at a specific time.

"weekly": {
  "days": ["MONDAY", "WEDNESDAY", "FRIDAY"],
  "hours": [9],
  "minutes": [0]
}

Monthly

Execute on specified days of each month.

"monthly": {
  "days": [1, 15],
  "hours": [9],
  "minutes": [0]
}

Yearly

Execute on specific date each year.

"yearly": {
  "month": 1,
  "day": 1,
  "hour": 0,
  "minute": 0
}

Creating Scheduled Executions

curl -s -X POST \
  -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{
    "commandId": "my-catalog:MyCommand:1",
    "schedule": {
      "timeZone": "Europe/Berlin",
      "daily": {
        "hours": [9],
        "minutes": [0]
      }
    },
    "enabled": true,
    "inputValues": {
      "param1": "value1"
    },
    "description": "Daily morning check"
  }' \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions"

All inputValues entries must be strings on the wire, regardless of the declared parameter type — see ../automation-pilot-content-management-via-api/SKILL.md → "Values Are Always Strings on the Wire".


Managing Scheduled Executions

List All Schedules

curl -s -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions"

Get Schedule Details

SCHEDULE_ID="your-schedule-id"

curl -s -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions/$SCHEDULE_ID"

Enable/Disable Schedule

# PUT the full schedule body with "enabled" set to true or false
curl -s -X PUT \
  -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '<full schedule body with enabled changed>' \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions/$SCHEDULE_ID"

Delete Schedule

curl -s -X DELETE \
  -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions/$SCHEDULE_ID"

Updating Scheduled Executions

curl -s -X PUT \
  -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{
    "commandId": "my-catalog:MyCommand:1",
    "schedule": {
      "timeZone": "Europe/Berlin",
      "daily": {
        "hours": [10],
        "minutes": [0]
      }
    },
    "enabled": true,
    "inputValues": {}
  }' \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions/$SCHEDULE_ID"

Time Zones

List Available Time Zones

curl -s -u "$AUTOPI_USERNAME:$AUTOPI_PASSWORD" \
  "https://$AUTOPI_HOSTNAME/api/v1/scheduled-executions/time-zones"

Common Time Zones

Time ZoneDescription
Etc/UTCCoordinated Universal Time (default)
Europe/BerlinCentral European Time (CET/CEST)
Europe/LondonBritish Time (GMT/BST)
America/New_YorkEastern Time (EST/EDT)
America/Los_AngelesPacific Time (PST/PDT)
Asia/TokyoJapan Standard Time
Asia/SingaporeSingapore Time
Australia/SydneyAustralian Eastern Time

Scheduled Execution Schema

Request Body (Create/Update)

{
  "commandId": "catalog:CommandName:version",
  "description": "Optional description",
  "correlationId": "optional-correlation-id",
  "tags": {},
  "inputValues": {
    "param1": "value1"
  },
  "inputReferences": [],
  "schedule": {
    "timeZone": "Europe/Berlin",
    "daily": {
      "hours": [9],
      "minutes": [0]
    }
  },
  "enabled": true
}

Error Handling

HTTP Status Codes

CodeDescription
200Success (GET, PUT)
201Created (POST)
204No Content (DELETE)
400Bad Request - invalid schedule or input
401Unauthorized - invalid credentials
403Forbidden - insufficient permissions
404Not Found - schedule doesn't exist
409Conflict - invalid state
429Rate Limited

Permissions Required

OperationPermission
List/Get schedulesRead
Create/Update/DeleteExecute

Common Errors

Command Not Found (409)

Error: Command "catalog:Command:1" not found

Verify the command ID exists and you have access to it.

Invalid Schedule (400)

Error: Invalid schedule configuration

Ensure only one schedule type is set (hourly, daily, weekly, monthly, or yearly).

Schedule Not Firing

Cause: Schedule is disabled or the time zone is misconfigured. Solution: GET the schedule and verify "enabled": true. Confirm the timeZone matches the intended region — a schedule set for Europe/Berlin at 09:00 fires at a different UTC time than one set for Etc/UTC.


Examples

Example 1: Create a daily health check schedule

User: "Schedule my health check command to run every day at 9 AM Berlin time"

  1. POST to /api/v1/scheduled-executions with commandId, enabled: true, and "daily": {"hours": [9], "minutes": [0]}
  2. Set "timeZone": "Europe/Berlin"
  3. Capture the schedule ID from the response
  4. Confirm with a GET that the schedule is enabled and the time is correct

Example 2: Update a schedule's timing

User: "Change my schedule to run at 10 AM instead of 9 AM"

  1. GET /api/v1/scheduled-executions/$SCHEDULE_ID to fetch the current body
  2. Modify the hours value in the response body to [10]
  3. PUT the full updated body back
  4. Confirm the response shows the new time

Example 3: Create an every-15-minutes monitoring schedule

User: "Run my monitoring command every 15 minutes"

  1. POST to /api/v1/scheduled-executions with "hourly": {"minutes": [0, 15, 30, 45]}
  2. Set "timeZone": "Etc/UTC"
  3. Verify the schedule is created and enabled

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.