# Create a benefit

> Source: /api-reference/partner/explorer/loyalty/benefits/create
> Adds a benefit definition to the program. It is created unpublished and reaches no member until it is published.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `POST /v1/partner/loyalty/programs/{programExternalId}/benefits`

```json
{
  "description": "Adds a benefit definition to the program. It is created unpublished and reaches no member until it is published.",
  "operationId": "loyaltyBenefitsPartner_create",
  "parameters": [
    {
      "description": "External id of the loyalty program that owns the benefit.",
      "in": "path",
      "name": "programExternalId",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/CreateBenefitRequest"
        }
      }
    },
    "required": true
  },
  "responses": {
    "201": {
      "description": "The newly created benefit."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Create a benefit",
  "tags": [
    "partner/loyalty/benefits"
  ],
  "x-required-scopes": [
    [
      "partner:loyalty:benefits:write"
    ]
  ]
}
```