Register a device to an organization
POST/api/v1/orgs/{orgId}/devices
Link one existed weda node device to one organization. Or create a weda node device which is associated with the organization.
deviceId must contain only lowercase letters and digits, and be exactly 12 characters long. hwModel must contain only uppercase letters, digits, and hyphens, and must not exceed 64 characters. deviceName, when provided, must contain only letters, digits, hyphens, and underscores, and must not exceed 128 characters.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 500
Device registered to the organization
Invalid deviceId, hwModel, or deviceName format, or the caller's resource_access claim could not be parsed
Authentication is required
orgId is not among the organizations the caller can access
Not Found
deviceId, or deviceName within this organization, is already taken
Internal Server Error