---
title: "POST /wireless-gateway-task-definitions"
method: POST
path: "/wireless-gateway-task-definitions"
---

# POST /wireless-gateway-task-definitions

`POST /wireless-gateway-task-definitions`

Creates a gateway task definition.

## Request body

- object
  - `AutoCreateTasks` boolean, required — Whether to automatically create tasks using this task definition for all gateways with the specified current version. If <code>false</code>, the task must me created by calling <code>CreateWirelessGatewayTask</code>.
  - `Name` string — The name of the new resource.
  - `Update` object — UpdateWirelessGatewayTaskCreate object.
    - `UpdateDataSource` string — The link to the S3 bucket.
    - `UpdateDataRole` string — The IAM role used to read data from the S3 bucket.
    - `LoRaWAN` object — The properties that relate to the LoRaWAN wireless gateway.
      - `UpdateSignature` string — The signature used to verify the update firmware.
      - `SigKeyCrc` integer — The CRC of the signature private key to check.
      - `CurrentVersion` object — The version of the gateways that should receive the update.
        - `PackageVersion` string — The version of the wireless gateway firmware.
        - `Model` string — The model number of the wireless gateway.
        - `Station` string — The basic station version of the wireless gateway.
      - `UpdateVersion` object — The firmware version to update the gateway to.
        - `PackageVersion` string — The version of the wireless gateway firmware.
        - `Model` string — The model number of the wireless gateway.
        - `Station` string — The basic station version of the wireless gateway.
  - `ClientRequestToken` string — Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
  - `Tags` Tag[] — The tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.
    - `Key` string, required — The tag's key value.
    - `Value` string, required — The tag's value.

## Response `201`

Success

- CreateWirelessGatewayTaskDefinitionResponse
  - `Id` string — The ID of the new wireless gateway task definition.
  - `Arn` string — The Amazon Resource Name of the resource.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ConflictException
- `484` — InternalServerException
- `485` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/iotwireless.md) · [All operations](https://skmtc.net/aws/apis/iotwireless/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iotwireless/versions/022d242d4bce/schema)
