Associates a group with a continuous job. The following criteria must be met:
-
The job must have been created with the targetSelection field set to "CONTINUOUS".
-
The job status must currently be "IN_PROGRESS".
-
The total number of targets associated with a job must not exceed 100.
Requires permission to access the AssociateTargetsWithJob action.
post/jobs/{jobId}/targets
Path parameters
jobIdstring required
The unique identifier you assigned to this job when it was created.
Query parameters
namespaceIdstring
<p>The namespace used to indicate that a job is a customer-managed job.</p> <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.</p> <p> <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code> </p> <note> <p>The <code>namespaceId</code> feature is in public preview.</p> </note>
Request body
Response
Success