PUT ​/api​/v3​/account​/me​/mobile_device​/:id

Update a mobile device for this account.

Request

Example Request

{
  "auth_token": "abc1245920feab98ca",
  "mobile_device": {
    "name": "abc",
    "device_type": "abc",
    "device_id": 123,
    "push_enabled": true,
    "push_token": "abc"
  }
}

Example Parameters

  • auth_token: The user's auth_token obtained by calling the auth API. If provided, the response will indicate follow status for elements in the followers array.

    • Required: yes
    • Type: string
    • Example: abc1245920feab98ca
  • mobile_device: The mobile device object containing the attributes for the artist profile.

    • Required: yes
    • name: The name of the mobile device.
      • Required: yes
      • Type: string
      • Example: abc
    • device_type: The mobile device type.
      • Required: yes
      • Type: string
      • Example: abc
    • device_id: The mobile device id.
      • Required: yes
      • Type: string
      • Example: 123
    • push_enabled: The mobile device's push enabled flag.
      • Required: yes
      • Type: boolean
      • Example: true
    • push_token: The mobile device's push token.
      • Required: yes
      • Type: string
      • Example: abc

Response

Example Response

{
  "mobile_device": {
    "id": 81,
    "name": "abc",
    "device_type": "abc",
    "device_id": 123,
    "push_enabled": true,
    "push_token": "abc"
  }
}

Response Parameters

  • mobile_device: The mobile device object containing the attributes for the artist profile.

    • Required: yes
    • id: The id of the mobile device
      • Required: yes
      • Type: integer
      • Example: 81
    • name: The name of the mobile device.
      • Required: yes
      • Type: string
      • Example: abc
    • device_type: The mobile device type.
      • Required: yes
      • Type: string
      • Example: abc
    • device_id: The mobile device id.
      • Required: yes
      • Type: string
      • Example: 123
    • push_enabled: The mobile device's push enabled flag.
      • Required: yes
      • Type: boolean
      • Example: true
    • push_token: The mobile device's push token.
      • Required: yes
      • Type: string
      • Example: abc

Response Codes

Successful Response Codes

  • 200: A successful request.

Failure Response Codes

  • 404: Indicates the account was not found.

  • 401: Unauthorized request. Indicates a missing or invalid auth_token.