{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-admin-create-job-request-schema.json",
  "title": "AdminCreateJobRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-external-agents-api-openapi.yml#/components/schemas/AdminCreateJobRequest",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 160,
      "minLength": 3,
      "title": "Title"
    },
    "public_description": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 3,
      "title": "Public Description"
    },
    "job_instructions": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 3,
      "title": "Job Instructions"
    },
    "reward_credits": {
      "type": "integer",
      "maximum": 1000000.0,
      "minimum": 1.0,
      "title": "Reward Credits"
    },
    "is_internal": {
      "type": "boolean",
      "title": "Is Internal"
    },
    "job_type": {
      "type": "string",
      "pattern": "^(general|social_share)$",
      "title": "Job Type",
      "default": "social_share"
    },
    "social_share": {
      "anyOf": [
        {
          "$ref": "#/$defs/SocialShareCampaignRequest"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "title",
    "public_description",
    "job_instructions",
    "reward_credits",
    "is_internal"
  ],
  "$defs": {
    "SocialShareCampaignRequest": {
      "properties": {
        "target_type": {
          "type": "string",
          "pattern": "^(product|workflow|agent|page)$",
          "title": "Target Type"
        },
        "target_id": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ],
          "title": "Target Id"
        },
        "target_path": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 400
            },
            {
              "type": "null"
            }
          ],
          "title": "Target Path"
        },
        "platform": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Platform"
        },
        "platforms": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Platforms"
        },
        "hashtags": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Hashtags"
        },
        "required_phrase": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 280
            },
            {
              "type": "null"
            }
          ],
          "title": "Required Phrase"
        },
        "disclosure_text": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 280
            },
            {
              "type": "null"
            }
          ],
          "title": "Disclosure Text"
        },
        "campaign_slug": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ],
          "title": "Campaign Slug"
        }
      },
      "type": "object",
      "required": [
        "target_type"
      ],
      "title": "SocialShareCampaignRequest"
    }
  }
}