Create an identifier with the EdgeWorkers API

Create a unique identifier for your EdgeWorker code using the API.

Before you begin

To complete this step, you must create an API client and know the groupID for the Control Center group.
Use the API to generate a unique edgeWorkerId.

How to

  1. Form a JSON request body that includes the groupId and a name.
    {
        "groupId": 12345,
        "name": "EW_42"
    }
  2. Issue a POST request to register the EdgeWorker within the group.
    POST /edgeworkers/v1/ids

    Example HTTPie syntax:

    http --timeout=90 --auth-type edgegrid -a <authgroup>: POST :/edgeworkers/v1/ids groupId=<groupId> name=<name>
    View the response for details.
    {
        "edgeWorkerId": 42,
        "name": "EW_42",
        "accountId": "A-B-1CD23",
        "groupId": 12345,
        "createdBy": "asmith",
        "createdTime": "2018-10-15T14:49:40Z",
    }

Next steps

Enable EdgeWorkers in Property Manager