ChallengeUpdatedEvent
v1

Update a challenge for the entraide App

Details

ChallengeUpdatedEvent payload

ChallengeUpdatedEvent Schema (json)
{
  "$id": "ChallengeUpdatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "challenge": {
      "$id": "UpdateChallengeInput",
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "startDate": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "endDate": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "target": { "anyOf": [{ "type": "number" }, { "type": "null" }] },
        "criteria": {
          "anyOf": [
            {
              "$id": "ChallengeCriteriaDTO",
              "type": "object",
              "properties": {
                "jobSectors": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "const": "AGRICULTURE_AND_AGRIFOOD",
                            "type": "string"
                          },
                          {
                            "const": "ARCHITECTURE_STUDY_AND_STANDARDS",
                            "type": "string"
                          },
                          { "const": "ART_CRAFTS", "type": "string" },
                          {
                            "const": "AUDIOVISUAL_SHOW_AND_CINEMA",
                            "type": "string"
                          },
                          { "const": "AUTOMOTIVE", "type": "string" },
                          { "const": "BTP", "type": "string" },
                          {
                            "const": "COMMERCE_DISTRIBUTION_AND_E_COMMERCE",
                            "type": "string"
                          },
                          {
                            "const": "COMMUNICATION_MARKETING_AND_ADVERTISEMENT",
                            "type": "string"
                          },
                          {
                            "const": "ACCOUNTING_MANAGEMENT_AND_HUMAN_RESOURCES",
                            "type": "string"
                          },
                          { "const": "CULTURE_AND_HERITAGE", "type": "string" },
                          { "const": "DEFENSE_AND_SECURITY", "type": "string" },
                          { "const": "LAW_AND_JUSTICE", "type": "string" },
                          {
                            "const": "EDUCATION_AND_TRAINING",
                            "type": "string"
                          },
                          {
                            "const": "ENVIRONMENT_ECOLOGY_AND_SUSTAINABLE_DEVELOPMENT",
                            "type": "string"
                          },
                          {
                            "const": "FINANCE_BANKING_AND_INSURANCE",
                            "type": "string"
                          },
                          {
                            "const": "HOTELS_AND_RESTAURANTS",
                            "type": "string"
                          },
                          { "const": "REAL_ESTATE", "type": "string" },
                          {
                            "const": "CHEMISTRY_AND_PHARMACY",
                            "type": "string"
                          },
                          {
                            "const": "ELECTRONICS_AND_ELECTRICAL_ENGINEERING",
                            "type": "string"
                          },
                          {
                            "const": "COMPUTERS_NUMERIC_AND_TELECOMMUNICATIONS",
                            "type": "string"
                          },
                          {
                            "const": "JOURNALISM_AND_PUBLISHING",
                            "type": "string"
                          },
                          {
                            "const": "LOGISTIC_AND_TRANSPORT",
                            "type": "string"
                          },
                          {
                            "const": "MAINTENANCE_UPKEEP_AND_CLEANING",
                            "type": "string"
                          },
                          { "const": "FASHION_AND_TEXTILE", "type": "string" },
                          { "const": "RESEARCH", "type": "string" },
                          { "const": "HEALTH_AND_MEDICAL", "type": "string" },
                          {
                            "const": "COMMUNITY_SERVICE_AND_PUBLIC_SERVICE",
                            "type": "string"
                          },
                          {
                            "const": "SERVICE_FOR_INDIVIDUALS",
                            "type": "string"
                          },
                          { "const": "SOCIAL", "type": "string" },
                          {
                            "const": "SPORT_ANIMATION_AND_LEISURE",
                            "type": "string"
                          },
                          { "const": "TOURISM", "type": "string" },
                          {
                            "const": "AUDIT_CONSULTING_EXPERTISE",
                            "type": "string"
                          },
                          { "const": "CONSTRUCTION", "type": "string" },
                          { "const": "ENERGY", "type": "string" },
                          { "const": "INDUSTRIES", "type": "string" },
                          {
                            "const": "MATERIALS_AND_TRANSFORMATIONS",
                            "type": "string"
                          },
                          { "const": "MECHANICAL", "type": "string" },
                          { "const": "OTHER", "type": "string" },
                          { "const": "NO_ANSWER", "type": "string" }
                        ]
                      }
                    },
                    { "type": "null" }
                  ]
                }
              }
            },
            { "type": "null" }
          ]
        }
      },
      "required": ["id"]
    }
  },
  "required": ["challenge"]
}


Edit this pageLast updated on 2024/8/5