Claim Code - AWS IoT 1-Click

Claim Code

A code is a value used to claim one or more devices.

URI

/claims/claimCode

HTTP methods

PUT

Operation ID: ClaimDevicesByClaimCode

Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s).

Path parameters
NameTypeRequiredDescription
claimCodeStringTrue

The claim code, starting with "C-", as provided by the device manufacturer.

Responses
Status codeResponse modelDescription
200 ClaimDevicesByClaimCodeResponse

200 response

400InvalidRequestException

400 response

403ForbiddenException

403 response

500InternalFailureException

500 response

OPTIONS

Responses
Status codeResponse modelDescription
200None

200 response

Schemas

Response bodies

{ "total": integer, "claimCode": "string" }
{ "code": "string", "message": "string" }
{ "code": "string", "message": "string" }
{ "code": "string", "message": "string" }

Properties

ClaimDevicesByClaimCodeResponse

PropertyTypeRequiredDescription
claimCode

string

MinLength: 12

MaxLength: 40

False

The claim code provided by the device manufacturer.

total

integer

Format: int32

False

The total number of devices associated with the claim code that has been processed in the claim request.

ForbiddenException

PropertyTypeRequiredDescription
code

string

False

403

message

string

False

The 403 error message returned by the web server.

InternalFailureException

PropertyTypeRequiredDescription
code

string

False

500

message

string

False

The 500 error message returned by the web server.

InvalidRequestException

PropertyTypeRequiredDescription
code

string

False

400

message

string

False

The 400 error message returned by the web server.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

ClaimDevicesByClaimCode