デバイスピンを削除

delete
https://api.box.com/2.0
/device_pinners/:device_pinner_id/

個々のデバイスピンを削除します。

Request

Bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
2324234

デバイスピンのID

Response

none

ピンが削除された場合は、空のレスポンスを返します。

予期しないクライアントエラー。

delete
デバイスピンを削除
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/device_pinners/2324234" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.DevicePinManager.DeleteDevicePin(id: "11111");
Java
BoxDevicePin devicePin = new BoxDevicePin(api, id);
devicePin.delete();
Python
device_pin_id = '1111'
client.device_pin(device_pin_id).delete()
print('Device pin deleted!')
Node
client.devicePins.delete('28345')
    .then(() => {
        // deletion succeeded — no value returned
    });
iOS
client.devicePins.delete(devicePinId: "12345") { result: Result<Void, BoxSDKError> in
    guard case .success = result else {
        print("Error deleting device pin")
        return
    }

    print("Device Pin successfully deleted")
}

Response Example

{
  "type": "error",
  "code": "item_name_invalid",
  "help_url": "http://developers.box.com/docs/#errors",
  "message": "Method Not Allowed",
  "request_id": "abcdef123456",
  "status": 400
}