PUT devices/{deviceId}/application/{applicationId}

Relate a given Application to a given Device.

Request Information

Parameters

NameDescriptionAdditional information
deviceId
Device identification.

Define this parameter in the request URI.

applicationId
Application identification.

Define this parameter in the request URI.

Response Information

C4M Error Code returned:

  • null

    Relationship successfully determined.

  • DeviceNotFound

    The requested device does not exist on this environment.

  • ApplicationNotFound

    The requested application does not exist on this environment.

HTTP Status returned:
  • 404 - Not Found

    There's no application or device with the informed id in the given environment.

Response body formats

application/json, text/json

Sample:
{
  "error": null
}